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

x/openai_deno/mod.ts>Assistant

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

Properties

id: string

The identifier, which can be referenced in API endpoints.

object: "assistant"

The object type, which is always assistant.

createdAt: number

The Unix timestamp (in seconds) for when the assistant was created.

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
model: string

ID of the model to use.

You can use the List models API to see all of your available models, or see our Model overview for descriptions of them.

optional
instructions: string | null

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

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.

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.