Class BetaCompactionConfig
-
- All Implemented Interfaces:
public final class BetaCompactionConfigCompact the whole conversation and return a signed
compactionblock, alone, that a later request sends back first inmessages, in place of the messages it summarizes. There is no trigger and no pause flag: sending the parameter compacts, and nothing is sampled after the block.The summarization prompt is the server's own unless
instructionsare given, which then replace it for this request; a value that is empty or only whitespace counts as absent.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaCompactionConfig.BuilderA builder for BetaCompactionConfig.
-
Method Summary
Modifier and Type Method Description final Optional<String>instructions()Replaces the server's default summarization prompt for this request. final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("summarize")final JsonField<String>_instructions()Returns the raw JSON value of instructions. final Map<String, JsonValue>_additionalProperties()final BetaCompactionConfig.BuildertoBuilder()final BetaCompactionConfigvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaCompactionConfig.Builderbuilder()Returns a mutable builder for constructing an instance of BetaCompactionConfig. -
-
Method Detail
-
instructions
final Optional<String> instructions()
Replaces the server's default summarization prompt for this request. An empty or whitespace-only value counts as absent.
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("summarize")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_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.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaCompactionConfig.Builder toBuilder()
-
validate
final BetaCompactionConfig 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 BetaCompactionConfig.Builder builder()
Returns a mutable builder for constructing an instance of BetaCompactionConfig.
-
-
-
-