getCostUsage
Agent Runtimes / api/context / getCostUsage
Function: getCostUsage()
getCostUsage(
token,agentId,baseUrl?):Promise<CostUsage>
Defined in: api/context.ts:50
Get cost/usage tracking data for an agent.
Parameters
token
string
Authentication token
agentId
string
Agent ID
baseUrl?
string = DEFAULT_SERVICE_URLS.AI_AGENTS
Base URL
Returns
Promise<CostUsage>
Promise resolving to cost usage data