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

x/openai_deno/mod.ts>CreateAssistantParams

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

Properties

optional
name: string | null

The name of the assistant. The maximum length is 256 characters.

optional
description: string | null

The description of the assistant. The maximum length is 512 characters.

optional
instructions: string | null

The system instructions that the assistant uses. The maximum length is 32768 characters.

optional
tools: ({ type: "codeInterpreter"; } | { type: "retrieval"; } | { type: "function"; function: Function; })[]

A list of tool enabled on the assistant.

There can be a maximum of 128 tools per assistant.

Tools can be of types codeInterpreter, retrieval, or function.

optional
fileIDs: string[]

A list of file IDs attached to this assistant.

There can be a maximum of 20 files attached to the assistant.

Files are ordered by their creation date in ascending order.