{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bisque-cloud/json-schema/bisque-cloud-ask-request-schema.json",
  "title": "AskRequest",
  "description": "Either the flat form (`query` is a string) or the NLWeb 0.55 structured form (`query` is an object).",
  "x-generated": "2026-11-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/bisque-cloud-api-openapi.json#/components/schemas/AskRequest",
  "type": "object",
  "properties": {
    "query": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 200
        },
        {
          "type": "object",
          "required": [
            "text"
          ],
          "properties": {
            "text": {
              "type": "string",
              "maxLength": 200
            },
            "site": {
              "type": "string"
            }
          }
        }
      ]
    },
    "site": {
      "type": "string"
    },
    "prev": {
      "type": "string",
      "description": "Comma-separated previous queries."
    },
    "streaming": {
      "type": "boolean",
      "default": false
    },
    "mode": {
      "type": "string",
      "enum": [
        "list",
        "summarize",
        "generate"
      ],
      "default": "list"
    },
    "query_id": {
      "type": "string"
    },
    "context": {
      "type": "object",
      "properties": {
        "prev": {
          "type": "string"
        }
      }
    },
    "prefer": {
      "type": "object",
      "properties": {
        "streaming": {
          "type": "boolean"
        },
        "mode": {
          "type": "string"
        }
      }
    },
    "meta": {
      "type": "object",
      "properties": {
        "version": {
          "type": "string",
          "const": "0.55"
        }
      }
    }
  }
}