Interface: ScopedHumanNameBuilder
Defined in: builders/scoped-human-name-builder.ts:10
Intermediate fluent builder returned by human.withName(alias) before binding .output(responseSchema).
Requires .output(responseSchema) to complete a typed ScopedHumanTargetBuilder<TResponse> for budget approvals or human decision gates.
Methods
output()
ts
output<TResponse>(responseSchema): ScopedHumanTargetBuilder<TResponse>;Defined in: builders/scoped-human-name-builder.ts:24
Binds the Zod output validation schema for this aliased human decision target.
Validates that the underlying HumanNode channel is 'bidirectional' before constructing the target.
Type Parameters
| Type Parameter | Description |
|---|---|
TResponse | Validated human decision response type. |
Parameters
| Parameter | Type | Description |
|---|---|---|
responseSchema | ZodType<TResponse> | Zod schema validating the human's response. |
Returns
ScopedHumanTargetBuilder<TResponse>
Fluent builder compiling to ScopedHumanTargetNode<TResponse>.
Throws
If the underlying HumanNode channel is not 'bidirectional'.