API Reference
Class
ChatGptUsageCacheEntry
Represents a cached usage snapshot entry.
Inheritance
- Object
- ChatGptUsageCacheEntry
Usage
Explore 2 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 1
Accepted by parameters 1
- 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:
ChatGptUsageCacheEntry?Parses a cache entry from JSON.
Parameters
- obj IntelligenceX.Json.JsonObject
- Source JSON object.
Returns
The parsed cache entry or null.
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?