Skip to content

Interface: ScopedHumanTargetBuilder<TResponse> ​

Defined in: builders/scoped-human-target-builder.ts:14

Fluent builder representing a scoped human target (human.withName(alias).output(schema)).

Pairs a bidirectional HumanNode with a display role alias and a Zod output schema for structured human decision gates such as lane.maxCostUsd(limit, approver).

Extends ​

Type Parameters ​

Type ParameterDefault typeDescription
TResponseunknownValidated human decision response type.

Methods ​

toAST() ​

ts
toAST(): ScopedHumanTargetNode;

Defined in: ast/ast-builder.ts:20

Compiles the current builder configuration into a deeply frozen passive AST node.

Validates required builder invariants at compilation time and returns an immutable plain-object AST representation containing zero execution methods.

Returns ​

ScopedHumanTargetNode

Deeply frozen passive AST node.

Inherited from ​

AstBuilder.toAST

Properties ​

PropertyModifierTypeDescriptionDefined in
aliasreadonlystringRole alias displayed in decision requests.builders/scoped-human-target-builder.ts:19
humanreadonlyHumanNode<"bidirectional">Underlying bidirectional HumanNode.builders/scoped-human-target-builder.ts:17
outputSchemareadonlyZodType<TResponse>Bound Zod schema validating the human's decision response.builders/scoped-human-target-builder.ts:21

Released under the MIT License.