Assistant

@SerialName(value = "assistant")
class Assistant(val content: Content? = null, val reasoningContent: String? = null, val audio: OpenAIAudio? = null, val name: String? = null, val refusal: String? = null, val toolCalls: List<OpenAIToolCall>? = null, val annotations: List<OpenAIWebUrlCitation>? = null) : OpenAIMessage(source)

Messages sent by the model in response to user messages.

Constructors

Link copied to clipboard
constructor(content: Content? = null, reasoningContent: String? = null, audio: OpenAIAudio? = null, name: String? = null, refusal: String? = null, toolCalls: List<OpenAIToolCall>? = null, annotations: List<OpenAIWebUrlCitation>? = null)

Properties

Link copied to clipboard
Link copied to clipboard

Data about a previous audio response from the model.

Link copied to clipboard
open override val content: Content?

The contents of the assistant message. Required unless [toolCalls] or function_call is specified.

Link copied to clipboard
val name: String?

An optional name for the participant. Provides the model information to differentiate between participants of the same role.

Link copied to clipboard
Link copied to clipboard

The refusal message by the assistant.

Link copied to clipboard

The tool calls generated by the model, such as function calls.