app-knmojt-13 / src /tools /mapping.py
AiCoderv2's picture
Deploy Gradio app with multiple files
9f9394b verified
#
# SPDX-FileCopyrightText: Hadad <[email protected]>
# SPDX-License-Identifier: Apache-2.0
#
TOOLS = [
{
"type": "function",
"function": {
"name": "web_search",
"description": "Search the web using SearXNG and return results",
"parameters": {
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "The search query"
}
},
"required": ["query"]
}
}
},
{
"type": "function",
"function": {
"name": "open_link",
"description": "Open a web page using a URL, link, or hyperlink and extract its main content",
"parameters": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "The URL, link, or hyperlink of the web page to open and read"
}
},
"required": ["url"]
}
}
}
]