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
AstBuilder<ScopedHumanTargetNode<TResponse>>
Type Parameters
| Type Parameter | Default type | Description |
|---|---|---|
TResponse | unknown | Validated 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
Deeply frozen passive AST node.
Inherited from
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
alias | readonly | string | Role alias displayed in decision requests. | builders/scoped-human-target-builder.ts:19 |
human | readonly | HumanNode<"bidirectional"> | Underlying bidirectional HumanNode. | builders/scoped-human-target-builder.ts:17 |
outputSchema | readonly | ZodType<TResponse> | Bound Zod schema validating the human's decision response. | builders/scoped-human-target-builder.ts:21 |