Deprecated
- please use ParsingToolFunction instead.
import { ParsingFunction } from "https://deno.land/x/openai@v4.59.0/resources/beta/chat/completions.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>)Properties
description: RunnableFunctionWithParse<Args>["description"]
function: RunnableFunctionWithParse<Args>["function"]
optional
name: RunnableFunctionWithParse<Args>["name"]parameters: RunnableFunctionWithParse<Args>["parameters"]
parse: RunnableFunctionWithParse<Args>["parse"]