Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/openai/resources/beta/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.52.0/resources/beta/mod.ts";

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.