NemesisAlm commited on
Commit
f7dce3d
·
verified ·
1 Parent(s): 1d3879f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -11
app.py CHANGED
@@ -18,17 +18,7 @@ def my_custom_tool(city:str, temperature:int)-> str: #it's import to specify the
18
  """
19
  return f"The temperature in {city} is {temperature}"
20
 
21
-
22
- @tool
23
- def search_on_the_internet(query: str) -> str:
24
- """
25
- A tool that search information on the internet and returns most interesting results
26
- Args:
27
- query: the query to put in DuckDuckGo
28
- """
29
- return 'X'
30
 
31
-
32
  @tool
33
  def get_current_time_in_timezone(timezone: str) -> str:
34
  """A tool that fetches the current local time in a specified timezone.
@@ -66,7 +56,7 @@ with open("prompts.yaml", 'r') as stream:
66
 
67
  agent = CodeAgent(
68
  model=model,
69
- tools=[final_answer], ## add your tools here (don't remove final answer)
70
  max_steps=6,
71
  verbosity_level=1,
72
  grammar=None,
 
18
  """
19
  return f"The temperature in {city} is {temperature}"
20
 
 
 
 
 
 
 
 
 
 
21
 
 
22
  @tool
23
  def get_current_time_in_timezone(timezone: str) -> str:
24
  """A tool that fetches the current local time in a specified timezone.
 
56
 
57
  agent = CodeAgent(
58
  model=model,
59
+ tools=[my_custom_tool, get_current_time_in_timezone, DuckDuckGoSearchTool(), final_answer], ## add your tools here (don't remove final answer)
60
  max_steps=6,
61
  verbosity_level=1,
62
  grammar=None,