Class
ChatGptUsageCacheEntry
Represents a cached usage snapshot entry.
Inheritance
- Object
- ChatGptUsageCacheEntry
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.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object