Skip to content

Function: createEscalateCapabilityBuilder() ​

ts
function createEscalateCapabilityBuilder<TPayload>(interrupt): EscalateCapabilityBuilder<TPayload, unknown>;

Defined in: builders/create-escalate-capability-builder.ts:19

Creates a fluent EscalateCapabilityBuilder for cap.escalate(interrupt, $esc => ...).

Extracts the target InterruptNode and requires both .to(human) and .response(schema) to be configured before .toAST() compilation.

Type Parameters ​

Type ParameterDefault typeDescription
TPayloadunknownValidated interrupt payload type.

Parameters ​

ParameterTypeDescription
interruptMaybeBuilder<InterruptNode<TPayload>>Interrupt definition raised by the escalation tool.

Returns ​

EscalateCapabilityBuilder<TPayload, unknown>

Frozen EscalateCapabilityBuilder instance.

Released under the MIT License.