Letta · Schema

MessageSchema

AIAgentsStateful AgentsMemoryMemGPTContinual LearningMCPMulti-AgentRAGOpen Source

Properties

Name Type Description
created_at string
group_id object
model object
name object
role string
content array
tool_call_id object
tool_calls array
tool_returns array
updated_at string
View JSON Schema on GitHub

JSON Schema

letta-letta-serialize-schemas-pydantic-agent-schema-messageschema-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/letta__serialize_schemas__pydantic_agent_schema__MessageSchema",
  "title": "MessageSchema",
  "properties": {
    "created_at": {
      "type": "string",
      "title": "Created At"
    },
    "group_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Group Id"
    },
    "model": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Model"
    },
    "name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Name"
    },
    "role": {
      "type": "string",
      "title": "Role"
    },
    "content": {
      "items": {
        "$ref": "#/components/schemas/LettaMessageContentUnion"
      },
      "type": "array",
      "title": "Content"
    },
    "tool_call_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Tool Call Id"
    },
    "tool_calls": {
      "items": {},
      "type": "array",
      "title": "Tool Calls"
    },
    "tool_returns": {
      "items": {},
      "type": "array",
      "title": "Tool Returns"
    },
    "updated_at": {
      "type": "string",
      "title": "Updated At"
    }
  },
  "type": "object",
  "required": [
    "created_at",
    "group_id",
    "model",
    "name",
    "role",
    "content",
    "tool_call_id",
    "tool_calls",
    "tool_returns",
    "updated_at"
  ]
}