Spaces:
Runtime error
Runtime error
File size: 1,821 Bytes
b09c19d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
#tools/tool_definitions.py
TOOL_TIPS = {
"WebSearchTool": "π Search the web using DuckDuckGo, Brave, or SerpAPI.",
"VisitWebpageTool": "π Fetch and convert a webpage into readable markdown.",
"PythonTool": "π Execute Python code securely in a sandboxed environment.",
"PythonInterpreterTool": "π§ͺ A stateful Python interpreter with retained execution context.",
"TerminalTool": "π» Run shell commands. Use with caution.",
"FileTool": "ποΈ Read, write, and manipulate local files for your agent.",
"ImageTool": "πΌοΈ Handle image input/output β caption, generate, or analyze.",
"FinalAnswerTool": "β
Marks the final agent response to stop processing.",
"UserInputTool": "π€ Allows dynamic user prompts mid-task.",
"LangChainTool": "π Wrap LangChain tools like SerpAPI, SQL Toolkit, Wolfram Alpha.",
"HFModelDownloadsTool": "π Fetch most downloaded HF models for a given task.",
"ApiWebSearchTool": "π°οΈ Search APIs like Bing or Google for fresh results.",
"Tool.from_hub()": "π¦ Load external tools from Hugging Face Hub repos.",
"Tool.from_space()": "π§ͺ Import Gradio Spaces as tools.",
"Tool.from_mcp()": "π§ Load tools dynamically from registered MCP servers.",
"Tool.from_langchain()": "𧬠Convert LangChain tool definitions into SmolAgent-compatible formats.",
"Tool.from_gradio()": "ποΈ Wrap Gradio interfaces as callable tools.",
"ToolCollection.from_mcp()": "π Fetch and register toolsets from Glama, Smithery, and other MCP providers."
}
β
This file gives you tooltip metadata for dynamic dropdowns, tool help panels, and config-driven rendering. You can link this file to model_config.json, or expand to include categories, icons, or flags like streaming=True. |