Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/openai/lib/RunnableFunction.ts>RunnableFunctionWithParse

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Go to Latest
type alias RunnableFunctionWithParse
import { type RunnableFunctionWithParse } from "https://deno.land/x/openai@v4.61.1/lib/RunnableFunction.ts";

Type Parameters

Args extends object
definition: { function: (args: Args, runner: ChatCompletionRunner<unknown> | ChatCompletionStreamingRunner<unknown>) => PromiseOrValue<unknown>; parse: (input: string) => PromiseOrValue<Args>; parameters: JSONSchema; description: string; name?: string | undefined; strict?: boolean | undefined; }