Record Class MistralAiApi.ChatCompletionMessage

java.lang.Object
java.lang.Record
org.springframework.ai.mistralai.api.MistralAiApi.ChatCompletionMessage
Record Components:
content - The content of the message. Can be either a list of MistralAiApi.ChatCompletionMessage.ContentChunk or a String.
role - The role of the messages author. Could be one of the MistralAiApi.ChatCompletionMessage.Role types.
name - The name of the author of the message.
toolCalls - The tool calls generated by the model, such as function calls. Applicable only for MistralAiApi.ChatCompletionMessage.Role.ASSISTANT role and null otherwise.
toolCallId - Tool call that this message is responding to. Only applicable for the MistralAiApi.ChatCompletionMessage.Role.TOOL role and null otherwise.
Enclosing class:
MistralAiApi

public static record MistralAiApi.ChatCompletionMessage(@Nullable Object content, @Nullable MistralAiApi.ChatCompletionMessage.Role role, @Nullable String name, @Nullable List<MistralAiApi.ChatCompletionMessage.ToolCall> toolCalls, @Nullable String toolCallId) extends Record
Message comprising the conversation.