{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/serpkite-com/json-schema/serpkite-com-assistant-request-schema.json",
  "title": "AssistantRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/serpkite-com-ai-mode-api-openapi.yml#/components/schemas/AssistantRequest",
  "type": "object",
  "required": [
    "prompt"
  ],
  "properties": {
    "prompt": {
      "type": "string",
      "minLength": 1,
      "maxLength": 4000,
      "description": "The message to the assistant"
    },
    "country": {
      "type": "string",
      "description": "Ask from this country (ISO 3166-1 alpha-2): answers, prices and shops follow it"
    },
    "language": {
      "type": "string",
      "description": "Interface language (e.g. en, de); the answer follows the prompt's language"
    },
    "track": {
      "$ref": "#/$defs/TrackList"
    },
    "include_html": {
      "type": "boolean",
      "default": false,
      "description": "Also return the answer page's HTML (`html`)"
    },
    "format": {
      "type": "string",
      "enum": [
        "json",
        "markdown",
        "compact"
      ],
      "default": "json"
    },
    "fields": {
      "type": "string"
    },
    "max_age": {
      "type": "integer",
      "minimum": 0,
      "maximum": 2592000,
      "description": "Accept a cached answer up to this many seconds old (half price); answers are cached for at most an hour"
    }
  },
  "$defs": {
    "TrackList": {
      "type": "array",
      "maxItems": 20,
      "items": {
        "type": "string",
        "maxLength": 100
      },
      "description": "Brands (\"Acme\") and domains (\"acme.com\", subdomains match) to check the answer for; each comes back in `mentions`"
    }
  }
}