Letta · Schema

ChatCompletionFunctionMessageParam

AIAgentsStateful AgentsMemoryMemGPTContinual LearningMCPMulti-AgentRAGOpen Source

Properties

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

JSON Schema

letta-chatcompletionfunctionmessageparam-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ChatCompletionFunctionMessageParam",
  "title": "ChatCompletionFunctionMessageParam",
  "properties": {
    "content": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Content"
    },
    "name": {
      "type": "string",
      "title": "Name"
    },
    "role": {
      "type": "string",
      "const": "function",
      "title": "Role"
    }
  },
  "type": "object",
  "required": [
    "content",
    "name",
    "role"
  ]
}