loktar commited on
Commit
400557a
·
verified ·
1 Parent(s): 075df6b

Added tool to tools

Browse files

Renamed function added tool to available tools.

Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -18,7 +18,7 @@ async def getweather(city: str) -> int:
18
 
19
  # Below is an example of a tool that does nothing. Amaze us with your creativity !
20
  @tool
21
- def get_current_temperature_in_city_state(arg1: str)-> str: #it's import to specify the return type
22
  #Keep this format for the description / args / args description but feel free to modify the tool
23
  """A tool that fetches the current temperature in Fahrenheit in a specified city
24
  Args:
@@ -67,7 +67,7 @@ with open("prompts.yaml", 'r') as stream:
67
 
68
  agent = CodeAgent(
69
  model=model,
70
- tools=[final_answer], ## add your tools here (don't remove final answer)
71
  max_steps=6,
72
  verbosity_level=1,
73
  grammar=None,
 
18
 
19
  # Below is an example of a tool that does nothing. Amaze us with your creativity !
20
  @tool
21
+ def get_current_temperature_in_city(arg1: str)-> str: #it's import to specify the return type
22
  #Keep this format for the description / args / args description but feel free to modify the tool
23
  """A tool that fetches the current temperature in Fahrenheit in a specified city
24
  Args:
 
67
 
68
  agent = CodeAgent(
69
  model=model,
70
+ tools=[final_answer, get_current_temperature_in_city], ## add your tools here (don't remove final answer)
71
  max_steps=6,
72
  verbosity_level=1,
73
  grammar=None,