Letta · Schema

JsonSchemaResponseFormat

Response format for JSON schema-based responses.

AIAgentsStateful AgentsMemoryMemGPTContinual LearningMCPMulti-AgentRAGOpen Source

Properties

Name Type Description
type string The type of the response format.
json_schema object The JSON schema of the response.
View JSON Schema on GitHub

JSON Schema

letta-jsonschemaresponseformat-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/JsonSchemaResponseFormat",
  "title": "JsonSchemaResponseFormat",
  "properties": {
    "type": {
      "type": "string",
      "const": "json_schema",
      "title": "Type",
      "description": "The type of the response format.",
      "default": "json_schema"
    },
    "json_schema": {
      "additionalProperties": true,
      "type": "object",
      "title": "Json Schema",
      "description": "The JSON schema of the response."
    }
  },
  "type": "object",
  "required": [
    "json_schema"
  ],
  "description": "Response format for JSON schema-based responses."
}