# # SPDX-FileCopyrightText: Hadad # SPDX-License-Identifier: Apache-2.0 # def construct_tool_definitions(): return [ { "type": "function", "function": { "name": "web_search", "description": "Perform a web search via SearXNG (Google or Bing) or Baidu.", "parameters": { "type": "object", "properties": { "query": { "type": "string" }, "engine": { "type": "string", "enum": [ "google", "bing", "baidu" ], "default": "google", }, }, "required": ["query"], }, }, }, { "type": "function", "function": { "name": "read_url", "description": "Fetch and extract main content from a URL.", "parameters": { "type": "object", "properties": { "url": { "type": "string", "format": "uri" }, }, "required": ["url"], }, }, } ]