Skip to main content

getRanking

client.agentPortfolioApi.getRanking(params?: AgentRankingParams): Promise<AgentPortfolio[]>

Retrieves agent portfolio rankings.

Returns agents sorted by their portfolio score, karma, or other ranking criteria. Useful for discovering top-performing agents.

Parameters​

ParameterTypeRequiredDescription
paramsAgentRankingParamsNoOptional ranking parameters for sorting and filtering

Returns​

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

Example​

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

const client = new CodeBoltClient();

const result = await client.agentPortfolioApi.getRanking();
console.log(result);