Class ChatCompletionStoreMessage.Builder
-
- All Implemented Interfaces:
public final class ChatCompletionStoreMessage.Builder
A builder for ChatCompletionStoreMessage.
-
-
Method Summary
-
-
Method Detail
-
content
final ChatCompletionStoreMessage.Builder content(String content)
The contents of the message.
-
content
final ChatCompletionStoreMessage.Builder content(Optional<String> content)
The contents of the message.
-
content
final ChatCompletionStoreMessage.Builder content(JsonField<String> content)
The contents of the message.
-
refusal
final ChatCompletionStoreMessage.Builder refusal(String refusal)
The refusal message generated by the model.
-
refusal
final ChatCompletionStoreMessage.Builder refusal(Optional<String> refusal)
The refusal message generated by the model.
-
refusal
final ChatCompletionStoreMessage.Builder refusal(JsonField<String> refusal)
The refusal message generated by the model.
-
role
final ChatCompletionStoreMessage.Builder role(JsonValue role)
The role of the author of this message.
-
audio
final ChatCompletionStoreMessage.Builder audio(ChatCompletionAudio audio)
If the audio output modality is requested, this object contains data about the audio response from the model. Learn more.
-
audio
final ChatCompletionStoreMessage.Builder audio(Optional<ChatCompletionAudio> audio)
If the audio output modality is requested, this object contains data about the audio response from the model. Learn more.
-
audio
final ChatCompletionStoreMessage.Builder audio(JsonField<ChatCompletionAudio> audio)
If the audio output modality is requested, this object contains data about the audio response from the model. Learn more.
-
functionCall
@Deprecated(message = "deprecated") final ChatCompletionStoreMessage.Builder functionCall(ChatCompletionMessage.FunctionCall functionCall)
Deprecated and replaced by
tool_calls
. The name and arguments of a function that should be called, as generated by the model.
-
functionCall
@Deprecated(message = "deprecated") final ChatCompletionStoreMessage.Builder functionCall(JsonField<ChatCompletionMessage.FunctionCall> functionCall)
Deprecated and replaced by
tool_calls
. The name and arguments of a function that should be called, as generated by the model.
-
toolCalls
final ChatCompletionStoreMessage.Builder toolCalls(List<ChatCompletionMessageToolCall> toolCalls)
The tool calls generated by the model, such as function calls.
-
toolCalls
final ChatCompletionStoreMessage.Builder toolCalls(JsonField<List<ChatCompletionMessageToolCall>> toolCalls)
The tool calls generated by the model, such as function calls.
-
addToolCall
final ChatCompletionStoreMessage.Builder addToolCall(ChatCompletionMessageToolCall toolCall)
The tool calls generated by the model, such as function calls.
-
id
final ChatCompletionStoreMessage.Builder id(String id)
The identifier of the chat message.
-
id
final ChatCompletionStoreMessage.Builder id(JsonField<String> id)
The identifier of the chat message.
-
additionalProperties
final ChatCompletionStoreMessage.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ChatCompletionStoreMessage.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ChatCompletionStoreMessage.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ChatCompletionStoreMessage.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ChatCompletionStoreMessage.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ChatCompletionStoreMessage build()
-
-
-
-