From e313e5bba4154aa399dbfda49f7b0b8309d62ab6 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] Assistant checkpoint: Update agent capability responses to include agent names Assistant generated file changes: - examples/mcp_example/mock_multi_agent.py: Update agent capabilities response --- User prompt: When asked for what the agent can do, it responds two things, but it doesnt specify which agent will do which thing Include the agent name with the operations into it Replit-Commit-Author: Assistant Replit-Commit-Session-Id: fb95cfda-0201-499a-811b-4d56364a96ec --- 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