getContextUsage
Agent Runtimes / api/context / getContextUsage
Function: getContextUsage()
getContextUsage(
token,agentId,baseUrl?):Promise<ContextUsage>
Defined in: api/context.ts:30
Get current context window usage for an agent.
Parameters
token
string
Authentication token
agentId
string
Agent ID
baseUrl?
string = DEFAULT_SERVICE_URLS.AI_AGENTS
Base URL
Returns
Promise<ContextUsage>
Promise resolving to context usage data