Class BetaCompact20260112Edit
-
- All Implemented Interfaces:
public final class BetaCompact20260112EditAutomatically compact older context when reaching the configured trigger threshold.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaCompact20260112Edit.BuilderA builder for BetaCompact20260112Edit.
-
Method Summary
Modifier and Type Method Description final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("compact_20260112")final Optional<String>instructions()Additional instructions for summarization. final Optional<Boolean>pauseAfterCompaction()Whether to pause after compaction and return the compaction block to the user. final Optional<BetaInputTokensTrigger>trigger()When to trigger compaction. final JsonField<String>_instructions()Returns the raw JSON value of instructions. final JsonField<Boolean>_pauseAfterCompaction()Returns the raw JSON value of pauseAfterCompaction. final JsonField<BetaInputTokensTrigger>_trigger()Returns the raw JSON value of trigger. final Map<String, JsonValue>_additionalProperties()final BetaCompact20260112Edit.BuildertoBuilder()final BetaCompact20260112Editvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaCompact20260112Edit.Builderbuilder()Returns a mutable builder for constructing an instance of BetaCompact20260112Edit. -
-
Method Detail
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("compact_20260112")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
instructions
final Optional<String> instructions()
Additional instructions for summarization.
-
pauseAfterCompaction
final Optional<Boolean> pauseAfterCompaction()
Whether to pause after compaction and return the compaction block to the user.
-
trigger
final Optional<BetaInputTokensTrigger> trigger()
When to trigger compaction. Defaults to 150000 input tokens.
-
_instructions
final JsonField<String> _instructions()
Returns the raw JSON value of instructions.
Unlike instructions, this method doesn't throw if the JSON field has an unexpected type.
-
_pauseAfterCompaction
final JsonField<Boolean> _pauseAfterCompaction()
Returns the raw JSON value of pauseAfterCompaction.
Unlike pauseAfterCompaction, this method doesn't throw if the JSON field has an unexpected type.
-
_trigger
final JsonField<BetaInputTokensTrigger> _trigger()
Returns the raw JSON value of trigger.
Unlike trigger, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaCompact20260112Edit.Builder toBuilder()
-
validate
final BetaCompact20260112Edit validate()
-
builder
final static BetaCompact20260112Edit.Builder builder()
Returns a mutable builder for constructing an instance of BetaCompact20260112Edit.
-
-
-
-