kuzumab commited on
Commit
57a97f6
·
verified ·
1 Parent(s): 924d249

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -114,20 +114,20 @@ class BasicAgent:
114
  attachment_tool=AttachmentDownloadTool()
115
  image_tool=ImageCaptionTool()
116
  audio_tool=AudioToTextTool()
117
- self.tools = [attachment_tool,image_tool,audio_tool]
118
-
119
- web_agent = ToolCallingAgent(
120
- tools=[DuckDuckGoSearchTool(), VisitWebpageTool()],
121
- model=self.base_model,
122
- max_steps=10,
123
- name="web_search_agent",
124
- description="Runs web searches for you.",
125
- )
126
 
127
  self.agent = CodeAgent(
128
  tools=self.tools,
129
  model=self.think_model,
130
- managed_agents=[web_agent],
131
  additional_authorized_imports=["time", "numpy", "pandas"],
132
  max_steps=20
133
  )
 
114
  attachment_tool=AttachmentDownloadTool()
115
  image_tool=ImageCaptionTool()
116
  audio_tool=AudioToTextTool()
117
+ self.tools = [attachment_tool,image_tool,audio_tool,DuckDuckGoSearchTool(), VisitWebpageTool()]
118
+
119
+ # web_agent = ToolCallingAgent(
120
+ # tools=[DuckDuckGoSearchTool(), VisitWebpageTool()],
121
+ # model=self.base_model,
122
+ # max_steps=10,
123
+ # name="web_search_agent",
124
+ # description="Runs web searches for you.",
125
+ # )
126
 
127
  self.agent = CodeAgent(
128
  tools=self.tools,
129
  model=self.think_model,
130
+ # managed_agents=[web_agent],
131
  additional_authorized_imports=["time", "numpy", "pandas"],
132
  max_steps=20
133
  )