Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/openai_deno/mod.ts>Function

OpenAI API wrapper for deno.
Latest
interface Function
Re-export
import { type Function } from "https://deno.land/x/openai_deno@v0.9.8/mod.ts";

Properties

name: string

The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.

optional
description: string

The description of what the function does.

optional
parameters: Record<string, unknown>

The parameters the functions accepts, described as a JSON Schema object. See the guide for examples, and the JSON Schema reference for documentation about the format.