1. Docs
  2. Reference
  3. REST API Docs
  4. Schema
  5. AgentBackendEventTokenUsage

AgentBackendEventTokenUsage

    Token usage statistics for a model invocation.

    Properties

    • input_tokens integer optional
      Number of input tokens consumed by the model.
    • output_tokens integer optional
      Number of output tokens generated by the model.
    • cache_creation_input_tokens integer optional
      Number of input tokens written to the prompt cache.
    • cache_read_input_tokens integer optional
      Number of input tokens read from the prompt cache.