Assistants

interface Assistants

Build assistants that can call models and use tools to perform tasks.

Inheritors

Functions

Link copied to clipboard
abstract suspend fun assistant(id: AssistantId, requestOptions: RequestOptions? = null): Assistant?

Retrieves an assistant.

abstract suspend fun assistant(request: AssistantRequest, requestOptions: RequestOptions? = null): Assistant

Create an assistant with a model and instructions.

abstract suspend fun assistant(id: AssistantId, request: AssistantRequest, requestOptions: RequestOptions? = null): Assistant

Update an assistant.

Link copied to clipboard
abstract suspend fun assistants(limit: Int? = null, order: SortOrder? = null, after: AssistantId? = null, before: AssistantId? = null, requestOptions: RequestOptions? = null): List<Assistant>

Returns a list of assistants.

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

Delete an assistant.