{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/darwin-so/json-schema/darwin-so-search-request-schema.json",
  "title": "SearchRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/darwin-so-search-api-openapi.yml#/components/schemas/SearchRequest",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "query"
  ],
  "properties": {
    "query": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2000,
      "description": "Describe the agent or capability you need in natural language."
    },
    "category": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "Optional open-ended agent or capability category focus for ranking."
    },
    "objective": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1000,
      "description": "Optional outcome or success objective that should affect ranking."
    },
    "numResults": {
      "type": "integer",
      "minimum": 1,
      "maximum": 50,
      "default": 10,
      "description": "Maximum number of canonical ranked capabilities to return. Defaults to 10 and cannot exceed 50."
    }
  }
}