Aakash010 commited on
Commit
507fc2d
·
verified ·
1 Parent(s): 535157e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -8
app.py CHANGED
@@ -38,13 +38,6 @@ def get_current_time_in_timezone(timezone: str) -> str:
38
 
39
 
40
  web_search_tool = DuckDuckGoSearchTool(max_results=5)
41
- @tool
42
- def results(arg1:str)-> str:
43
- """A tool that fetches Information from the Internet.
44
- Args:
45
- arg1: A string of text to be searcehd on the internet.
46
- """
47
- return web_search_tool(arg1)
48
 
49
 
50
  final_answer = FinalAnswerTool()
@@ -68,7 +61,7 @@ with open("prompts.yaml", 'r') as stream:
68
 
69
  agent = CodeAgent(
70
  model=model,
71
- tools=[final_answer,my_custom_tool,get_current_time_in_timezone,results,DuckDuckGoSearchTool], ## add your tools here (don't remove final answer)
72
  max_steps=6,
73
  verbosity_level=1,
74
  grammar=None,
 
38
 
39
 
40
  web_search_tool = DuckDuckGoSearchTool(max_results=5)
 
 
 
 
 
 
 
41
 
42
 
43
  final_answer = FinalAnswerTool()
 
61
 
62
  agent = CodeAgent(
63
  model=model,
64
+ tools=[final_answer,my_custom_tool,get_current_time_in_timezone,DuckDuckGoSearchTool], ## add your tools here (don't remove final answer)
65
  max_steps=6,
66
  verbosity_level=1,
67
  grammar=None,