Tool message
objectThe role of the messages author, in this case tool.
Allowed values:tool
One OfThe contents of the tool message.
The contents of the tool message.
Tool call that this message is responding to.
ChatCompletionRequestToolMessageContentPart
One OfThe type of the content part.
Allowed values:text
The text content.
User message
objectMessages sent by an end user, containing prompts or additional context
information.
One OfThe contents of the user message.
The text contents of the message.
The role of the messages author, in this case user.
Allowed values:user
An optional name for the participant. Provides the model information to differentiate between participants of the same role.
ChatCompletionRequestUserMessageContentPart
One OfThe type of the content part.
Allowed values:text
The text content.
ChatCompletionResponseMessage
objectA chat completion message generated by the model.
The contents of the message.
The refusal message generated by the model.
The tool calls generated by the model, such as function calls.
Show Child Parameters
The role of the author of this message.
Allowed values:assistant
Deprecated and replaced by tool_calls. The name and arguments of a function that should be called, as generated by the model.
Show Child Parameters
If the audio output modality is requested, this object contains data
about the audio response from the model. Learn more.