kavyas2912 commited on
Commit
7d3bb17
Β·
verified Β·
1 Parent(s): 3dbaab7

Upload tool_definitions.py

Browse files
Files changed (1) hide show
  1. tool_definitions.py +25 -0
tool_definitions.py ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #tools/tool_definitions.py
2
+
3
+ TOOL_TIPS = {
4
+ "WebSearchTool": "πŸ” Search the web using DuckDuckGo, Brave, or SerpAPI.",
5
+ "VisitWebpageTool": "🌐 Fetch and convert a webpage into readable markdown.",
6
+ "PythonTool": "🐍 Execute Python code securely in a sandboxed environment.",
7
+ "PythonInterpreterTool": "πŸ§ͺ A stateful Python interpreter with retained execution context.",
8
+ "TerminalTool": "πŸ’» Run shell commands. Use with caution.",
9
+ "FileTool": "πŸ—‚οΈ Read, write, and manipulate local files for your agent.",
10
+ "ImageTool": "πŸ–ΌοΈ Handle image input/output β€” caption, generate, or analyze.",
11
+ "FinalAnswerTool": "βœ… Marks the final agent response to stop processing.",
12
+ "UserInputTool": "πŸ‘€ Allows dynamic user prompts mid-task.",
13
+ "LangChainTool": "πŸ”— Wrap LangChain tools like SerpAPI, SQL Toolkit, Wolfram Alpha.",
14
+ "HFModelDownloadsTool": "πŸ“Š Fetch most downloaded HF models for a given task.",
15
+ "ApiWebSearchTool": "πŸ›°οΈ Search APIs like Bing or Google for fresh results.",
16
+ "Tool.from_hub()": "πŸ“¦ Load external tools from Hugging Face Hub repos.",
17
+ "Tool.from_space()": "πŸ§ͺ Import Gradio Spaces as tools.",
18
+ "Tool.from_mcp()": "🧠 Load tools dynamically from registered MCP servers.",
19
+ "Tool.from_langchain()": "🧬 Convert LangChain tool definitions into SmolAgent-compatible formats.",
20
+ "Tool.from_gradio()": "πŸŽ›οΈ Wrap Gradio interfaces as callable tools.",
21
+ "ToolCollection.from_mcp()": "🌐 Fetch and register toolsets from Glama, Smithery, and other MCP providers."
22
+ }
23
+
24
+
25
+ βœ… 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.