Class BetaMidConversationSystemBlockParam.Builder
-
- All Implemented Interfaces:
public final class BetaMidConversationSystemBlockParam.BuilderA builder for BetaMidConversationSystemBlockParam.
-
-
Method Summary
-
-
Method Detail
-
content
final BetaMidConversationSystemBlockParam.Builder content(List<BetaTextBlockParam> content)
System instruction text blocks.
-
content
final BetaMidConversationSystemBlockParam.Builder content(JsonField<List<BetaTextBlockParam>> content)
Sets Builder.content to an arbitrary JSON value.
You should usually call Builder.content with a well-typed
List<BetaTextBlockParam>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addContent
final BetaMidConversationSystemBlockParam.Builder addContent(BetaTextBlockParam content)
Adds a single BetaTextBlockParam to Builder.content.
-
addContent
final BetaMidConversationSystemBlockParam.Builder addContent(BetaTextBlock content)
Alias for calling addContent with
content.toParam().
-
addTextContent
final BetaMidConversationSystemBlockParam.Builder addTextContent(String text)
Alias for calling addContent with the following:
BetaTextBlockParam.builder() .text(text) .build()
-
type
final BetaMidConversationSystemBlockParam.Builder type(JsonValue type)
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("mid_conv_system")This method is primarily for setting the field to an undocumented or not yet supported value.
-
cacheControl
final BetaMidConversationSystemBlockParam.Builder cacheControl(BetaCacheControlEphemeral cacheControl)
Create a cache control breakpoint at this content block.
-
cacheControl
final BetaMidConversationSystemBlockParam.Builder cacheControl(Optional<BetaCacheControlEphemeral> cacheControl)
Alias for calling Builder.cacheControl with
cacheControl.orElse(null).
-
cacheControl
final BetaMidConversationSystemBlockParam.Builder cacheControl(JsonField<BetaCacheControlEphemeral> cacheControl)
Sets Builder.cacheControl to an arbitrary JSON value.
You should usually call Builder.cacheControl with a well-typed BetaCacheControlEphemeral value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaMidConversationSystemBlockParam.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaMidConversationSystemBlockParam.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaMidConversationSystemBlockParam.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaMidConversationSystemBlockParam.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaMidConversationSystemBlockParam.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaMidConversationSystemBlockParam build()
Returns an immutable instance of BetaMidConversationSystemBlockParam.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.content()
-
-
-
-