{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/membase-ai/json-schema/membase-ai-search-body-schema.json",
  "title": "SearchBody",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/membase-ai-agent-protocol.json#/components/schemas/SearchBody",
  "additionalProperties": false,
  "properties": {
    "limit": {
      "anyOf": [
        {
          "maximum": 50.0,
          "minimum": 1.0,
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "description": "How many passages in all.",
      "title": "Limit"
    },
    "mode": {
      "default": "full",
      "description": "`full`: the engine's whole retrieval. `fast`: one round, no model call.",
      "enum": [
        "full",
        "fast"
      ],
      "title": "Mode",
      "type": "string"
    },
    "q": {
      "description": "The question, in natural language.",
      "title": "Q",
      "type": "string"
    }
  },
  "required": [
    "q"
  ],
  "type": "object"
}