AIUsage Class |
public class AIUsage
The AIUsage type exposes the following members.
| Name | Description | |
|---|---|---|
| Calls | Number of AI model API calls (LLM round-trips). | |
| InputTokens | Input (prompt) tokens consumed, including cached tokens when the API reports them separately. | |
| OutputTokens | Output (completion) tokens generated. | |
| ToolCalls | Number of tool calls executed (including skill loads). Only maintained at the agent level. | |
| TotalTokens | Total tokens (input + output). |
| Name | Description | |
|---|---|---|
| Add | Accumulates another usage into this one. | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
| ToString | Returns a string that represents the current object. (Inherited from Object) |