Letta · Schema

ChatCompletion

Represents a chat completion response returned by model, based on the provided input.

AIAgentsStateful AgentsMemoryMemGPTContinual LearningMCPMulti-AgentRAGOpen Source

Properties

Name Type Description
id string
choices array
created integer
model string
object string
service_tier object
system_fingerprint object
usage object
View JSON Schema on GitHub

JSON Schema

letta-chatcompletion-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ChatCompletion",
  "title": "ChatCompletion",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id"
    },
    "choices": {
      "items": {
        "$ref": "#/components/schemas/Choice"
      },
      "type": "array",
      "title": "Choices"
    },
    "created": {
      "type": "integer",
      "title": "Created"
    },
    "model": {
      "type": "string",
      "title": "Model"
    },
    "object": {
      "type": "string",
      "const": "chat.completion",
      "title": "Object"
    },
    "service_tier": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "auto",
            "default",
            "flex",
            "scale",
            "priority"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Service Tier"
    },
    "system_fingerprint": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "System Fingerprint"
    },
    "usage": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/CompletionUsage"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "additionalProperties": true,
  "type": "object",
  "required": [
    "id",
    "choices",
    "created",
    "model",
    "object"
  ],
  "description": "Represents a chat completion response returned by model, based on the provided input."
}