Class
TurnUsage
IntelligenceX.OpenAI.AppServer.Models
Represents token usage details for a single turn.
Inheritance
- object
- TurnUsage
Usage
Explore 3 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 2
- Property TurnInfo.Usage
- Method TurnUsage.FromJson
Accepted by parameters 1
- Constructor TurnInfo.TurnInfo
Constructors
public TurnUsage(long? inputTokens, long? outputTokens, long? totalTokens, long? cachedInputTokens, long? reasoningTokens, JsonObject raw, JsonObject? additional) #Initializes a new turn usage model.
Parameters
- inputTokens long?
- outputTokens long?
- totalTokens long?
- cachedInputTokens long?
- reasoningTokens long?
- raw IntelligenceX.Json.JsonObject
- additional IntelligenceX.Json.JsonObject?
Methods
public static TurnUsage? FromJson(JsonObject? obj) #Parses turn usage from JSON.
Parameters
- obj IntelligenceX.Json.JsonObject?
- Source usage object.