{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/talarion-com/json-schema/talarion-com-search-request-schema.json",
  "title": "SearchRequest",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/talarion-com-openapi.json#/components/schemas/SearchRequest",
  "type": "object",
  "required": [
    "query"
  ],
  "properties": {
    "query": {
      "type": "string",
      "description": "The search question you want caught up on. One focused question about one topic retrieves best."
    },
    "model_id": {
      "type": [
        "string",
        "null"
      ],
      "default": null,
      "description": "Your model as an OpenRouter id. Filters results to facts that postdate that model's training cutoff."
    },
    "k": {
      "type": [
        "integer",
        "null"
      ],
      "default": null,
      "description": "Number of facts to return. Omit for the default of 20. Out-of-range values are CLAMPED into 10–100 server-side, not rejected — `k: 3` succeeds and returns 10. Deliberately no minimum/maximum keywords here: they would make generated clients reject requests the API accepts."
    },
    "timeline": {
      "type": "boolean",
      "default": true,
      "description": "Result ordering. `true`: most recent `true_by` first. `false`: ordered by relevance."
    },
    "true_by_min": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "default": null,
      "description": "Only return facts with `true_by` on or after this ISO 8601 datetime. Overrides the `model_id`-derived training-cutoff floor. Naive datetimes are treated as UTC."
    },
    "true_by_max": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "default": null,
      "description": "Only return facts with `true_by` on or before this ISO 8601 datetime — e.g. for date-boxed backtesting. Must be after `true_by_min`; otherwise the request is rejected with a 422. Naive datetimes are treated as UTC."
    }
  }
}