Class BetaEasyInputMessage.Builder
-
- All Implemented Interfaces:
public final class BetaEasyInputMessage.BuilderA builder for BetaEasyInputMessage.
-
-
Method Summary
-
-
Method Detail
-
content
final BetaEasyInputMessage.Builder content(BetaEasyInputMessage.Content content)
Text, image, or audio input to the model, used to generate a response. Can also contain previous assistant responses.
-
content
final BetaEasyInputMessage.Builder content(JsonField<BetaEasyInputMessage.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 BetaEasyInputMessage.Builder content(String textInput)
Alias for calling content with
Content.ofTextInput(textInput).
-
contentOfBetaResponseInputMessageContentList
final BetaEasyInputMessage.Builder contentOfBetaResponseInputMessageContentList(List<BetaResponseInputContent> betaResponseInputMessageContentList)
Alias for calling content with
Content.ofBetaResponseInputMessageContentList(betaResponseInputMessageContentList).
-
role
final BetaEasyInputMessage.Builder role(BetaEasyInputMessage.Role role)
The role of the message input. One of
user,assistant,system, ordeveloper.
-
role
final BetaEasyInputMessage.Builder role(JsonField<BetaEasyInputMessage.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.
-
phase
final BetaEasyInputMessage.Builder phase(BetaEasyInputMessage.Phase phase)
Labels an
assistantmessage as intermediate commentary (commentary) or the final answer (final_answer). For models likegpt-5.3-codexand beyond, when sending follow-up requests, preserve and resend phase on all assistant messages — dropping it can degrade performance. Not used for user messages.
-
phase
final BetaEasyInputMessage.Builder phase(Optional<BetaEasyInputMessage.Phase> phase)
Alias for calling Builder.phase with
phase.orElse(null).
-
phase
final BetaEasyInputMessage.Builder phase(JsonField<BetaEasyInputMessage.Phase> phase)
Sets Builder.phase to an arbitrary JSON value.
You should usually call Builder.phase with a well-typed Phase value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaEasyInputMessage.Builder type(BetaEasyInputMessage.Type type)
The type of the message input. Always
message.
-
type
final BetaEasyInputMessage.Builder type(JsonField<BetaEasyInputMessage.Type> type)
Sets Builder.type to an arbitrary JSON value.
You should usually call Builder.type with a well-typed Type value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaEasyInputMessage.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaEasyInputMessage.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaEasyInputMessage.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaEasyInputMessage.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaEasyInputMessage.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaEasyInputMessage build()
Returns an immutable instance of BetaEasyInputMessage.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.content() .role()
-
-
-
-