Spaces:
Running
Running
Download src/tools/tool_manager.py from Jakob08/moneychatbot: direct link, hf CLI and curl.
- Browser
- Download file 1.35 kB
-
https://huggingface.co/spaces/Jakob08/moneychatbot/resolve/main/src/tools/tool_manager.py
- Command line
-
hf download hf://spaces/Jakob08/moneychatbot/src/tools/tool_manager.py
-
curl -L -o tool_manager.py https://huggingface.co/spaces/Jakob08/moneychatbot/resolve/main/src/tools/tool_manager.py
1.35 kB
| # | |
| # SPDX-FileCopyrightText: Hadad <hadad@linuxmail.org> | |
| # SPDX-License-Identifier: Apache-2.0 | |
| # | |
| def local_tools(): | |
| return [ | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "web_search", | |
| "description": "Perform a web search via SearXNG (Google only).", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { | |
| "query": { | |
| "type": "string" | |
| }, | |
| "engine": { | |
| "type": "string", | |
| "enum": ["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"], | |
| }, | |
| }, | |
| } | |
| ] |