Skip to content

Interface: DrainToolBatchOutcome<THandle> ​

Defined in: runtime/agent/drain-tool-batch-outcome.ts:12

Outcome returned by drainPendingToolBatch() after processing PendingToolBatch.remainingCalls.

Reports whether the batch completed normally ('completed'), suspended on prerequisites ('suspended'), or exited via an unhandled/replacement interrupt ('interrupted').

Type Parameters ​

Type ParameterDefault typeDescription
THandleunknownRuntime handle type of the active isolation scope.

Properties ​

PropertyModifierTypeDescriptionDefined in
batchreadonlyPendingToolBatchSettled PendingToolBatch record.runtime/agent/drain-tool-batch-outcome.ts:16
interruptResolution?readonlyInterruptEdgeResolution<THandle>Interrupt resolution metadata when status === 'interrupted'.runtime/agent/drain-tool-batch-outcome.ts:18
statusreadonly"completed" | "suspended" | "interrupted"Terminal status of the tool batch drain.runtime/agent/drain-tool-batch-outcome.ts:14

Released under the MIT License.