Class BetaMidConversationSystemBlockParam
-
- All Implemented Interfaces:
public final class BetaMidConversationSystemBlockParamSystem instructions that appear mid-conversation.
Use this block to provide or update system-level instructions at a specific point in the conversation, rather than only via the top-level
systemparameter.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaMidConversationSystemBlockParam.BuilderA builder for BetaMidConversationSystemBlockParam.
-
Method Summary
Modifier and Type Method Description final List<BetaTextBlockParam>content()System instruction text blocks. final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("mid_conv_system")final Optional<BetaCacheControlEphemeral>cacheControl()Create a cache control breakpoint at this content block. final JsonField<List<BetaTextBlockParam>>_content()Returns the raw JSON value of content. final JsonField<BetaCacheControlEphemeral>_cacheControl()Returns the raw JSON value of cacheControl. final Map<String, JsonValue>_additionalProperties()final BetaMidConversationSystemBlockParam.BuildertoBuilder()final BetaMidConversationSystemBlockParamvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaMidConversationSystemBlockParam.Builderbuilder()Returns a mutable builder for constructing an instance of BetaMidConversationSystemBlockParam. -
-
Method Detail
-
content
final List<BetaTextBlockParam> content()
System instruction text blocks.
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("mid_conv_system")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
cacheControl
final Optional<BetaCacheControlEphemeral> cacheControl()
Create a cache control breakpoint at this content block.
-
_content
final JsonField<List<BetaTextBlockParam>> _content()
Returns the raw JSON value of content.
Unlike content, this method doesn't throw if the JSON field has an unexpected type.
-
_cacheControl
final JsonField<BetaCacheControlEphemeral> _cacheControl()
Returns the raw JSON value of cacheControl.
Unlike cacheControl, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaMidConversationSystemBlockParam.Builder toBuilder()
-
validate
final BetaMidConversationSystemBlockParam 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 BetaMidConversationSystemBlockParam.Builder builder()
Returns a mutable builder for constructing an instance of BetaMidConversationSystemBlockParam.
The following fields are required:
.content()
-
-
-
-