schatt commited on
Commit
5e67b1f
·
verified ·
1 Parent(s): e669587

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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 my_wiki_tool(arg1: str) -> str: # It's important to specify the return type
23
- """A tool that fetches the relevant information for Wikipedia only
24
  Args:
25
- arg1: A string that provides the details of what needs to be searched on Wikipedia.
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,my_wiki_tool], ## add your tools here (don't remove 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,