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 Parameter | Default type | Description |
|---|---|---|
TPayload | unknown | Validated interrupt payload type. |
Parameters
| Parameter | Type | Description |
|---|---|---|
interrupt | MaybeBuilder<InterruptNode<TPayload>> | Interrupt definition raised by the escalation tool. |
Returns
EscalateCapabilityBuilder<TPayload, unknown>
Frozen EscalateCapabilityBuilder instance.