Threads

interface Threads

Deprecated

OpenAI retired the Assistants API on August 26, 2026. Use Responses and Conversations.

Create threads that assistants can interact with.

Inheritors

Functions

Link copied to clipboard
abstract suspend fun delete(id: ThreadId, requestOptions: RequestOptions? = null): Boolean

Delete a thread.

Link copied to clipboard
abstract suspend fun thread(id: ThreadId, requestOptions: RequestOptions? = null): Thread?

Retrieve a thread.

abstract suspend fun thread(request: ThreadRequest? = null, requestOptions: RequestOptions? = null): Thread

Create a thread.

abstract suspend fun thread(id: ThreadId, metadata: Map<String, String>, requestOptions: RequestOptions? = null): Thread

Modify a thread.