Skip to main content

getAgentConfig

client.agents.getAgentConfig(agentName: string): Promise<AgentConfig>

Retrieves the configuration for a specific agent by name.

Returns the full configuration object for the named agent, including its capabilities, settings, and metadata.

Parameters

ParameterTypeRequiredDescription
agentNamestringYesThe name of the agent to look up

Returns

Promise<AgentConfig> — A promise that resolves to the AgentConfig for the specified agent

Example

import { CodeBoltClient } from '@codebolt/clientsdk';

const client = new CodeBoltClient();

const result = await client.agents.getAgentConfig('agentName');
console.log(result);