assistant

abstract fun assistant(block: Assistant.() -> Unit): Assistant

This is the assistant that will be used for the call. To use an existing assistant, use assistantId instead.
If you're unsure why you're getting an invalid assistant, try logging your response and send the JSON blob to POST /assistant which will return the validation errors.