Sequential Task Agent
The Sequential Task Agent component combines an AI agent and the task it does into a single component, for a Sequential Crew. It is equivalent to using a CrewAI Agent and a Sequential Task together, and keeps the canvas tidier when each agent only does one task.
When to use it
- Build a chain of steps where each step has its own specialist.
- Simplify an ordered team with few agents and one task per agent.
- Quickly add a new step, for example a final reviewer, to an existing chain.
Configuration
Agent fields:
| Field | What it does |
|---|---|
| Role | The agent’s role, for example “Contract reviewer”. |
| Goal | What the agent tries to achieve. |
| Backstory | The agent’s background: experience, way of working, tone. |
Task fields:
| Field | What it does |
|---|---|
| Task Description | What has to be done in this step, with all the detail needed. |
| Expected Task Output | What the result should look like. |
The text fields accept a connection, so they can come from another component.
| Connection | What to connect |
|---|---|
| Model | An AI model component, which does the agent’s thinking. |
| Tools | The tools the agent can use. You can connect several. |
| Previous Task | The previous step in the chain. Leave it empty on the first step. |
Advanced options
| Field | What it does |
|---|---|
| Memory | The agent remembers what has happened during the team’s work. Default: on. |
| Verbose | Keeps a more detailed record of what the agent does. Default: on. |
| Allow Delegation | Lets the agent hand part of its work to other agents in the team. Default: off. |
| Allow Code Execution | Lets the agent run code. Default: off. Leave it off unless you need it. |
| Async Execution | Lets the next step start without waiting for this one to finish. Default: off. Leave it off if the next step needs this result. |
| Agent kwargs | Additional agent settings as name-value pairs. Usually left empty. |
Output
Sequential Task: this step together with the previous ones in the chain. Connect it to Previous Task of the next step, to the Task input of a Sequential Task or, if it is the last one, to the Tasks input of a Sequential Crew.
Example
A law firm reviews rental contracts. It chains two steps: the first, with Role “Legal analyst”, has the task of flagging the risky clauses in the contract it receives; the second, with Role “Writer”, has the task of writing a summary for the client, with its Previous Task connected to the first. The second step is connected to the Sequential Crew.