Click or drag to resize

AIUsage Properties

The AIUsage type exposes the following members.

Properties
 NameDescription
Public propertyCalls Number of AI model API calls (LLM round-trips).
Public propertyInputTokens Input (prompt) tokens consumed, including cached tokens when the API reports them separately.
Public propertyOutputTokens Output (completion) tokens generated.
Public propertyToolCalls Number of tool calls executed (including skill loads). Only maintained at the agent level.
Public propertyTotalTokens Total tokens (input + output).
Top
See Also