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

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

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

<ParamField query="inputs" type="Any" required={true}>
  List of dicts; each runs the team once with those variables.
</ParamField>

### Returns

<ResponseField name="Returns" type="Any">
  dict with `batch_id`, `items` (per-item `index`/`input`/
  `success`/`output`/`error`), `outputs`, `succeeded`,
  `failed`, `total` and `token_usage_total`.
</ResponseField>

## Uses

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

## Source

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