Assistant
@Serializable
@SerialName(value = "assistant")
An assistant message (for conversation history).
Constructors
Link copied to clipboard
constructor(content: OpenAIChatCompletionContent? = null, name: String? = null, refusal: String? = null, audio: OpenAIAssistantAudioParam? = null, functionCall: OpenAIFunctionCall? = null, toolCalls: List<OpenAIToolCall>? = null)
Properties
Link copied to clipboard
Data about a previous audio response from the model. null when not continuing an audio conversation.
Link copied to clipboard
The assistant's response content. null when only tool calls are present.
Link copied to clipboard
Deprecated function call, replaced by toolCalls. null when legacy function calling is not used.
Link copied to clipboard
Tool calls made by the assistant.