Skip to main content
AgentTeam only accepts tasks=None (auto-generate one per agent) or a list / tuple of Task instances — anything else raises a clear TypeError at construct time.

Quick Start

1

Let the team auto-generate tasks

tasks=None generates one task per agent — the shortest working run.
2

Pass explicit Task instances

Use a list of Task instances when you need per-task control.

Common Mistake

tasks= is not a prompt string — passing one raises a TypeError.
Fix it by passing the prompt to start(), or wrapping it in a Task.

Accepted and Rejected Inputs

Every tasks= value resolves to one of these outcomes.

Error Reference

Grep these exact messages when you hit a failure.

Best Practices

Pass the prompt to start() and let the team auto-generate one task per agent — often all you need.
Task(description=..., expected_output=..., agent=...) gives you templating with {{placeholder}}, custom expected_output, and a specific agent=.
tasks=(t1, t2) is accepted — the sequence is coerced to a list internally, useful when the task list is static.
tasks=[] has always raised ValueError — that check pre-dates the strict type validation.

AgentTeam

The team class and its full parameter list.

AgentTeam Params

Which params apply at the team level.

Batch Runs

Run the same team once per input.

Tasks

Task configuration and templating.
Validation added in PraisonAI PR #5738 (fixes #5736).