Class ChatCompletionSystemMessageParam.Builder
-
- All Implemented Interfaces:
public final class ChatCompletionSystemMessageParam.Builder
A builder for ChatCompletionSystemMessageParam.
-
-
Method Summary
-
-
Method Detail
-
content
final ChatCompletionSystemMessageParam.Builder content(ChatCompletionSystemMessageParam.Content content)
The contents of the system message.
-
content
final ChatCompletionSystemMessageParam.Builder content(JsonField<ChatCompletionSystemMessageParam.Content> content)
Sets Builder.content to an arbitrary JSON value.
You should usually call Builder.content with a well-typed Content value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
content
final ChatCompletionSystemMessageParam.Builder content(String text)
Alias for calling content with
Content.ofText(text)
.
-
contentOfArrayOfContentParts
final ChatCompletionSystemMessageParam.Builder contentOfArrayOfContentParts(List<ChatCompletionContentPartText> arrayOfContentParts)
Alias for calling content with
Content.ofArrayOfContentParts(arrayOfContentParts)
.
-
role
final ChatCompletionSystemMessageParam.Builder role(JsonValue role)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("system")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
name
final ChatCompletionSystemMessageParam.Builder name(String name)
An optional name for the participant. Provides the model information to differentiate between participants of the same role.
-
name
final ChatCompletionSystemMessageParam.Builder name(JsonField<String> name)
Sets Builder.name to an arbitrary JSON value.
You should usually call Builder.name with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ChatCompletionSystemMessageParam.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ChatCompletionSystemMessageParam.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ChatCompletionSystemMessageParam.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ChatCompletionSystemMessageParam.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ChatCompletionSystemMessageParam.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ChatCompletionSystemMessageParam build()
Returns an immutable instance of ChatCompletionSystemMessageParam.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.content()
-
-
-
-