subinsurendrank commited on
Commit
8a10452
·
verified ·
1 Parent(s): 8c5c24b

Update app.py

Browse files

added my custom tool and updated app.py

Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -55,13 +55,13 @@ with open("prompts.yaml", 'r') as stream:
55
 
56
  agent = CodeAgent(
57
  model=model,
58
- tools=[final_answer], ## add your tools here (don't remove final answer)
59
  max_steps=6,
60
  verbosity_level=1,
61
  grammar=None,
62
  planning_interval=None,
63
- name=None,
64
- description=None,
65
  prompt_templates=prompt_templates
66
  )
67
 
 
55
 
56
  agent = CodeAgent(
57
  model=model,
58
+ tools=[final_answer, image_generation_tool, my_custom_tool, get_current_time_in_timezone],
59
  max_steps=6,
60
  verbosity_level=1,
61
  grammar=None,
62
  planning_interval=None,
63
+ name="MyFirstAgent",
64
+ description="An agent with time, image, and custom tools",
65
  prompt_templates=prompt_templates
66
  )
67