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

x/openai/resources/beta/chat/completions.ts>RunnableFunctionWithParse

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Latest
type alias RunnableFunctionWithParse
import { type RunnableFunctionWithParse } from "https://deno.land/x/openai@v4.69.0/resources/beta/chat/completions.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; }