import * as openai from "https://deno.land/x/openai@v4.66.1/resources/beta/mod.ts";
Interfaces
Represents an | |
A set of resources that are used by the assistant's tools. The resources are
specific to the type of tool. For example, the | |
A set of resources that are used by the assistant's tools. The resources are
specific to the type of tool. For example, the | |
Occurs when an error occurs. This can happen due to an internal server error or a timeout. | |
Occurs when a new thread is created. | |
Occurs when a message is completed. | |
Occurs when a message is created. | |
Occurs when parts of a Message are being streamed. | |
Occurs when a message ends before it is completed. | |
Occurs when a
message moves
to an | |
Occurs when a run is cancelled. | |
Occurs when a run
moves to a | |
Occurs when a run is completed. | |
Occurs when a new run is created. | |
Occurs when a run expires. | |
Occurs when a run fails. | |
Occurs when a run
ends with status | |
Occurs when a run
moves to an | |
Occurs when a run
moves to a | |
Occurs when a run
moves to a | |
Occurs when a run step is cancelled. | |
Occurs when a run step is completed. | |
Occurs when a run step is created. | |
Occurs when parts of a run step are being streamed. | |
Occurs when a run step expires. | |
Occurs when a run step fails. | |
Occurs when a
run step
moves to an | |
Specifies a tool the model should use. Use to force the model to call a specific tool. | |
A set of resources that are used by the assistant's tools. The resources are
specific to the type of tool. For example, the | |
The default strategy. This strategy currently uses a | |
Overrides for the file search tool. | |
The ranking options for the file search. If not specified, the file search tool
will use the | |
Occurs when a message is completed. | |
Occurs when a message is created. | |
Occurs when parts of a Message are being streamed. | |
Occurs when a message ends before it is completed. | |
Occurs when a
message moves
to an | |
This is returned when the chunking strategy is unknown. Typically, this is
because the file was indexed before the | |
Occurs when a run step is cancelled. | |
Occurs when a run step is completed. | |
Occurs when a run step is created. | |
Occurs when parts of a run step are being streamed. | |
Occurs when a run step expires. | |
Occurs when a run step fails. | |
Occurs when a
run step
moves to an | |
Occurs when a run is cancelled. | |
Occurs when a run
moves to a | |
Occurs when a run is completed. | |
Occurs when a new run is created. | |
Occurs when a run expires. | |
Occurs when a run fails. | |
Occurs when a run
ends with status | |
Occurs when a run
moves to an | |
Occurs when a run
moves to a | |
Occurs when a run
moves to a | |
Represents a thread that contains messages. | |
A set of resources that are made available to the assistant's tools in this
thread. The resources are specific to the type of tool. For example, the
| |
If no thread is provided, an empty thread will be created. | |
A set of resources that are made available to the assistant's tools in this
thread. The resources are specific to the type of tool. For example, the
| |
A set of resources that are used by the assistant's tools. The resources are
specific to the type of tool. For example, the | |
Controls for how a thread will be truncated prior to the run. Use this to control the intial context window of the run. | |
If no thread is provided, an empty thread will be created. | |
A set of resources that are made available to the assistant's tools in this
thread. The resources are specific to the type of tool. For example, the
| |
A set of resources that are used by the assistant's tools. The resources are
specific to the type of tool. For example, the | |
Controls for how a thread will be truncated prior to the run. Use this to control the intial context window of the run. | |
If no thread is provided, an empty thread will be created. | |
A set of resources that are made available to the assistant's tools in this
thread. The resources are specific to the type of tool. For example, the
| |
A set of resources that are used by the assistant's tools. The resources are
specific to the type of tool. For example, the | |
Controls for how a thread will be truncated prior to the run. Use this to control the intial context window of the run. | |
A set of resources that are made available to the assistant's tools in this
thread. The resources are specific to the type of tool. For example, the
| |
Occurs when a new thread is created. | |
A set of resources that are made available to the assistant's tools in this
thread. The resources are specific to the type of tool. For example, the
| |
A vector store is a collection of processed files can be used by the
| |
The expiration policy for a vector store. | |
The expiration policy for a vector store. | |
The expiration policy for a vector store. |
Type Aliases
Specifies the format that the model must output. Compatible with
GPT-4o,
GPT-4 Turbo,
and all GPT-3.5 Turbo models since | |
Represents an event emitted when streaming a Run. | |
Controls which (if any) tool is called by the model. | |
The strategy used to chunk the file. | |
The chunking strategy used to chunk the file(s). If not set, will use the | |
Occurs when a message is created. | |
Occurs when a run step is created. | |
Occurs when a new run is created. | |