Documentation
Namespaces
Prompt
type-aliases
ExtractFunction

Type alias: ExtractFunction<Schema>

ExtractFunction<Schema>: (params, context?) => Promise<z.infer<Schema>>

Type parameters

Parameter
Schema extends z.ZodObject<any>

A function used to extract data using OpenAI function calling.

Parameters

ParameterType
paramsstring | Params
context?Ctx

Returns

Promise<z.infer<Schema>>

Source

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