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
Pavan Kumar 3 months ago
parent d3312540ae
commit e313e5bba4

@ -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

Loading…
Cancel
Save