{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mengram-io/json-schema/mengram-io-search-request-schema.json",
  "title": "SearchRequest",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mengram-io-openapi.json#/components/schemas/SearchRequest",
  "properties": {
    "user_id": {
      "type": "string",
      "title": "User Id",
      "default": "default"
    },
    "query": {
      "type": "string",
      "title": "Query"
    },
    "agent_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Agent Id"
    },
    "run_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Run Id"
    },
    "app_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "App Id"
    },
    "limit": {
      "type": "integer",
      "title": "Limit",
      "default": 5
    },
    "graph_depth": {
      "type": "integer",
      "title": "Graph Depth",
      "default": 2
    },
    "threshold": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Threshold"
    },
    "filters": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Filters"
    },
    "max_tokens": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Max Tokens"
    },
    "chunks": {
      "type": "integer",
      "title": "Chunks",
      "default": 1
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "query"
  ]
}