From 7c5acf3b4544348fd3325b348f38f4500517d94e Mon Sep 17 00:00:00 2001 From: krut_ni Date: Tue, 12 May 2026 17:23:44 +0200 Subject: [PATCH] added possible null values to all web_search properties to match the optional parameter design. Otherwise the strict schema forbids empty parameters and return BadRequest --- .../wwwroot/tool_definitions/web_search.json | 39 +++++++++++++++---- 1 file changed, 32 insertions(+), 7 deletions(-) diff --git a/app/MindWork AI Studio/wwwroot/tool_definitions/web_search.json b/app/MindWork AI Studio/wwwroot/tool_definitions/web_search.json index e74e3246..775929d8 100644 --- a/app/MindWork AI Studio/wwwroot/tool_definitions/web_search.json +++ b/app/MindWork AI Studio/wwwroot/tool_definitions/web_search.json @@ -59,43 +59,68 @@ "description": "The search query." }, "categories": { - "type": "array", + "type": [ + "array", + "null" + ], "description": "Optional list of SearXNG categories to use for the search.", "items": { "type": "string" } }, "engines": { - "type": "array", + "type": [ + "array", + "null" + ], "description": "Optional list of specific SearXNG engines to use when the user requests them explicitly.", "items": { "type": "string" } }, "language": { - "type": "string", + "type": [ + "string", + "null" + ], "description": "Optional language code for the search." }, "time_range": { - "type": "string", + "type": [ + "string", + "null" + ], "description": "Optional time range filter for engines that support it.", "enum": [ + null, "day", "month", "year" ] }, "page": { - "type": "integer", + "type": [ + "integer", + "null" + ], "description": "Optional search result page number starting at 1." }, "limit": { - "type": "integer", + "type": [ + "integer", + "null" + ], "description": "Optional maximum number of results to return to the model after local truncation." } }, "required": [ - "query" + "query", + "categories", + "engines", + "language", + "time_range", + "page", + "limit" ], "additionalProperties": false }