Optional maxMaximum total tokens (prompt + completion) across all agents and steps.
Optional maxMaximum USD cost cap across the entire run.
Optional maxWall-clock time budget for the run in milliseconds.
Optional maxMaximum number of agent invocations (across all agents).
Optional maxMaximum steps per individual agent invocation.
Optional maxMaximum number of emergent agents the orchestrator may synthesise.
Optional onAction taken when any resource limit is breached.
"stop" — gracefully stop and return partial results."warn" — emit a limitReached event and continue."error" — throw an error and halt immediately.
Resource limits applied to the entire agency run. The
onLimitReachedpolicy determines whether a breach is fatal.