Share via


AgentRunResponse.Usage Property

Definition

Gets or sets the resource usage information for generating this response.

public Microsoft.Extensions.AI.UsageDetails? Usage { get; set; }
member this.Usage : Microsoft.Extensions.AI.UsageDetails with get, set
Public Property Usage As UsageDetails

Property Value

A UsageDetails instance containing token counts and other usage metrics, or null if usage information is not available.

Applies to