Letta · Schema

CompletionTokensDetails

Breakdown of tokens used in a completion.

AIAgentsStateful AgentsMemoryMemGPTContinual LearningMCPMulti-AgentRAGOpen Source

Properties

Name Type Description
accepted_prediction_tokens object
audio_tokens object
reasoning_tokens object
rejected_prediction_tokens object
View JSON Schema on GitHub

JSON Schema

letta-completiontokensdetails-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/CompletionTokensDetails",
  "title": "CompletionTokensDetails",
  "properties": {
    "accepted_prediction_tokens": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Accepted Prediction Tokens"
    },
    "audio_tokens": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Audio Tokens"
    },
    "reasoning_tokens": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Reasoning Tokens"
    },
    "rejected_prediction_tokens": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Rejected Prediction Tokens"
    }
  },
  "additionalProperties": true,
  "type": "object",
  "description": "Breakdown of tokens used in a completion."
}