IntelligenceX
Class

ChatGptUsageReport

Namespace IntelligenceX.OpenAI.Usage
Assembly IntelligenceX
Modifiers sealed

Represents a combined usage snapshot and usage events report.

Inheritance

  • Object
  • ChatGptUsageReport

Constructors

public ChatGptUsageReport(ChatGptUsageSnapshot snapshot, IReadOnlyList<ChatGptCreditUsageEvent> events) #

Initializes a new usage report.

Parameters

snapshot IntelligenceX.OpenAI.Usage.ChatGptUsageSnapshot
events System.Collections.Generic.IReadOnlyList{IntelligenceX.OpenAI.Usage.ChatGptCreditUsageEvent}

Methods

public JsonObject ToJson() #
Returns: JsonObject

Serializes the report to a JSON object.

Properties

public ChatGptUsageSnapshot Snapshot { get; } #

Gets the usage snapshot.

public IReadOnlyList<ChatGptCreditUsageEvent> Events { get; } #

Gets the credit usage events.