Kackle commited on
Commit
f95d95e
·
verified ·
1 Parent(s): e5f9f20
Files changed (1) hide show
  1. app.py +4 -16
app.py CHANGED
@@ -140,8 +140,7 @@ class SlpMultiAgent:
140
  max_steps=3, # Allow more reasoning steps
141
  name="ResearchAgent",
142
  verbosity_level=0,
143
- description="Quick factual research and knowledge lookup.",
144
- system_prompt=system_prompt
145
  )
146
 
147
  solver_agent = CodeAgent(
@@ -151,8 +150,7 @@ class SlpMultiAgent:
151
  max_steps=2, # Reduced steps
152
  name="SolverAgent",
153
  verbosity_level=0,
154
- description="Problem solving, calculations, and logical reasoning.",
155
- system_prompt=system_prompt
156
  )
157
 
158
  manager_agent = CodeAgent(
@@ -160,22 +158,12 @@ class SlpMultiAgent:
160
  tools=[KnowledgeBaseTool(), WikipediaSearchTool(), DuckDuckGoSearchTool()], # Pass all retrieval tools
161
  managed_agents=[research_agent, solver_agent], # Only 2 agents
162
  name="ManagerAgent",
163
- description=(
164
- "Efficient manager for quick problem solving. "
165
- "Uses Wikipedia and DuckDuckGo for factual questions. "
166
- "IMPORTANT: Only output a single code block in this format: "
167
- "<code>\\nfinal_answer(\"your direct, simple answer\")\\n</code> "
168
- "Do not use variables or function calls as the answer. "
169
- "Do not include any other code, comments, or explanations. "
170
- "For example, output: <code>\\nfinal_answer(\"5\")\\n</code> "
171
- "NOT: <code>\\nfinal_answer(total_sales_usd)\\n</code>"
172
- ),
173
  additional_authorized_imports=["re", "math"],
174
  planning_interval=1, # Faster planning
175
  verbosity_level=0, # Reduce verbosity
176
  max_steps=3, # Further reduced steps to avoid timeouts
177
- final_answer_checks=[check_reasoning],
178
- system_prompt=system_prompt
179
  )
180
 
181
  # Create a task for the agent run with retry mechanism for rate limits
 
140
  max_steps=3, # Allow more reasoning steps
141
  name="ResearchAgent",
142
  verbosity_level=0,
143
+ description=system_prompt
 
144
  )
145
 
146
  solver_agent = CodeAgent(
 
150
  max_steps=2, # Reduced steps
151
  name="SolverAgent",
152
  verbosity_level=0,
153
+ description=system_prompt
 
154
  )
155
 
156
  manager_agent = CodeAgent(
 
158
  tools=[KnowledgeBaseTool(), WikipediaSearchTool(), DuckDuckGoSearchTool()], # Pass all retrieval tools
159
  managed_agents=[research_agent, solver_agent], # Only 2 agents
160
  name="ManagerAgent",
161
+ description=system_prompt,
 
 
 
 
 
 
 
 
 
162
  additional_authorized_imports=["re", "math"],
163
  planning_interval=1, # Faster planning
164
  verbosity_level=0, # Reduce verbosity
165
  max_steps=3, # Further reduced steps to avoid timeouts
166
+ final_answer_checks=[check_reasoning]
 
167
  )
168
 
169
  # Create a task for the agent run with retry mechanism for rate limits