Skip to main content

getAgentTalents

client.agentPortfolioApi.getAgentTalents(agentId: string, params?: Record<string, unknown>): Promise<AgentTalent[]>

Retrieves all talents for a specific agent.

Returns the list of skills and capabilities registered in the agent's portfolio, along with endorsement counts.

Parameters

ParameterTypeRequiredDescription
agentIdstringYesThe unique identifier of the agent
paramsRecord<string, unknown>NoOptional query parameters for filtering

Returns

Promise<AgentTalent[]> — A promise that resolves to an array of AgentTalent objects

Example

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

const client = new CodeBoltClient();

const result = await client.agentPortfolioApi.getAgentTalents('agentId');
console.log(result);