OptionalcacheCached input tokens read from the prompt cache. Only set by providers that report it (e.g. claude-code).
OptionalcacheInput tokens written to the prompt cache. Only set by providers that report it (e.g. claude-code).
OptionalinputThe number of input tokens used in the request.
OptionaloutputThe number of output tokens generated by the AI agent.
OptionalresponseThe response from the AI agent.
OptionaltotalTotal request cost in USD as reported by the provider. Only set by providers that compute it (e.g. claude-code).
Response structure for asking a user LLM a question.