Class BetaCompact20260112Edit.Builder
-
- All Implemented Interfaces:
public final class BetaCompact20260112Edit.BuilderA builder for BetaCompact20260112Edit.
-
-
Method Summary
-
-
Method Detail
-
type
final BetaCompact20260112Edit.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("compact_20260112")This method is primarily for setting the field to an undocumented or not yet supported value.
-
instructions
final BetaCompact20260112Edit.Builder instructions(String instructions)
Additional instructions for summarization.
-
instructions
final BetaCompact20260112Edit.Builder instructions(Optional<String> instructions)
Alias for calling Builder.instructions with
instructions.orElse(null).
-
instructions
final BetaCompact20260112Edit.Builder instructions(JsonField<String> instructions)
Sets Builder.instructions to an arbitrary JSON value.
You should usually call Builder.instructions with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
pauseAfterCompaction
final BetaCompact20260112Edit.Builder pauseAfterCompaction(Boolean pauseAfterCompaction)
Whether to pause after compaction and return the compaction block to the user.
-
pauseAfterCompaction
final BetaCompact20260112Edit.Builder pauseAfterCompaction(JsonField<Boolean> pauseAfterCompaction)
Sets Builder.pauseAfterCompaction to an arbitrary JSON value.
You should usually call Builder.pauseAfterCompaction with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
trigger
final BetaCompact20260112Edit.Builder trigger(BetaInputTokensTrigger trigger)
When to trigger compaction. Defaults to 150000 input tokens.
-
trigger
final BetaCompact20260112Edit.Builder trigger(Optional<BetaInputTokensTrigger> trigger)
Alias for calling Builder.trigger with
trigger.orElse(null).
-
trigger
final BetaCompact20260112Edit.Builder trigger(JsonField<BetaInputTokensTrigger> trigger)
Sets Builder.trigger to an arbitrary JSON value.
You should usually call Builder.trigger with a well-typed BetaInputTokensTrigger value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaCompact20260112Edit.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaCompact20260112Edit.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaCompact20260112Edit.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaCompact20260112Edit.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaCompact20260112Edit.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaCompact20260112Edit build()
Returns an immutable instance of BetaCompact20260112Edit.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-