Assistant generated file changes:
- examples/mcp_example/mock_multi_agent.py: Update agent processing logic to handle only relevant tasks, Update results display to only show relevant responses
---
User prompt:
im facing the issue that whaen i send the agetn one speroce task it is send to tbothe agetn tand both the gets ater retuneitnthe the answers and udpate ti fix this and udpate it only it shoudl be repsonced by the rools or agetreas which is relvent to them
Replit-Commit-Author: Assistant
Replit-Commit-Session-Id: fb95cfda-0201-499a-811b-4d56364a96ec
"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'"
}
# Only process if task is relevant to this agent
ifnotself.is_relevant_task(task):
return{
"agent":self.agent.agent_name,
"task":task,
"response":None# Indicate this agent should not handle this task
}
# Check if input is stock-related (for StockAnalyst)