ModifyAssistantRequest

data class ModifyAssistantRequest(var model: String? = null, var name: String? = null, var description: String? = null, var instructions: String? = null, var tools: MutableList<Tool>? = null, var fileIds: MutableList<String>? = null, var metadata: MutableMap<String, String>? = null)

Represents the request body for modifying an assistant. Modifications work by overriding the previous value. If this request has a non-null value for a property, then the value currently stored in the assistant will be replaced.

If you want to add a tool, file, or metadata without overriding the previous value, then you must:

  1. Get the current values of the assistant

  2. Add the new tools/files/metadata

  3. Send a ModifyAssistantRequest with the new values

Be careful when modifying the instance variables. Try to use the builder method instead, as it will detect common errors before sending your request.

Constructors

Link copied to clipboard
constructor(model: String? = null, name: String? = null, description: String? = null, instructions: String? = null, tools: MutableList<Tool>? = null, fileIds: MutableList<String>? = null, metadata: MutableMap<String, String>? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The new description of the assistant

Link copied to clipboard

The new files that can be used in tools

Link copied to clipboard

The new instructions for the assistant to follow

Link copied to clipboard

The new custom metadata map

Link copied to clipboard

The new model to use for the assistant

Link copied to clipboard
var name: String?

The new name of the assistant

Link copied to clipboard

The new tools available to the assistant