Skip to main content
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.33.0/resources/beta/threads/mod.ts";

Interfaces

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 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.

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

References an image File in the content of a message.

References an image File in the content of a message.

Represents a message within a thread.

On an incomplete message, details about why the message is incomplete.

The delta containing the fields that have changed on the Message.

Represents a message delta i.e. any changed fields on a message during streaming.

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.

Usage statistics related to the run. This value will be null if the run is not in a terminal state (i.e. in_progress, queued, etc.).

The text content that is part of a message.

The text content that is part of a message.

Represents a thread that contains messages.

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

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

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

Type Aliases

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 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.

References an image File in the content of a message.

References an image File in the content of a message.

The status of the run, which can be either queued, in_progress, requires_action, cancelling, cancelled, failed, completed, or expired.