API Reference
Class
ChatGptUsageCacheEntry
Represents a cached usage snapshot entry.
Inheritance
- Object
- ChatGptUsageCacheEntry
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
Accepted by parameters
- Method ChatGptUsageCache.TryLoad
Constructors
public ChatGptUsageCacheEntry(ChatGptUsageSnapshot snapshot, DateTimeOffset updatedAt) #Initializes a new cache entry.
Parameters
- snapshot IntelligenceX.OpenAI.Usage.ChatGptUsageSnapshot
- Usage snapshot.
- updatedAt System.DateTimeOffset
- Timestamp when the snapshot was stored.
Methods
public static ChatGptUsageCacheEntry FromJson(JsonObject obj) #Returns:
ChatGptUsageCacheEntryParses a cache entry from JSON.
Parameters
- obj IntelligenceX.Json.JsonObject
- Source JSON object.
Returns
The parsed cache entry or null.