ToolExecutorStrategy
type ToolExecutorStrategy = "sequential" | "concurrent";Defined in: src/agent/agent.ts:153
Strategy for executing tool calls that the model emits in a single assistant turn.
'concurrent'(default) — runs all tool calls from a single turn in parallel. Per-tool event order (BeforeToolCallEvent→ToolStreamUpdateEvent*→AfterToolCallEvent→ToolResultEvent) is preserved, while cross-tool events may interleave.'sequential'— runs tool calls one at a time
Cancellation works identically in both modes: Agent.cancel flips
Agent.cancelSignal, which SDK-managed tool contexts expose as context.cancelSignal.
In concurrent mode, prompt batch-wide cancellation requires every in-flight tool
to honor the signal.