vlapparov commited on
Commit
9f49808
·
verified ·
1 Parent(s): 7d93422

Update cool_agent.py

Browse files
Files changed (1) hide show
  1. cool_agent.py +5 -4
cool_agent.py CHANGED
@@ -85,6 +85,7 @@ def create_agent(model_id="gpt-4o-mini"):
85
 
86
  text_limit = 100000
87
  browser = SimpleTextBrowser(**BROWSER_CONFIG)
 
88
  WEB_TOOLS = [
89
  LinkupSearchTool(),
90
  # VisitTool(browser),
@@ -93,12 +94,12 @@ def create_agent(model_id="gpt-4o-mini"):
93
  # FinderTool(browser),
94
  # FindNextTool(browser),
95
  # ArchiveSearchTool(browser),
96
- TextInspectorTool(model, text_limit),
97
  ]
98
  search_agent = ToolCallingAgent(
99
  model=model,
100
  tools=WEB_TOOLS,
101
- max_steps=2,#20,
102
  verbosity_level=1,#2,
103
  planning_interval=4,
104
  name="search_agent",
@@ -128,11 +129,11 @@ def create_agent(model_id="gpt-4o-mini"):
128
  manager_agent = CodeAgent(
129
  model=model,
130
  tools=[visualizer, TextInspectorTool(model, text_limit)],
131
- max_steps=2, #12,
132
  verbosity_level=1, #2,
133
  additional_authorized_imports=AUTHORIZED_IMPORTS,
134
  planning_interval=4,
135
  managed_agents=[search_agent],
136
  )
137
 
138
- return manager_agent
 
85
 
86
  text_limit = 100000
87
  browser = SimpleTextBrowser(**BROWSER_CONFIG)
88
+ text_inspection_tool = TextInspectorTool(model, text_limit)
89
  WEB_TOOLS = [
90
  LinkupSearchTool(),
91
  # VisitTool(browser),
 
94
  # FinderTool(browser),
95
  # FindNextTool(browser),
96
  # ArchiveSearchTool(browser),
97
+ text_inspection_tool,
98
  ]
99
  search_agent = ToolCallingAgent(
100
  model=model,
101
  tools=WEB_TOOLS,
102
+ max_steps=5,#20,
103
  verbosity_level=1,#2,
104
  planning_interval=4,
105
  name="search_agent",
 
129
  manager_agent = CodeAgent(
130
  model=model,
131
  tools=[visualizer, TextInspectorTool(model, text_limit)],
132
+ max_steps=5, #12,
133
  verbosity_level=1, #2,
134
  additional_authorized_imports=AUTHORIZED_IMPORTS,
135
  planning_interval=4,
136
  managed_agents=[search_agent],
137
  )
138
 
139
+ return {"agent": manager_agent, "text_inspection_tool": text_inspection_tool, "visualizer": visualizer}