Letta · Schema

LettaStopReason

The stop reason from Letta indicating why agent loop stopped execution.

AIAgentsStateful AgentsMemoryMemGPTContinual LearningMCPMulti-AgentRAGOpen Source

Properties

Name Type Description
message_type string The type of the message.
stop_reason object The reason why execution stopped.
View JSON Schema on GitHub

JSON Schema

letta-lettastopreason-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/LettaStopReason",
  "title": "LettaStopReason",
  "properties": {
    "message_type": {
      "type": "string",
      "const": "stop_reason",
      "title": "Message Type",
      "description": "The type of the message.",
      "default": "stop_reason"
    },
    "stop_reason": {
      "$ref": "#/components/schemas/StopReasonType",
      "description": "The reason why execution stopped."
    }
  },
  "type": "object",
  "required": [
    "stop_reason"
  ],
  "description": "The stop reason from Letta indicating why agent loop stopped execution."
}