Class ChatCompletionDeveloperMessageParam.Builder
-
- All Implemented Interfaces:
public final class ChatCompletionDeveloperMessageParam.Builder
A builder for ChatCompletionDeveloperMessageParam.
-
-
Method Summary
-
-
Method Detail
-
content
final ChatCompletionDeveloperMessageParam.Builder content(ChatCompletionDeveloperMessageParam.Content content)
The contents of the developer message.
-
content
final ChatCompletionDeveloperMessageParam.Builder content(JsonField<ChatCompletionDeveloperMessageParam.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 ChatCompletionDeveloperMessageParam.Builder content(String text)
Alias for calling content with
Content.ofText(text)
.
-
contentOfArrayOfContentParts
final ChatCompletionDeveloperMessageParam.Builder contentOfArrayOfContentParts(List<ChatCompletionContentPartText> arrayOfContentParts)
Alias for calling content with
Content.ofArrayOfContentParts(arrayOfContentParts)
.
-
role
final ChatCompletionDeveloperMessageParam.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("developer")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
name
final ChatCompletionDeveloperMessageParam.Builder name(String name)
An optional name for the participant. Provides the model information to differentiate between participants of the same role.
-
name
final ChatCompletionDeveloperMessageParam.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 ChatCompletionDeveloperMessageParam.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ChatCompletionDeveloperMessageParam.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ChatCompletionDeveloperMessageParam.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ChatCompletionDeveloperMessageParam.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ChatCompletionDeveloperMessageParam.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ChatCompletionDeveloperMessageParam build()
Returns an immutable instance of ChatCompletionDeveloperMessageParam.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.content()
-
-
-
-