AI / CrewAI Interview Questions
What is a Task in CrewAI?
A Task in CrewAI is a specific assignment completed by an agent, encapsulating everything needed for execution, a description, the responsible agent, any required tools, and the expected output.
- Can be directly assigned to a named agent, or left for the Hierarchical process's manager to assign dynamically
- Supports collaboration, since a task can require multiple agents working together, coordinated by the Crew's process
- Produces a result encapsulated in a TaskOutput object once complete
Because a task's description and expected output are explicit, CrewAI can validate whether an agent's actual output resembles what was asked for, rather than just trusting whatever text comes back.
More Related questions...