Manavraj commited on
Commit
3138651
·
verified ·
1 Parent(s): 5ba7103

added all tools in the list

Browse files

now the agent should actually see the tools it has available to use.

Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,6 +1,7 @@
1
  from smolagents import CodeAgent,DuckDuckGoSearchTool, HfApiModel,load_tool,tool
2
  import datetime
3
  import os
 
4
  import qrcode
5
  import base64
6
  import requests
@@ -79,7 +80,7 @@ with open("prompts.yaml", 'r') as stream:
79
 
80
  agent = CodeAgent(
81
  model=model,
82
- tools=[final_answer], ## add your tools here (don't remove final answer)
83
  max_steps=6,
84
  verbosity_level=1,
85
  grammar=None,
 
1
  from smolagents import CodeAgent,DuckDuckGoSearchTool, HfApiModel,load_tool,tool
2
  import datetime
3
  import os
4
+ import io
5
  import qrcode
6
  import base64
7
  import requests
 
80
 
81
  agent = CodeAgent(
82
  model=model,
83
+ tools=[final_answer, my_custom_tool, get_current_time_in_timezone, image_generation_tool], ## add your tools here (don't remove final answer)
84
  max_steps=6,
85
  verbosity_level=1,
86
  grammar=None,