Threads

interface Threads

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.