Letta · Schema

ChatCompletionUserMessageParam

Messages sent by an end user, containing prompts or additional context information.

AIAgentsStateful AgentsMemoryMemGPTContinual LearningMCPMulti-AgentRAGOpen Source

Properties

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

JSON Schema

letta-chatcompletionusermessageparam-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ChatCompletionUserMessageParam",
  "title": "ChatCompletionUserMessageParam",
  "properties": {
    "content": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "items": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ChatCompletionContentPartTextParam"
              },
              {
                "$ref": "#/components/schemas/ChatCompletionContentPartImageParam"
              },
              {
                "$ref": "#/components/schemas/ChatCompletionContentPartInputAudioParam"
              },
              {
                "$ref": "#/components/schemas/File"
              }
            ]
          },
          "type": "array"
        }
      ],
      "title": "Content"
    },
    "role": {
      "type": "string",
      "const": "user",
      "title": "Role"
    },
    "name": {
      "type": "string",
      "title": "Name"
    }
  },
  "type": "object",
  "required": [
    "content",
    "role"
  ],
  "description": "Messages sent by an end user, containing prompts or additional context\ninformation."
}