Letta · Schema

ChatCompletionToolMessageParam

AIAgentsStateful AgentsMemoryMemGPTContinual LearningMCPMulti-AgentRAGOpen Source

Properties

Name Type Description
content object
role string
tool_call_id string
View JSON Schema on GitHub

JSON Schema

letta-chatcompletiontoolmessageparam-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ChatCompletionToolMessageParam",
  "title": "ChatCompletionToolMessageParam",
  "properties": {
    "content": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "items": {
            "$ref": "#/components/schemas/ChatCompletionContentPartTextParam"
          },
          "type": "array"
        }
      ],
      "title": "Content"
    },
    "role": {
      "type": "string",
      "const": "tool",
      "title": "Role"
    },
    "tool_call_id": {
      "type": "string",
      "title": "Tool Call Id"
    }
  },
  "type": "object",
  "required": [
    "content",
    "role",
    "tool_call_id"
  ]
}