> ## 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.

# Start For Each • AI Agent SDK

> start_for_each: Run this team once per input dict, interpolating ``key`` placeholders.

# start\_for\_each

Method

> This is a method of the [**AgentTeam**](https://praison.ai/docs/sdk/reference/praisonaiagents/classes/AgentTeam.md) class in the [**agents**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/agents.md) module.

Run this team once per input dict, interpolating `&#123;&#123;key&#125;&#125;` placeholders.

Each input dict is applied as per-run `variables` (existing
`&#123;&#123;placeholder&#125;&#125;` interpolation in task descriptions), so the original
task templates are never permanently mutated.

## Signature

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

## Parameters

**inputs** `Any` *required*

List of dicts; each runs the team once with those variables.

### Returns

**Returns** `Any`

dict with `batch_id`, `items` (per-item `index`/`input`/
`success`/`output`/`error`), `outputs`, `succeeded`,
`failed`, `total` and `token_usage_total`.

## Uses

* `ValueError`
* `start_for_each`
* `uuid.uuid4`
* `start`

## Used By

* [`AgentTeam.start_for_each`](../functions/AgentTeam-start_for_each)

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/agents/agents.py#L3004)
>
> `praisonaiagents/agents/agents.py` at line 3004


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.