Messages sent by the model in response to user messages.
Optional
Data about a previous audio response from the model. Learn more.
The contents of the assistant message. Required unless tool_calls or function_call is specified.
tool_calls
function_call
Deprecated and replaced by tool_calls. The name and arguments of a function that should be called, as generated by the model.
An optional name for the participant. Provides the model information to differentiate between participants of the same role.
The refusal message by the assistant.
The role of the messages author, in this case assistant.
assistant
The tool calls generated by the model, such as function calls.
Messages sent by the model in response to user messages.