assistant
abstract suspend fun assistant(request: AssistantRequest, requestOptions: RequestOptions? = null): Assistant
Deprecated
OpenAI retired the Assistants API on August 26, 2026. Use Responses and Conversations.
Create an assistant with a model and instructions.
Parameters
request
the request to create an assistant.
Deprecated
OpenAI retired the Assistants API on August 26, 2026. Use Responses and Conversations.
Retrieves an assistant.
Parameters
id
the ID of the assistant to retrieve.
abstract suspend fun assistant(id: AssistantId, request: AssistantRequest, requestOptions: RequestOptions? = null): Assistant
Deprecated
OpenAI retired the Assistants API on August 26, 2026. Use Responses and Conversations.
Update an assistant.
Parameters
id
rhe ID of the assistant to modify.