{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dialogbrain-com/json-schema/dialogbrain-com-src-api-agent-query-request-schema.json",
  "title": "QueryRequest",
  "description": "Request for simple query to AI agent.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dialogbrain-com-agent-api-openapi.yml#/components/schemas/src__api__agent__QueryRequest",
  "properties": {
    "query": {
      "type": "string",
      "title": "Query"
    },
    "session_id": {
      "type": "string",
      "title": "Session Id"
    },
    "model": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Model",
      "default": "gpt-4o"
    },
    "context": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Context"
    },
    "use_rag": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Use Rag",
      "default": true
    }
  },
  "type": "object",
  "required": [
    "query",
    "session_id"
  ]
}