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