Class BetaSystemMessageParam.Builder
-
- All Implemented Interfaces:
public final class BetaSystemMessageParam.BuilderA builder for BetaSystemMessageParam.
-
-
Method Summary
-
-
Method Detail
-
role
final BetaSystemMessageParam.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.
-
clearAt
final BetaSystemMessageParam.Builder clearAt(BetaSystemMessageParam.ClearAt clearAt)
How long this system message's text stays in front of the model.
"never"(the default) renders it on every request that includes it."next_user_message"renders it only for the user turn it follows: once a laterrole: "user"message exists inmessagesthe message stays in the array (send it unchanged) but is no longer shown to the model. Only permitted onrole: "system"messages.
-
clearAt
final BetaSystemMessageParam.Builder clearAt(Optional<BetaSystemMessageParam.ClearAt> clearAt)
Alias for calling Builder.clearAt with
clearAt.orElse(null).
-
clearAt
final BetaSystemMessageParam.Builder clearAt(JsonField<BetaSystemMessageParam.ClearAt> clearAt)
Sets Builder.clearAt to an arbitrary JSON value.
You should usually call Builder.clearAt with a well-typed ClearAt value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
content
final BetaSystemMessageParam.Builder content(BetaSystemMessageParam.Content content)
-
content
final BetaSystemMessageParam.Builder content(JsonField<BetaSystemMessageParam.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 BetaSystemMessageParam.Builder content(String string)
Alias for calling content with
Content.ofString(string).
-
outputConfig
final BetaSystemMessageParam.Builder outputConfig(BetaSystemMessageOutputConfig outputConfig)
Per-message output configuration on a role:"system" input message.
Fields here apply per-turn;
`format`remains top-level only. An empty`{}`is accepted on a message that carries content; a message with neither content nor output_config fields is rejected.
-
outputConfig
final BetaSystemMessageParam.Builder outputConfig(Optional<BetaSystemMessageOutputConfig> outputConfig)
Alias for calling Builder.outputConfig with
outputConfig.orElse(null).
-
outputConfig
final BetaSystemMessageParam.Builder outputConfig(JsonField<BetaSystemMessageOutputConfig> outputConfig)
Sets Builder.outputConfig to an arbitrary JSON value.
You should usually call Builder.outputConfig with a well-typed BetaSystemMessageOutputConfig value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaSystemMessageParam.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
contentOfBlocks
final BetaSystemMessageParam.Builder contentOfBlocks(List<BetaSystemMessageParam.Content.SystemMessageContentBlock> blocks)
Alias for calling content with
Content.ofBlocks(blocks).
-
putAdditionalProperty
final BetaSystemMessageParam.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaSystemMessageParam.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaSystemMessageParam.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaSystemMessageParam.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaSystemMessageParam build()
Returns an immutable instance of BetaSystemMessageParam.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-