prompt_token_details is the per-category breakdown of prompt_tokens.
public class PromptTokenDetailsprompt_token_details is the per-category breakdown of prompt_tokens. Category names are
model-specific (for example cache_read, cache_write). Returned only when the
PROMPT_TOKEN_DETAILS field is requested.
raw maps each category name to its prompt-token count.
Returns the raw JSON value of [raw].
Returns a mutable builder for constructing an instance of [PromptTokenDetails]..
raw maps each category name to its prompt-token count.
raw maps each category name to its prompt-token count.
Returns an immutable instance of [PromptTokenDetails].
Validates that the types of all values in this object match their expected types recursively.
Returns a mutable builder for constructing an instance of [PromptTokenDetails]..
Returns an immutable instance of [PromptTokenDetails].
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.