Class MidConversationSystemBlockParam
-
- All Implemented Interfaces:
public final class MidConversationSystemBlockParamSystem 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 classMidConversationSystemBlockParam.BuilderA builder for MidConversationSystemBlockParam.
-
Method Summary
Modifier and Type Method Description final List<TextBlockParam>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<CacheControlEphemeral>cacheControl()Create a cache control breakpoint at this content block. final JsonField<List<TextBlockParam>>_content()Returns the raw JSON value of content. final JsonField<CacheControlEphemeral>_cacheControl()Returns the raw JSON value of cacheControl. final Map<String, JsonValue>_additionalProperties()final MidConversationSystemBlockParam.BuildertoBuilder()final MidConversationSystemBlockParamvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static MidConversationSystemBlockParam.Builderbuilder()Returns a mutable builder for constructing an instance of MidConversationSystemBlockParam. -
-
Method Detail
-
content
final List<TextBlockParam> 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<CacheControlEphemeral> cacheControl()
Create a cache control breakpoint at this content block.
-
_content
final JsonField<List<TextBlockParam>> _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<CacheControlEphemeral> _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 MidConversationSystemBlockParam.Builder toBuilder()
-
validate
final MidConversationSystemBlockParam 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 MidConversationSystemBlockParam.Builder builder()
Returns a mutable builder for constructing an instance of MidConversationSystemBlockParam.
The following fields are required:
.content()
-
-
-
-