API Reference
Class
ThreadUsageSummary
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(Int64? inputTokens, Int64? outputTokens, Int64? totalTokens, Int32? turns, JsonObject raw, JsonObject? additional) #Initializes a new usage summary model.
Parameters
- inputTokens System.Int64?
- outputTokens System.Int64?
- totalTokens System.Int64?
- turns System.Int32?
- raw IntelligenceX.Json.JsonObject
- additional IntelligenceX.Json.JsonObject?
Methods
public static ThreadUsageSummary? FromJson(JsonObject? obj) #Returns:
ThreadUsageSummary?Parses usage summary from JSON.
Parameters
- obj IntelligenceX.Json.JsonObject?
- Source JSON object.
Returns
The parsed summary or null.
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?