Process
Sequential
Process chooses the order. Sequential runs tasks one after another.
Set process="sequential" on the team when the second task needs the first.
Example
from praisonai import Agent, Task, AgentTeam
researcher = Agent(
name="Researcher",
instructions="You research AI.",
)
task = Task(
description="Name one benefit of a sequential process",
expected_output="One sentence",
agent=researcher,
)
team = AgentTeam(
agents=[researcher],
tasks=[task],
process="sequential",
)
print(team.start())Example explained
- process — sequential runs the tasks in order.
Reference: documentation