{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tellers-ai/json-schema/tellers-ai-chat-message-user-response-schema.json",
  "title": "ChatMessageUserResponse",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tellers-ai-openapi.json#/components/schemas/ChatMessageUserResponse",
  "properties": {
    "type": {
      "type": "string",
      "const": "user",
      "title": "Type",
      "default": "user"
    },
    "id": {
      "type": "string",
      "title": "Id"
    },
    "user_message": {
      "type": "string",
      "title": "User Message"
    },
    "enabled_tools": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Enabled Tools"
    },
    "verbosity": {
      "type": "string",
      "title": "Verbosity"
    },
    "reasoning_effort": {
      "type": "string",
      "title": "Reasoning Effort"
    },
    "pricing_level": {
      "type": "integer",
      "enum": [
        1,
        2,
        3,
        4,
        5
      ],
      "title": "Pricing Level"
    },
    "llm_model": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Llm Model"
    },
    "priority": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Priority"
    },
    "parallel_tool_calls": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Parallel Tool Calls"
    },
    "max_tellers_token": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Max Tellers Token"
    },
    "prefer_compaction": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Prefer Compaction",
      "description": "The preferred compaction threshold the message was sent with, as `prefer_compaction` in the agent message request. Null when it was sent without one -- the model's own threshold applied -- and on messages written before the settings were recorded at all."
    },
    "llm_settings": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Llm Settings",
      "description": "The LLM settings the message was sent with that have no field of their own above -- `tool_exposure`, `compaction` and the like -- keyed by their name in the agent message request. Restoring the composer means the fields above plus this. It holds no value that is already a field, so nothing here can disagree with them. Null on messages written before the column existed, which ran under whatever these settings defaulted to at the time."
    },
    "context": {
      "additionalProperties": true,
      "type": "object",
      "title": "Context"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    }
  },
  "type": "object",
  "required": [
    "id",
    "user_message",
    "enabled_tools",
    "verbosity",
    "reasoning_effort",
    "pricing_level",
    "llm_model",
    "priority",
    "parallel_tool_calls",
    "max_tellers_token",
    "context",
    "created_at"
  ]
}