Package com.openai.models
Class ChatCompletionUserMessageParam.Builder
-
- All Implemented Interfaces:
public final class ChatCompletionUserMessageParam.Builder
A builder for ChatCompletionUserMessageParam.
-
-
Method Summary
-
-
Method Detail
-
content
final ChatCompletionUserMessageParam.Builder content(ChatCompletionUserMessageParam.Content content)
The contents of the user message.
-
content
final ChatCompletionUserMessageParam.Builder content(JsonField<ChatCompletionUserMessageParam.Content> content)
The contents of the user message.
-
content
final ChatCompletionUserMessageParam.Builder content(String text)
The text contents of the message.
-
contentOfArrayOfContentParts
final ChatCompletionUserMessageParam.Builder contentOfArrayOfContentParts(List<ChatCompletionContentPart> arrayOfContentParts)
An array of content parts with a defined type. Supported options differ based on the model being used to generate the response. Can contain text, image, or audio inputs.
-
role
final ChatCompletionUserMessageParam.Builder role(JsonValue role)
The role of the messages author, in this case
user
.
-
name
final ChatCompletionUserMessageParam.Builder name(String name)
An optional name for the participant. Provides the model information to differentiate between participants of the same role.
-
name
final ChatCompletionUserMessageParam.Builder name(JsonField<String> name)
An optional name for the participant. Provides the model information to differentiate between participants of the same role.
-
additionalProperties
final ChatCompletionUserMessageParam.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ChatCompletionUserMessageParam.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ChatCompletionUserMessageParam.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ChatCompletionUserMessageParam.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ChatCompletionUserMessageParam.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ChatCompletionUserMessageParam build()
-
-
-
-