Function: askHuman()
askHuman<
S>(spec):Promise<InferInterruptAnswer<S>>
Defined in: packages/core/src/interrupt/ask-human.ts:17
Type Parameters
S
S extends { cancelLabel?: string; confirmLabel?: string; id?: string; kind: "confirm"; prompt: string; } | { id?: string; kind: "text"; maxLength?: number; placeholder?: string; prompt: string; } | { id?: string; kind: "choice"; multiple?: boolean; options: object[]; prompt: string; } | { id?: string; kind: "number"; max: number; min: number; prompt: string; step?: number; } | { accept?: string[]; id?: string; kind: "file"; maxBytes?: number; prompt: string; } | { id?: string; kind: "encrypted"; prompt: string; purpose?: "password" | "secret" | "api_key"; }
Parameters
spec
S
Returns
Promise<InferInterruptAnswer<S>>