Letta · Schema

Memory

Represents the in-context memory (i.e. Core memory) of the agent. This includes both the `Block` objects (labelled by sections), as well as tools to edit the blocks.

AIAgentsStateful AgentsMemoryMemGPTContinual LearningMCPMulti-AgentRAGOpen Source

Properties

Name Type Description
agent_type object Agent type controlling prompt rendering.
git_enabled boolean Whether this agent uses git-backed memory with structured labels.
blocks array Memory blocks contained in the agent's in-context memory
file_blocks array Special blocks representing the agent's in-context memory of an attached file
prompt_template string Deprecated. Ignored for performance.
View JSON Schema on GitHub

JSON Schema

letta-memory-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Memory",
  "title": "Memory",
  "properties": {
    "agent_type": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/AgentType"
        },
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Agent Type",
      "description": "Agent type controlling prompt rendering."
    },
    "git_enabled": {
      "type": "boolean",
      "title": "Git Enabled",
      "description": "Whether this agent uses git-backed memory with structured labels.",
      "default": false
    },
    "blocks": {
      "items": {
        "$ref": "#/components/schemas/Block"
      },
      "type": "array",
      "title": "Blocks",
      "description": "Memory blocks contained in the agent's in-context memory"
    },
    "file_blocks": {
      "items": {
        "$ref": "#/components/schemas/FileBlock"
      },
      "type": "array",
      "title": "File Blocks",
      "description": "Special blocks representing the agent's in-context memory of an attached file"
    },
    "prompt_template": {
      "type": "string",
      "title": "Prompt Template",
      "description": "Deprecated. Ignored for performance.",
      "default": ""
    }
  },
  "type": "object",
  "required": [
    "blocks"
  ],
  "description": "Represents the in-context memory (i.e. Core memory) of the agent. This includes both the `Block` objects (labelled by sections), as well as tools to edit the blocks."
}