Skip to content

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 ParameterDescription
TResponseValidated human decision response type.

Parameters ​

ParameterTypeDescription
responseSchemaZodType<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'.

Released under the MIT License.