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

x/openai/resources/beta/assistants/mod.ts>Assistants

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Go to Latest
class Assistants
extends APIResource
import { Assistants } from "https://deno.land/x/openai@v4.28.5/resources/beta/assistants/mod.ts";

Properties

files: FilesAPI.Files

Methods

create(body: AssistantCreateParams, options?: Core.RequestOptions): Core.APIPromise<Assistant>

Create an assistant with a model and instructions.

del(assistantId: string, options?: Core.RequestOptions): Core.APIPromise<AssistantDeleted>

Delete an assistant.

list(query?: AssistantListParams, options?: Core.RequestOptions): Core.PagePromise<AssistantsPage, Assistant>

Returns a list of assistants.

list(options?: Core.RequestOptions): Core.PagePromise<AssistantsPage, Assistant>
retrieve(assistantId: string, options?: Core.RequestOptions): Core.APIPromise<Assistant>

Retrieves an assistant.

update(
assistantId: string,
options?: Core.RequestOptions,
): Core.APIPromise<Assistant>

Modifies an assistant.