modify

open fun modify(assistant: Assistant, request: ModifyAssistantRequest): Assistant

Shorthand to modify the given assistant. Note that this method will return a new instance of the assistant, and will not modify the given instance.

Parameters

assistant

The assistant to modify

request

The request to modify the assistant


abstract fun modify(id: String, request: ModifyAssistantRequest): Assistant

Modifies the given assistant. For any nonnull fields in the given request, the corresponding field in the assistant will be overwritten.

If you want to append to the corresponding field, you must first retrieve the assistant, modify the field, and then call this method.

Return

The modified assistant

Parameters

request

The request to modify the assistant