Challenge - 5 Problems
Agent Roles Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate2:00remaining
Understanding Agent Specialization Roles
Which of the following best describes the role of a specialized agent in a multi-agent system?
Attempts:
2 left
💡 Hint
Think about how experts focus on one area to do their best work.
✗ Incorrect
Specialized agents focus on specific tasks or domains to provide expert-level performance, unlike general agents that handle many tasks.
❓ Model Choice
intermediate2:00remaining
Choosing Agent Roles for a Collaborative Task
You have a team of agents to build a smart home system. Which agent role specialization would best fit the task of controlling lighting based on user presence?
Attempts:
2 left
💡 Hint
Think about which agent focuses on managing the home environment.
✗ Incorrect
The environment control agent specializes in managing lighting and temperature, making it ideal for controlling lighting based on presence.
❓ Metrics
advanced2:00remaining
Evaluating Specialized Agent Performance
You have two specialized agents: Agent A for image recognition and Agent B for speech recognition. After testing, Agent A has 95% accuracy and Agent B has 85% accuracy. Which metric best explains why Agent A is considered more specialized?
Attempts:
2 left
💡 Hint
Specialization often relates to how well an agent performs its specific task.
✗ Incorrect
Accuracy measures how well an agent performs its task; higher accuracy means better specialization in that task.
🔧 Debug
advanced2:00remaining
Debugging Agent Role Assignment Code
What error will this Python code raise when assigning roles to agents?
```python
agents = ['agent1', 'agent2', 'agent3']
roles = ['navigator', 'communicator']
assignment = {agent: roles[i] for i, agent in enumerate(agents)}
```
Attempts:
2 left
💡 Hint
Check if the roles list has enough elements for all agents.
✗ Incorrect
The code tries to access roles[i] for i=2, but roles has only 2 elements (indices 0 and 1), causing IndexError.
❓ Predict Output
expert2:00remaining
Output of Specialized Agent Coordination Code
What is the output of this Python code simulating specialized agents collaborating?
```python
class Agent:
def __init__(self, name, role):
self.name = name
self.role = role
def act(self):
return f"{self.name} performs {self.role} task"
agents = [Agent('A1', 'data processing'), Agent('A2', 'decision making'), Agent('A3', 'data processing')]
results = [agent.act() for agent in agents if agent.role == 'data processing']
print(results)
```
Attempts:
2 left
💡 Hint
Look at the filter condition in the list comprehension.
✗ Incorrect
The list comprehension includes only agents with role 'data processing', so A1 and A3 are included.