Letta · Schema

ToolReturnContent

AIAgentsStateful AgentsMemoryMemGPTContinual LearningMCPMulti-AgentRAGOpen Source

Properties

Name Type Description
type string Indicates this content represents a tool return event.
tool_call_id string References the ID of the ToolCallContent that initiated this tool call.
content string The content returned by the tool execution.
is_error boolean Indicates whether the tool execution resulted in an error.
View JSON Schema on GitHub

JSON Schema

letta-toolreturncontent-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ToolReturnContent",
  "title": "ToolReturnContent",
  "properties": {
    "type": {
      "type": "string",
      "const": "tool_return",
      "title": "Type",
      "description": "Indicates this content represents a tool return event.",
      "default": "tool_return"
    },
    "tool_call_id": {
      "type": "string",
      "title": "Tool Call Id",
      "description": "References the ID of the ToolCallContent that initiated this tool call."
    },
    "content": {
      "type": "string",
      "title": "Content",
      "description": "The content returned by the tool execution."
    },
    "is_error": {
      "type": "boolean",
      "title": "Is Error",
      "description": "Indicates whether the tool execution resulted in an error."
    }
  },
  "type": "object",
  "required": [
    "tool_call_id",
    "content",
    "is_error"
  ]
}