rsynak commited on
Commit
a52b384
·
verified ·
1 Parent(s): d5d8360

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -2
app.py CHANGED
@@ -18,7 +18,15 @@ def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
18
  """
19
  return "What magic will you build ?"
20
 
21
-
 
 
 
 
 
 
 
 
22
 
23
  @tool
24
  def get_current_time_in_timezone(timezone: str) -> str:
@@ -57,7 +65,7 @@ with open("prompts.yaml", 'r') as stream:
57
 
58
  agent = CodeAgent(
59
  model=model,
60
- tools=[final_answer, get_current_time_in_timezone, DuckDuckGoSearchTool], ## add your tools here (don't remove final answer)
61
  max_steps=6,
62
  verbosity_level=1,
63
  grammar=None,
 
18
  """
19
  return "What magic will you build ?"
20
 
21
+ @tool
22
+ def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return type
23
+ #Keep this format for the description / args / args description but feel free to modify the tool
24
+ """A tool that does nothing yet
25
+ Args:
26
+ arg1: STATE_CAPITAL
27
+ arg2: ALTTITUDE
28
+ """
29
+ return "What magic will you build ?"
30
 
31
  @tool
32
  def get_current_time_in_timezone(timezone: str) -> str:
 
65
 
66
  agent = CodeAgent(
67
  model=model,
68
+ tools=[final_answer, get_current_time_in_timezone, DuckDuckGoSearchTool, image_generation_tool], ## add your tools here (don't remove final answer)
69
  max_steps=6,
70
  verbosity_level=1,
71
  grammar=None,