{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/grafomem-com/json-schema/grafomem-com-retrieve-request-schema.json",
  "title": "RetrieveRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/grafomem-com-stores-api-openapi.yml#/components/schemas/RetrieveRequest",
  "properties": {
    "query": {
      "type": "string",
      "title": "Query"
    },
    "options": {
      "$ref": "#/$defs/RetrieveOptionsModel",
      "default": {
        "budget_tokens": 512
      }
    }
  },
  "type": "object",
  "required": [
    "query"
  ],
  "$defs": {
    "RetrieveOptionsModel": {
      "properties": {
        "budget_tokens": {
          "type": "integer",
          "title": "Budget Tokens",
          "default": 512
        },
        "as_of": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "As Of"
        },
        "tenant_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Tenant Id"
        },
        "top_k": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Top K"
        }
      },
      "type": "object",
      "title": "RetrieveOptionsModel"
    }
  }
}