Class ChatCompletionAssistantMessageParam.Builder
-
- All Implemented Interfaces:
public final class ChatCompletionAssistantMessageParam.Builder
A builder for ChatCompletionAssistantMessageParam.
-
-
Method Summary
-
-
Method Detail
-
role
final ChatCompletionAssistantMessageParam.Builder role(JsonValue role)
The role of the messages author, in this case
assistant
.
-
audio
final ChatCompletionAssistantMessageParam.Builder audio(ChatCompletionAssistantMessageParam.Audio audio)
Data about a previous audio response from the model. Learn more.
-
audio
final ChatCompletionAssistantMessageParam.Builder audio(Optional<ChatCompletionAssistantMessageParam.Audio> audio)
Data about a previous audio response from the model. Learn more.
-
audio
final ChatCompletionAssistantMessageParam.Builder audio(JsonField<ChatCompletionAssistantMessageParam.Audio> audio)
Data about a previous audio response from the model. Learn more.
-
content
final ChatCompletionAssistantMessageParam.Builder content(ChatCompletionAssistantMessageParam.Content content)
The contents of the assistant message. Required unless
tool_calls
orfunction_call
is specified.
-
content
final ChatCompletionAssistantMessageParam.Builder content(Optional<ChatCompletionAssistantMessageParam.Content> content)
The contents of the assistant message. Required unless
tool_calls
orfunction_call
is specified.
-
content
final ChatCompletionAssistantMessageParam.Builder content(JsonField<ChatCompletionAssistantMessageParam.Content> content)
The contents of the assistant message. Required unless
tool_calls
orfunction_call
is specified.
-
content
final ChatCompletionAssistantMessageParam.Builder content(String text)
The contents of the assistant message.
-
contentOfArrayOfContentParts
final ChatCompletionAssistantMessageParam.Builder contentOfArrayOfContentParts(List<ChatCompletionAssistantMessageParam.Content.ChatCompletionRequestAssistantMessageContentPart> arrayOfContentParts)
An array of content parts with a defined type. Can be one or more of type
text
, or exactly one of typerefusal
.
-
functionCall
@Deprecated(message = "deprecated") final ChatCompletionAssistantMessageParam.Builder functionCall(ChatCompletionAssistantMessageParam.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 ChatCompletionAssistantMessageParam.Builder functionCall(Optional<ChatCompletionAssistantMessageParam.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 ChatCompletionAssistantMessageParam.Builder functionCall(JsonField<ChatCompletionAssistantMessageParam.FunctionCall> functionCall)
Deprecated and replaced by
tool_calls
. The name and arguments of a function that should be called, as generated by the model.
-
name
final ChatCompletionAssistantMessageParam.Builder name(String name)
An optional name for the participant. Provides the model information to differentiate between participants of the same role.
-
name
final ChatCompletionAssistantMessageParam.Builder name(JsonField<String> name)
An optional name for the participant. Provides the model information to differentiate between participants of the same role.
-
refusal
final ChatCompletionAssistantMessageParam.Builder refusal(String refusal)
The refusal message by the assistant.
-
refusal
final ChatCompletionAssistantMessageParam.Builder refusal(Optional<String> refusal)
The refusal message by the assistant.
-
refusal
final ChatCompletionAssistantMessageParam.Builder refusal(JsonField<String> refusal)
The refusal message by the assistant.
-
toolCalls
final ChatCompletionAssistantMessageParam.Builder toolCalls(List<ChatCompletionMessageToolCall> toolCalls)
The tool calls generated by the model, such as function calls.
-
toolCalls
final ChatCompletionAssistantMessageParam.Builder toolCalls(JsonField<List<ChatCompletionMessageToolCall>> toolCalls)
The tool calls generated by the model, such as function calls.
-
addToolCall
final ChatCompletionAssistantMessageParam.Builder addToolCall(ChatCompletionMessageToolCall toolCall)
The tool calls generated by the model, such as function calls.
-
additionalProperties
final ChatCompletionAssistantMessageParam.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ChatCompletionAssistantMessageParam.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ChatCompletionAssistantMessageParam.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ChatCompletionAssistantMessageParam.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ChatCompletionAssistantMessageParam.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ChatCompletionAssistantMessageParam build()
-
-
-
-