Assistant

@SerialName(value = "assistant")
class Assistant(val content: Content? = 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, 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
val audio: OpenAIAudio? = null

Data about a previous audio response from the model.

Link copied to clipboard
open override val content: Content? = null

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

Link copied to clipboard
val name: String? = null

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

Link copied to clipboard
val refusal: String? = null

The refusal message by the assistant.

Link copied to clipboard

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