completion_token_details is the per-category breakdown of completion_tokens.
public class CompletionTokenDetailscompletion_token_details is the per-category breakdown of completion_tokens. Category
names are model-specific (for example reasoning, audio). Returned only when the
COMPLETION_TOKEN_DETAILS field is requested.
raw maps each category name to its completion-token count.
Returns the raw JSON value of [raw].
Returns a mutable builder for constructing an instance of [CompletionTokenDetails]..
raw maps each category name to its completion-token count.
raw maps each category name to its completion-token count.
Returns an immutable instance of [CompletionTokenDetails].
Validates that the types of all values in this object match their expected types recursively.
Returns a mutable builder for constructing an instance of [CompletionTokenDetails]..
Returns an immutable instance of [CompletionTokenDetails].
Validates that the types of all values in this object match their expected types recursively.
kwargs is the event payload — an opaque JSON object whose shape depends on name and
on the emitting SDK.
name is the event kind.
time is when the event occurred (RFC3339 date-time with millisecond precision).
Returns the raw JSON value of [name].
Returns the raw JSON value of [time].
Returns a mutable builder for constructing an instance of [CompletionTokenDetails]..
kwargs is the event payload — an opaque JSON object whose shape depends on name
and on the emitting SDK.
name is the event kind.
name is the event kind.
time is when the event occurred (RFC3339 date-time with millisecond precision).
time is when the event occurred (RFC3339 date-time with millisecond precision).
Returns an immutable instance of [CompletionTokenDetails].
Validates that the types of all values in this object match their expected types recursively.
Returns a mutable builder for constructing an instance of [CompletionTokenDetails]..
Returns an immutable instance of [CompletionTokenDetails].
Validates that the types of all values in this object match their expected types recursively.
Returns a mutable builder for constructing an instance of [CompletionTokenDetails]..
Returns an immutable instance of [CompletionTokenDetails].
Validates that the types of all values in this object match their expected types recursively.
Returns a mutable builder for constructing an instance of [CompletionTokenDetails]..
Returns an immutable instance of [CompletionTokenDetails].
Validates that the types of all values in this object match their expected types recursively.
Returns a mutable builder for constructing an instance of [CompletionTokenDetails]..
Returns an immutable instance of [CompletionTokenDetails].
Validates that the types of all values in this object match their expected types recursively.
Returns a mutable builder for constructing an instance of [CompletionTokenDetails]..
Returns an immutable instance of [CompletionTokenDetails].
Validates that the types of all values in this object match their expected types recursively.
Returns a mutable builder for constructing an instance of [CompletionTokenDetails]..
Returns an immutable instance of [CompletionTokenDetails].
Validates that the types of all values in this object match their expected types recursively.
raw maps each category name to its completion-token count.
Returns the raw JSON value of [raw].
Returns a mutable builder for constructing an instance of [CompletionTokenDetails]..
raw maps each category name to its completion-token count.
raw maps each category name to its completion-token count.
Returns an immutable instance of [CompletionTokenDetails].
Validates that the types of all values in this object match their expected types recursively.
Returns a mutable builder for constructing an instance of [CompletionTokenDetails]..
Returns an immutable instance of [CompletionTokenDetails].
Validates that the types of all values in this object match their expected types recursively.
raw maps each category name to its completion-token count.
Returns the raw JSON value of [raw].
Returns a mutable builder for constructing an instance of [CompletionTokenDetails]..
raw maps each category name to its completion-token count.
raw maps each category name to its completion-token count.
Returns an immutable instance of [CompletionTokenDetails].
Validates that the types of all values in this object match their expected types recursively.
Returns a mutable builder for constructing an instance of [CompletionTokenDetails]..
Returns an immutable instance of [CompletionTokenDetails].
Validates that the types of all values in this object match their expected types recursively.
Returns an enum member corresponding to this class instance's value, or [Value._UNKNOWN] if the class was instantiated with an unknown value.
Returns an enum member corresponding to this class instance's value.
Returns this class instance's primitive wire representation.
Validates that the types of all values in this object match their expected types recursively.
Returns an enum member corresponding to this class instance's value, or [Value._UNKNOWN] if the class was instantiated with an unknown value.
Returns an enum member corresponding to this class instance's value.
Returns this class instance's primitive wire representation.
Validates that the types of all values in this object match their expected types recursively.