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

x/openai/lib/RunnableFunction.ts>ParsingFunction

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Latest
class ParsingFunction
Deprecated
Deprecated
  • please use ParsingToolFunction instead.
import { ParsingFunction } from "https://deno.land/x/openai@v4.69.0/lib/RunnableFunction.ts";

This is helper class for passing a function and parse where the function argument type matches the parse return type.

Constructors

new
ParsingFunction(input: RunnableFunctionWithParse<Args>)

Type Parameters

Args extends object

Properties

description: RunnableFunctionWithParse<Args>["description"]
function: RunnableFunctionWithParse<Args>["function"]
optional
name: RunnableFunctionWithParse<Args>["name"]
parameters: RunnableFunctionWithParse<Args>["parameters"]