Documentation
Namespaces
Prompt
type-aliases
Chain

Type alias: Chain<Args, Result>

Chain<Args, Result>: (args) => Promise<Result>

Type parameters

Parameter
Args extends Record<string, any>
Result extends any

A prompt chain that coordinates the template, functions, and validator.

Parameters

ParameterType
argsArgs

Returns

Promise<Result>

Source

src/prompt/types.ts:7 (opens in a new tab)