Skip to content

Interface: EscalateCapabilityNode<TPayload, TResponse> ​

Defined in: ast/escalate-capability-node.ts:31

Passive AST node representing a voluntary exogenous human escalation capability ($cap.escalate(interrupt, $esc => ...)).

Exposes a synthetic capability tool named after interrupt.id that suspends the calling agent, pages the bidirectional human channel, and returns the validated TResponse in-band.

Type Parameters ​

Type ParameterDefault typeDescription
TPayloadunknownEscalation brief payload type validated by interrupt.schema.
TResponseunknownHuman decision response type validated by responseSchema.

Properties ​

PropertyModifierTypeDescriptionDefined in
elevateLeaseWhen?readonlyEscalateLeaseElevationConfig<TResponse>Optional lease elevation rule applied when the human authority approves a protected mutation.ast/escalate-capability-node.ts:41
humanreadonlyHumanNode<"bidirectional">Bidirectional human authority paged when the escalation tool is invoked.ast/escalate-capability-node.ts:37
interruptreadonlyInterruptNode<TPayload>Interrupt definition whose schema validates the agent's escalation brief tool call.ast/escalate-capability-node.ts:35
responseSchemareadonlyZodType<TResponse>Zod schema validating the human authority's decision response.ast/escalate-capability-node.ts:39
typereadonly"harness:escalate-capability"Discriminant identifying an exogenous escalation capability AST node.ast/escalate-capability-node.ts:33

Released under the MIT License.