> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Add Task • AI Agent SDK

> add_task: API reference for AgentTeam.add_task

# add\_task

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**AgentTeam**](../classes/AgentTeam) class in the [**agents**](../modules/agents) module.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def add_task(task: Any) -> Any
```

## Parameters

<ParamField query="task" type="Any" required={true}>
  No description available.
</ParamField>

### Returns

<ResponseField name="Returns" type="Any">
  The result of the operation.
</ResponseField>

## Used By

* [`ImageAgent.generate_image`](../functions/ImageAgent-generate_image)
* [`VideoAgent.generate`](../functions/VideoAgent-generate)
* [`VideoAgent.wait_for_completion`](../functions/VideoAgent-wait_for_completion)
* [`AgentTeam.run_all_tasks`](../functions/AgentTeam-run_all_tasks)

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/agents/agents.py#L552">
  `praisonaiagents/agents/agents.py` at line 552
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Tasks Concept" icon="list-check" href="/docs/concepts/tasks" />

  <Card title="Task Configuration" icon="gear" href="/docs/configuration/task-config" />

  <Card title="Task Validation" icon="check-double" href="/docs/features/task-validation-feedback" />
</CardGroup>
