ResponseUsage Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents token usage details including input tokens, output tokens, a breakdown of output tokens, and the total tokens used.
public class ResponseUsage : System.ClientModel.Primitives.IJsonModel<Azure.AI.AgentServer.Responses.Models.ResponseUsage>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.AgentServer.Responses.Models.ResponseUsage>
type ResponseUsage = class
interface IJsonModel<ResponseUsage>
interface IPersistableModel<ResponseUsage>
Public Class ResponseUsage
Implements IJsonModel(Of ResponseUsage), IPersistableModel(Of ResponseUsage)
- Inheritance
-
ResponseUsage
- Implements
Constructors
| Name | Description |
|---|---|
| ResponseUsage(Int64, ResponseUsageInputTokensDetails, Int64, ResponseUsageOutputTokensDetails, Int64) |
Initializes a new instance of ResponseUsage. |
Properties
| Name | Description |
|---|---|
| InputTokens |
The number of input tokens. |
| InputTokensDetails |
A detailed breakdown of the input tokens. |
| OutputTokens |
The number of output tokens. |
| OutputTokensDetails |
A detailed breakdown of the output tokens. |
| TotalTokens |
The total number of tokens used. |