Class BetaSystemMessageParam
-
- All Implemented Interfaces:
public final class BetaSystemMessageParam
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaSystemMessageParam.BuilderA builder for BetaSystemMessageParam.
public final classBetaSystemMessageParam.ClearAtHow 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.public final classBetaSystemMessageParam.Content
-
Method Summary
Modifier and Type Method Description final Optional<BetaSystemMessageParam.ClearAt>clearAt()How long this system message's text stays in front of the model. final Optional<BetaSystemMessageParam.Content>content()final Optional<BetaSystemMessageOutputConfig>outputConfig()Per-message output configuration on a role:"system" input message. final JsonValue_role()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("system")final JsonField<BetaSystemMessageParam.ClearAt>_clearAt()Returns the raw JSON value of clearAt. final JsonField<BetaSystemMessageParam.Content>_content()Returns the raw JSON value of content. final JsonField<BetaSystemMessageOutputConfig>_outputConfig()Returns the raw JSON value of outputConfig. final Map<String, JsonValue>_additionalProperties()final BetaSystemMessageParam.BuildertoBuilder()final BetaSystemMessageParamvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaSystemMessageParam.Builderbuilder()Returns a mutable builder for constructing an instance of BetaSystemMessageParam. final static BetaSystemMessageParamof(BetaSystemMessageParam.Content content)Returns an immutable instance of BetaSystemMessageParam with the required content set to the given value. final static BetaSystemMessageParamof(String string)Alias for calling of with Content.ofString(string).final static BetaSystemMessageParamofBlocks(List<BetaSystemMessageParam.Content.SystemMessageContentBlock> blocks)Alias for calling of with Content.ofBlocks(blocks).-
-
Method Detail
-
clearAt
final Optional<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.
-
content
final Optional<BetaSystemMessageParam.Content> content()
-
outputConfig
final Optional<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.
-
_role
final JsonValue _role()
Expected to always return the following:
JsonValue.from("system")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_clearAt
final JsonField<BetaSystemMessageParam.ClearAt> _clearAt()
Returns the raw JSON value of clearAt.
Unlike clearAt, this method doesn't throw if the JSON field has an unexpected type.
-
_content
final JsonField<BetaSystemMessageParam.Content> _content()
Returns the raw JSON value of content.
Unlike content, this method doesn't throw if the JSON field has an unexpected type.
-
_outputConfig
final JsonField<BetaSystemMessageOutputConfig> _outputConfig()
Returns the raw JSON value of outputConfig.
Unlike outputConfig, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaSystemMessageParam.Builder toBuilder()
-
validate
final BetaSystemMessageParam validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static BetaSystemMessageParam.Builder builder()
Returns a mutable builder for constructing an instance of BetaSystemMessageParam.
-
of
final static BetaSystemMessageParam of(BetaSystemMessageParam.Content content)
Returns an immutable instance of BetaSystemMessageParam with the required content set to the given value.
-
of
final static BetaSystemMessageParam of(String string)
Alias for calling of with
Content.ofString(string).
-
ofBlocks
final static BetaSystemMessageParam ofBlocks(List<BetaSystemMessageParam.Content.SystemMessageContentBlock> blocks)
Alias for calling of with
Content.ofBlocks(blocks).
-
-
-
-