Challenge - 5 Problems
Supervisor Agent Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate1:30remaining
Role of the Supervisor Agent in the Supervisor Agent Pattern
In the supervisor agent pattern, what is the primary role of the supervisor agent?
Attempts:
2 left
💡 Hint
Think about who manages and oversees other agents in a team.
✗ Incorrect
The supervisor agent oversees and coordinates subordinate agents, ensuring tasks are completed correctly and efficiently.
❓ Model Choice
intermediate2:00remaining
Choosing the Best Model for a Supervisor Agent
Which type of model is most suitable for implementing a supervisor agent that needs to evaluate multiple subordinate agents' outputs and decide the next steps?
Attempts:
2 left
💡 Hint
Consider the need for clear decision rules rather than pattern recognition.
✗ Incorrect
Supervisor agents often use rule-based systems to evaluate outputs and decide actions based on conditions, rather than complex pattern recognition models.
❓ Predict Output
advanced2:30remaining
Output of Supervisor Agent Coordination Code
What is the output of the following Python code simulating a supervisor agent coordinating two subordinate agents?
Agentic AI
class SubordinateAgent: def __init__(self, name): self.name = name def perform_task(self): return f"Task done by {self.name}" class SupervisorAgent: def __init__(self, agents): self.agents = agents def coordinate(self): results = [] for agent in self.agents: results.append(agent.perform_task()) return results agents = [SubordinateAgent('Agent1'), SubordinateAgent('Agent2')] supervisor = SupervisorAgent(agents) output = supervisor.coordinate() print(output)
Attempts:
2 left
💡 Hint
Look at the order of agents in the list and how results are collected.
✗ Incorrect
The supervisor calls perform_task on each agent in order, collecting their results in a list.
❓ Hyperparameter
advanced2:00remaining
Key Hyperparameter for Supervisor Agent's Decision Threshold
In a supervisor agent that decides to reassign tasks based on confidence scores from subordinate agents, which hyperparameter is critical to tune?
Attempts:
2 left
💡 Hint
Focus on the parameter that controls when the supervisor decides to act.
✗ Incorrect
The confidence threshold determines when the supervisor decides a subordinate agent's output is unreliable and needs reassignment.
🔧 Debug
expert3:00remaining
Debugging Supervisor Agent Coordination Failure
Given the following code snippet for a supervisor agent, what error will occur when running it and why?
class SupervisorAgent:
def __init__(self, agents):
self.agents = agents
def coordinate(self):
results = []
for agent in self.agents:
results.append(agent.perform_task)
return results
class SubordinateAgent:
def perform_task(self):
return "done"
agents = [SubordinateAgent(), SubordinateAgent()]
supervisor = SupervisorAgent(agents)
output = supervisor.coordinate()
print(output)
Attempts:
2 left
💡 Hint
Check if the method is called or just referenced.
✗ Incorrect
The code appends the method itself without calling it, so the output is a list of method references, not their return values.