Class PromptData.Prompt.Chat.Message.User.Builder
-
- All Implemented Interfaces:
public final class PromptData.Prompt.Chat.Message.User.BuilderA builder for User.
-
-
Method Summary
-
-
Method Detail
-
role
final PromptData.Prompt.Chat.Message.User.Builder role(PromptData.Prompt.Chat.Message.User.Role role)
-
role
final PromptData.Prompt.Chat.Message.User.Builder role(JsonField<PromptData.Prompt.Chat.Message.User.Role> role)
Sets Builder.role to an arbitrary JSON value.
You should usually call Builder.role with a well-typed Role value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
content
final PromptData.Prompt.Chat.Message.User.Builder content(PromptData.Prompt.Chat.Message.User.Content content)
-
content
final PromptData.Prompt.Chat.Message.User.Builder content(JsonField<PromptData.Prompt.Chat.Message.User.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 PromptData.Prompt.Chat.Message.User.Builder content(String text)
Alias for calling content with
Content.ofText(text).
-
contentOfArray
final PromptData.Prompt.Chat.Message.User.Builder contentOfArray(List<PromptData.Prompt.Chat.Message.User.Content.ChatCompletionContentPart> array)
Alias for calling content with
Content.ofArray(array).
-
name
final PromptData.Prompt.Chat.Message.User.Builder name(String name)
-
name
final PromptData.Prompt.Chat.Message.User.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 PromptData.Prompt.Chat.Message.User.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final PromptData.Prompt.Chat.Message.User.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final PromptData.Prompt.Chat.Message.User.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final PromptData.Prompt.Chat.Message.User.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final PromptData.Prompt.Chat.Message.User.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final PromptData.Prompt.Chat.Message.User build()
Returns an immutable instance of User.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.role()
-
-
-
-