{ "$defs": { "Confidence": { "enum": [ "low", "medium", "high" ], "title": "Confidence", "type": "string" }, "NodeType": { "enum": [ "finding", "problem", "technique", "case", "entity", "event", "concept", "datapoint", "synthesis" ], "title": "NodeType", "type": "string" }, "Scope": { "additionalProperties": false, "description": "Project context plus optional project includes; all-project access is deliberate.", "properties": { "all_projects": { "default": false, "title": "All Projects", "type": "boolean" }, "include_projects": { "anyOf": [ { "items": { "maxLength": 128, "minLength": 1, "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$", "type": "string" }, "maxItems": 50, "type": "array" }, { "type": "null" } ], "default": null, "title": "Include Projects" }, "include_shared": { "default": true, "title": "Include Shared", "type": "boolean" }, "projects": { "items": { "maxLength": 128, "minLength": 1, "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$", "type": "string" }, "maxItems": 50, "minItems": 1, "title": "Projects", "type": "array" }, "schema_version": { "const": 1, "default": 1, "title": "Schema Version", "type": "integer" } }, "required": [ "projects" ], "title": "Scope", "type": "object" } }, "additionalProperties": false, "properties": { "as_of_from": { "anyOf": [ { "format": "date", "type": "string" }, { "type": "null" } ], "default": null, "title": "As Of From" }, "as_of_to": { "anyOf": [ { "format": "date", "type": "string" }, { "type": "null" } ], "default": null, "title": "As Of To" }, "audience": { "default": [], "items": { "maxLength": 100, "minLength": 1, "type": "string" }, "maxItems": 20, "title": "Audience", "type": "array" }, "budget_tokens": { "maximum": 50000, "minimum": 256, "title": "Budget Tokens", "type": "integer" }, "confidences": { "default": [], "items": { "$ref": "#/$defs/Confidence" }, "maxItems": 3, "title": "Confidences", "type": "array" }, "cursor": { "anyOf": [ { "maxLength": 512, "type": "string" }, { "type": "null" } ], "default": null, "title": "Cursor" }, "domain": { "default": [], "items": { "maxLength": 100, "minLength": 1, "type": "string" }, "maxItems": 20, "title": "Domain", "type": "array" }, "include_evidence": { "default": true, "title": "Include Evidence", "type": "boolean" }, "limit": { "default": 20, "maximum": 50, "minimum": 1, "title": "Limit", "type": "integer" }, "node_types": { "default": [], "items": { "$ref": "#/$defs/NodeType" }, "maxItems": 9, "title": "Node Types", "type": "array" }, "query": { "default": "", "maxLength": 1000, "title": "Query", "type": "string" }, "schema_version": { "const": 1, "default": 1, "title": "Schema Version", "type": "integer" }, "scope": { "$ref": "#/$defs/Scope" }, "stale_only": { "default": false, "title": "Stale Only", "type": "boolean" }, "tags": { "default": [], "items": { "maxLength": 100, "minLength": 1, "type": "string" }, "maxItems": 20, "title": "Tags", "type": "array" }, "use_for": { "default": [], "items": { "maxLength": 100, "minLength": 1, "type": "string" }, "maxItems": 20, "title": "Use For", "type": "array" } }, "required": [ "scope", "budget_tokens" ], "title": "SearchRequest", "type": "object" }