Spaces:
Sleeping
Sleeping
Update agent.py
Browse files
agent.py
CHANGED
@@ -53,13 +53,13 @@ def wiki_search(query: str) -> str:
|
|
53 |
|
54 |
# Tool inventory with proper categorization
|
55 |
tools = [
|
56 |
-
Tool(name="
|
57 |
-
Tool(name="
|
58 |
-
Tool(name="
|
59 |
-
Tool(name="
|
60 |
-
Tool(name="
|
61 |
Tool(
|
62 |
-
name="
|
63 |
func=DuckDuckGoSearchRun().run,
|
64 |
description="Searches the web using DuckDuckGo"
|
65 |
)
|
|
|
53 |
|
54 |
# Tool inventory with proper categorization
|
55 |
tools = [
|
56 |
+
Tool(name="Math_Multiply", func=multiply, description="Multiplies two integers"),
|
57 |
+
Tool(name="Math_Add", func=add, description="Adds two integers"),
|
58 |
+
Tool(name="Math_Subtract", func=subtract, description="Subtracts two integers"),
|
59 |
+
Tool(name="Math_Divide", func=divide, description="Divides two numbers"),
|
60 |
+
Tool(name="Search_Wikipedia", func=wiki_search, description="Searches Wikipedia"),
|
61 |
Tool(
|
62 |
+
name="Search_Web",
|
63 |
func=DuckDuckGoSearchRun().run,
|
64 |
description="Searches the web using DuckDuckGo"
|
65 |
)
|