Class BetaClearToolUses20250919Edit
-
- All Implemented Interfaces:
public final class BetaClearToolUses20250919Edit
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaClearToolUses20250919Edit.BuilderA builder for BetaClearToolUses20250919Edit.
public final classBetaClearToolUses20250919Edit.ClearToolInputsWhether to clear all tool inputs (bool) or specific tool inputs to clear (list)
public final classBetaClearToolUses20250919Edit.TriggerCondition that triggers the context management strategy
-
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("clear_tool_uses_20250919")final Optional<BetaInputTokensClearAtLeast>clearAtLeast()Minimum number of tokens that must be cleared when triggered. final Optional<BetaClearToolUses20250919Edit.ClearToolInputs>clearToolInputs()Whether to clear all tool inputs (bool) or specific tool inputs to clear (list) final Optional<List<String>>excludeTools()Tool names whose uses are preserved from clearing final Optional<BetaToolUsesKeep>keep()Number of tool uses to retain in the conversation final Optional<BetaClearToolUses20250919Edit.Trigger>trigger()Condition that triggers the context management strategy final JsonField<BetaInputTokensClearAtLeast>_clearAtLeast()Returns the raw JSON value of clearAtLeast. final JsonField<BetaClearToolUses20250919Edit.ClearToolInputs>_clearToolInputs()Returns the raw JSON value of clearToolInputs. final JsonField<List<String>>_excludeTools()Returns the raw JSON value of excludeTools. final JsonField<BetaToolUsesKeep>_keep()Returns the raw JSON value of keep. final JsonField<BetaClearToolUses20250919Edit.Trigger>_trigger()Returns the raw JSON value of trigger. final Map<String, JsonValue>_additionalProperties()final BetaClearToolUses20250919Edit.BuildertoBuilder()final BetaClearToolUses20250919Editvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaClearToolUses20250919Edit.Builderbuilder()Returns a mutable builder for constructing an instance of BetaClearToolUses20250919Edit. -
-
Method Detail
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("clear_tool_uses_20250919")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
clearAtLeast
final Optional<BetaInputTokensClearAtLeast> clearAtLeast()
Minimum number of tokens that must be cleared when triggered. Context will only be modified if at least this many tokens can be removed.
-
clearToolInputs
final Optional<BetaClearToolUses20250919Edit.ClearToolInputs> clearToolInputs()
Whether to clear all tool inputs (bool) or specific tool inputs to clear (list)
-
excludeTools
final Optional<List<String>> excludeTools()
Tool names whose uses are preserved from clearing
-
keep
final Optional<BetaToolUsesKeep> keep()
Number of tool uses to retain in the conversation
-
trigger
final Optional<BetaClearToolUses20250919Edit.Trigger> trigger()
Condition that triggers the context management strategy
-
_clearAtLeast
final JsonField<BetaInputTokensClearAtLeast> _clearAtLeast()
Returns the raw JSON value of clearAtLeast.
Unlike clearAtLeast, this method doesn't throw if the JSON field has an unexpected type.
-
_clearToolInputs
final JsonField<BetaClearToolUses20250919Edit.ClearToolInputs> _clearToolInputs()
Returns the raw JSON value of clearToolInputs.
Unlike clearToolInputs, this method doesn't throw if the JSON field has an unexpected type.
-
_excludeTools
final JsonField<List<String>> _excludeTools()
Returns the raw JSON value of excludeTools.
Unlike excludeTools, this method doesn't throw if the JSON field has an unexpected type.
-
_keep
final JsonField<BetaToolUsesKeep> _keep()
Returns the raw JSON value of keep.
Unlike keep, this method doesn't throw if the JSON field has an unexpected type.
-
_trigger
final JsonField<BetaClearToolUses20250919Edit.Trigger> _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 BetaClearToolUses20250919Edit.Builder toBuilder()
-
validate
final BetaClearToolUses20250919Edit 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 BetaClearToolUses20250919Edit.Builder builder()
Returns a mutable builder for constructing an instance of BetaClearToolUses20250919Edit.
-
-
-
-