From 8b01167108fbaab8a1a3eb2f6bbd81b627df7ccb Mon Sep 17 00:00:00 2001 From: Pavan Kumar <66913595+ascender1729@users.noreply.github.com> Date: Fri, 18 Apr 2025 16:17:05 +0000 Subject: [PATCH] feat(agent): include agent names in capability responses for clarity --- examples/mcp_example/mock_multi_agent.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/examples/mcp_example/mock_multi_agent.py b/examples/mcp_example/mock_multi_agent.py index 5fda78be..40fbbf7b 100644 --- a/examples/mcp_example/mock_multi_agent.py +++ b/examples/mcp_example/mock_multi_agent.py @@ -49,7 +49,11 @@ class MathAgent: "task": task, "response": - "I can perform basic mathematical operations: addition (use '+' or 'plus'), multiplication (use '*' or 'times'), and division (use '/' or 'divide by'). For example: '5 plus 3' or '10 divide by 2'" + "[Calculator Agent] I can perform basic mathematical operations:\n" + + "- Addition (use '+' or 'plus')\n" + + "- Multiplication (use '*' or 'times')\n" + + "- Division (use '/' or 'divide by')\n" + + "Example: '5 plus 3' or '10 divide by 2'" } else: # StockAnalyst return { @@ -58,7 +62,10 @@ class MathAgent: "task": task, "response": - "I can analyze stock data using moving averages and calculate percentage changes. For example: 'calculate moving average of [10,20,30,40,50] over 3 periods'" + "[Stock Analyst Agent] I can perform stock market analysis:\n" + + "- Calculate moving averages\n" + + "- Get current stock prices\n" + + "Example: 'calculate moving average of [10,20,30,40,50] over 3 periods' or 'get price of AAPL'" } # Only process if task is relevant to this agent