From 50a11f3fd6fb802a45af3dd4c36600825e70acf9 Mon Sep 17 00:00:00 2001 From: Pavan Kumar <66913595+ascender1729@users.noreply.github.com> Date: Thu, 17 Apr 2025 18:13:21 +0000 Subject: [PATCH] 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 --- examples/mcp_example/mock_multi_agent.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/examples/mcp_example/mock_multi_agent.py b/examples/mcp_example/mock_multi_agent.py index 45e5cf62..84576f03 100644 --- a/examples/mcp_example/mock_multi_agent.py +++ b/examples/mcp_example/mock_multi_agent.py @@ -44,11 +44,7 @@ class MultiAgentMathSystem: math_url = "http://0.0.0.0:8000" stock_url = "http://0.0.0.0:8001" self.calculator = MathAgent("Calculator", math_url) - self.stock_analyst = MathAgent( - "StockAnalyst", - stock_url, - "Stock market analysis agent specializing in financial calculations and market analysis" - ) + self.stock_analyst = MathAgent("StockAnalyst", stock_url) async def process_task(self, task: str): # Process with both agents