Skip to main content

start_for_each

Method
This is a method of the AgentTeam class in the agents module.
Run this team once per input dict, interpolating {{key}} placeholders. Each input dict is applied as per-run variables (existing {{placeholder}} interpolation in task descriptions), so the original task templates are never permanently mutated.

Signature

Parameters

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

Returns

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

Uses

  • ValueError
  • uuid.uuid4
  • start

Source

View on GitHub

praisonaiagents/agents/agents.py at line 2086