Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -19,10 +19,10 @@ def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
|
|
19 |
return "What magic will you build ?"
|
20 |
|
21 |
@tool
|
22 |
-
def
|
23 |
-
"""A tool that fetches the
|
24 |
Args:
|
25 |
-
arg1: A string that provides the details of
|
26 |
"""
|
27 |
# Initialize DuckDuckGo search tool
|
28 |
duckduckgo_tool = DuckDuckGoSearchTool()
|
@@ -76,7 +76,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
76 |
|
77 |
agent = CodeAgent(
|
78 |
model=model,
|
79 |
-
tools=[final_answer,
|
80 |
max_steps=6,
|
81 |
verbosity_level=1,
|
82 |
grammar=None,
|
|
|
19 |
return "What magic will you build ?"
|
20 |
|
21 |
@tool
|
22 |
+
def my_best_deal_tool(arg1: str) -> str: # It's important to specify the return type
|
23 |
+
"""A tool that fetches the best latest deal available in netherlands for the specific products
|
24 |
Args:
|
25 |
+
arg1: A string that provides the details of the product to be searched.
|
26 |
"""
|
27 |
# Initialize DuckDuckGo search tool
|
28 |
duckduckgo_tool = DuckDuckGoSearchTool()
|
|
|
76 |
|
77 |
agent = CodeAgent(
|
78 |
model=model,
|
79 |
+
tools=[final_answer,my_best_deal_tool], ## add your tools here (don't remove final answer)
|
80 |
max_steps=6,
|
81 |
verbosity_level=1,
|
82 |
grammar=None,
|