AI / CrewAI Interview Questions
Explain the internal working of the Hierarchical process's manager agent?
- When a task enters the crew, the manager agent evaluates the roles and availability of the crew's other agents rather than relying on a task having a pre-named agent
- The manager assigns the task to whichever agent seems best suited, based on that agent's declared role
- If the assigned agent determines it needs help, and its allow_delegation setting permits it, it can trigger a sub-task, which the manager also has to route to an appropriate specialist
- Once an agent produces a result, the manager validates it against the task's expected output before considering the task complete
- If validation fails, the manager can re-delegate or request revised work, rather than passing a poor result downstream unchecked
This validation-and-coordination role is exactly what the Sequential process lacks, and it's why Hierarchical trades some predictability for a built-in layer of quality control across the whole crew.
More Related questions...