Class
ThreadUsageSummary
IntelligenceX.OpenAI.AppServer.Models
Represents cumulative token usage for a thread/session.
Inheritance
- object
- ThreadUsageSummary
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 ThreadInfo.UsageSummary
- Method ThreadUsageSummary.FromJson
Accepted by parameters 1
- Constructor ThreadInfo.ThreadInfo
Constructors
public ThreadUsageSummary(long? inputTokens, long? outputTokens, long? totalTokens, int? turns, JsonObject raw, JsonObject? additional) #Initializes a new usage summary model.
Parameters
- inputTokens long?
- outputTokens long?
- totalTokens long?
- turns int?
- raw IntelligenceX.Json.JsonObject
- additional IntelligenceX.Json.JsonObject?
Methods
public static ThreadUsageSummary? FromJson(JsonObject? obj) #Parses usage summary from JSON.
Parameters
- obj IntelligenceX.Json.JsonObject?
- Source JSON object.