respondAll(
responsesById: Record<string, unknown>,
options: StreamRespondAllOptions<ConfigurableType>
): | Name | Type | Description |
|---|---|---|
responsesById* | Record<string, unknown> | |
options | StreamRespondAllOptions<ConfigurableType> |
Resume several pending interrupts at the same checkpoint in a single
command — required when a run pauses on multiple interrupts at once
(e.g. parallel tool-authorization prompts), which sequential
respond calls cannot handle. responsesById maps each pending
interruptId to its response, so different interrupts can receive
different payloads. Pass options.config / options.metadata to fold
run-level config and metadata into the resumed run, mirroring
submit().
await stream.respondAll({
[interruptA.id]: { approved: true },
[interruptB.id]: { approved: false },
});