Nitien commited on
Commit
7f14657
·
verified ·
1 Parent(s): cffe125

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -22,7 +22,7 @@ def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
22
  def get_weather(city:str)-> str: #it's import to specify the return type
23
  """ A tool to Fetch weather of a given city
24
  Args:
25
- city : name of the city (string)
26
  returns: weather information of the City as string.
27
  """
28
  if not city or city.strip() == "":
@@ -72,7 +72,7 @@ with open("prompts.yaml", 'r') as stream:
72
 
73
  agent = CodeAgent(
74
  model=model,
75
- tools=[final_answer], ## add your tools here (don't remove final answer)
76
  max_steps=6,
77
  verbosity_level=1,
78
  grammar=None,
 
22
  def get_weather(city:str)-> str: #it's import to specify the return type
23
  """ A tool to Fetch weather of a given city
24
  Args:
25
+ city: name of the city (string)
26
  returns: weather information of the City as string.
27
  """
28
  if not city or city.strip() == "":
 
72
 
73
  agent = CodeAgent(
74
  model=model,
75
+ tools=[get_weather,final_answer], ## add your tools here (don't remove final answer)
76
  max_steps=6,
77
  verbosity_level=1,
78
  grammar=None,