Skip to main content

getExpertStats()

getExpertStats(): Promise<ExpertStats[]>

Defined in: packages/core/src/index.ts:3439

Get expert usage statistics

Returns

Promise<ExpertStats[]>

Array of expert statistics

Throws

401 - Not authenticated

Example

import { getExpertStats } from "@cpod/sdk";

const stats = await getExpertStats();
stats.forEach(expert => {
console.log(`${expert.name}: ${expert.usage_count} uses`);
});