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

x/openai/resources/beta/threads/mod.ts

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Go to Latest
import * as openai from "https://deno.land/x/openai@v4.21.0/resources/beta/threads/mod.ts";

Interfaces

References an image File in the content of a message.

The text content that is part of a message.

A citation within the message that points to a specific quote from a specific File associated with the assistant or the message. Generated when the assistant uses the "retrieval" tool to search files.

A URL for the file that's generated when the assistant used the code_interpreter tool to generate a file.

Tool call objects

The function definition.

Represents an execution run on a thread.

The last error associated with this run. Will be null if there are no errors.

Details on the action required to continue the run. Will be null if no action is required.

Details on the tool outputs needed for this run to continue.

Represents a thread that contains messages.

If no thread is provided, an empty thread will be created.

Represents a message within a thread.

Type Aliases