Letta · Schema

PromptTokensDetails

Breakdown of tokens used in the prompt.

AIAgentsStateful AgentsMemoryMemGPTContinual LearningMCPMulti-AgentRAGOpen Source

Properties

Name Type Description
audio_tokens object
cached_tokens object
View JSON Schema on GitHub

JSON Schema

letta-prompttokensdetails-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/PromptTokensDetails",
  "title": "PromptTokensDetails",
  "properties": {
    "audio_tokens": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Audio Tokens"
    },
    "cached_tokens": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Cached Tokens"
    }
  },
  "additionalProperties": true,
  "type": "object",
  "description": "Breakdown of tokens used in the prompt."
}