ResponseCreatedRealtimeServerMessage.Usage Property
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.
Gets or sets the per-response token usage for billing purposes.
public:
property Microsoft::Extensions::AI::UsageDetails ^ Usage { Microsoft::Extensions::AI::UsageDetails ^ get(); void set(Microsoft::Extensions::AI::UsageDetails ^ value); };
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
Remarks
Populated when the response is complete (i.e., on ResponseDone). Input tokens include the entire conversation context, so they grow over successive turns as previous output becomes input for later responses.