{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aiworkstation-cn/json-schema/aiworkstation-cn-aichat-request-schema.json",
  "title": "AIChatRequest",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aiworkstation-cn-openapi.json#/components/schemas/AIChatRequest",
  "properties": {
    "client_id": {
      "type": "string",
      "title": "Client Id"
    },
    "thread_id": {
      "type": "string",
      "maxLength": 64,
      "minLength": 1,
      "title": "Thread Id"
    },
    "message": {
      "type": "string",
      "maxLength": 50000,
      "minLength": 1,
      "title": "Message"
    },
    "member_id": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 120
        },
        {
          "type": "null"
        }
      ],
      "title": "Member Id"
    },
    "username": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 120
        },
        {
          "type": "null"
        }
      ],
      "title": "Username"
    },
    "invite_code": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 64
        },
        {
          "type": "null"
        }
      ],
      "title": "Invite Code"
    },
    "memory_enabled": {
      "type": "boolean",
      "title": "Memory Enabled",
      "default": false
    },
    "model_alias": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Model Alias"
    },
    "reasoning_effort": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Reasoning Effort",
      "default": "medium"
    },
    "terminal": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Terminal"
    },
    "style_profile": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 32
        },
        {
          "type": "null"
        }
      ],
      "title": "Style Profile"
    },
    "external_link_fetch_enabled": {
      "type": "boolean",
      "title": "External Link Fetch Enabled",
      "default": true
    },
    "next_actions_enabled": {
      "type": "boolean",
      "title": "Next Actions Enabled",
      "default": false
    },
    "task_type": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 64
        },
        {
          "type": "null"
        }
      ],
      "title": "Task Type"
    },
    "task_payload": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Task Payload"
    },
    "store_user_message": {
      "type": "boolean",
      "title": "Store User Message",
      "default": true
    },
    "locale": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 16
        },
        {
          "type": "null"
        }
      ],
      "title": "Locale",
      "default": "en"
    }
  },
  "type": "object",
  "required": [
    "client_id",
    "thread_id",
    "message"
  ]
}