fix: correct MathAgent initialization by removing extra argument

- Resolved TypeError due to passing 4 arguments to a 3-parameter constructor
- Updated instantiation logic in `mock_multi_agent.py` to restore runtime functionality
pull/819/head
Pavan Kumar 2 days ago committed by ascender1729
parent 0f787debaa
commit 50a11f3fd6

@ -44,11 +44,7 @@ class MultiAgentMathSystem:
math_url = "http://0.0.0.0:8000" math_url = "http://0.0.0.0:8000"
stock_url = "http://0.0.0.0:8001" stock_url = "http://0.0.0.0:8001"
self.calculator = MathAgent("Calculator", math_url) self.calculator = MathAgent("Calculator", math_url)
self.stock_analyst = MathAgent( self.stock_analyst = MathAgent("StockAnalyst", stock_url)
"StockAnalyst",
stock_url,
"Stock market analysis agent specializing in financial calculations and market analysis"
)
async def process_task(self, task: str): async def process_task(self, task: str):
# Process with both agents # Process with both agents

Loading…
Cancel
Save