Response.Usagemodule Prompt_tokens_details : sig ... endmodule Cache_creation : sig ... endBreakdown of prompt-cache writes by ephemeral TTL, as reported by providers with Anthropic-style prompt caching. The sum matches Prompt_tokens_details.cache_write_tokens.
module Cost_details : sig ... endmodule Completion_tokens_details : sig ... endmodule Server_tool_use : sig ... endtype t = {prompt_tokens : int;completion_tokens : int;total_tokens : int;cost : float option;is_byok : bool option;prompt_tokens_details : Prompt_tokens_details.t option;cache_creation : Cache_creation.t option;cost_details : Cost_details.t option;completion_tokens_details : Completion_tokens_details.t option;server_tool_use : Server_tool_use.t option;}val server_tool_use : t -> Server_tool_use.t optionval completion_tokens_details : t -> Completion_tokens_details.t optionval cost_details : t -> Cost_details.t optionval cache_creation : t -> Cache_creation.t optionval prompt_tokens_details : t -> Prompt_tokens_details.t optionval is_byok : t -> bool optionval cost : t -> float optionval total_tokens : t -> intval completion_tokens : t -> intval prompt_tokens : t -> int