Class BetaClearToolUses20250919Edit.Builder
-
- All Implemented Interfaces:
public final class BetaClearToolUses20250919Edit.BuilderA builder for BetaClearToolUses20250919Edit.
-
-
Method Summary
-
-
Method Detail
-
type
final BetaClearToolUses20250919Edit.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("clear_tool_uses_20250919")This method is primarily for setting the field to an undocumented or not yet supported value.
-
clearAtLeast
final BetaClearToolUses20250919Edit.Builder clearAtLeast(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.
-
clearAtLeast
final BetaClearToolUses20250919Edit.Builder clearAtLeast(Optional<BetaInputTokensClearAtLeast> clearAtLeast)
Alias for calling Builder.clearAtLeast with
clearAtLeast.orElse(null).
-
clearAtLeast
final BetaClearToolUses20250919Edit.Builder clearAtLeast(JsonField<BetaInputTokensClearAtLeast> clearAtLeast)
Sets Builder.clearAtLeast to an arbitrary JSON value.
You should usually call Builder.clearAtLeast with a well-typed BetaInputTokensClearAtLeast value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
clearToolInputs
final BetaClearToolUses20250919Edit.Builder clearToolInputs(BetaClearToolUses20250919Edit.ClearToolInputs clearToolInputs)
Whether to clear all tool inputs (bool) or specific tool inputs to clear (list)
-
clearToolInputs
final BetaClearToolUses20250919Edit.Builder clearToolInputs(Optional<BetaClearToolUses20250919Edit.ClearToolInputs> clearToolInputs)
Alias for calling Builder.clearToolInputs with
clearToolInputs.orElse(null).
-
clearToolInputs
final BetaClearToolUses20250919Edit.Builder clearToolInputs(JsonField<BetaClearToolUses20250919Edit.ClearToolInputs> clearToolInputs)
Sets Builder.clearToolInputs to an arbitrary JSON value.
You should usually call Builder.clearToolInputs with a well-typed ClearToolInputs value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
clearToolInputs
final BetaClearToolUses20250919Edit.Builder clearToolInputs(Boolean bool)
Alias for calling clearToolInputs with
ClearToolInputs.ofBool(bool).
-
clearToolInputsOfStrings
final BetaClearToolUses20250919Edit.Builder clearToolInputsOfStrings(List<String> strings)
Alias for calling clearToolInputs with
ClearToolInputs.ofStrings(strings).
-
excludeTools
final BetaClearToolUses20250919Edit.Builder excludeTools(List<String> excludeTools)
Tool names whose uses are preserved from clearing
-
excludeTools
final BetaClearToolUses20250919Edit.Builder excludeTools(Optional<List<String>> excludeTools)
Alias for calling Builder.excludeTools with
excludeTools.orElse(null).
-
excludeTools
final BetaClearToolUses20250919Edit.Builder excludeTools(JsonField<List<String>> excludeTools)
Sets Builder.excludeTools to an arbitrary JSON value.
You should usually call Builder.excludeTools with a well-typed
List<String>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addExcludeTool
final BetaClearToolUses20250919Edit.Builder addExcludeTool(String excludeTool)
Adds a single String to excludeTools.
-
keep
final BetaClearToolUses20250919Edit.Builder keep(BetaToolUsesKeep keep)
Number of tool uses to retain in the conversation
-
keep
final BetaClearToolUses20250919Edit.Builder keep(JsonField<BetaToolUsesKeep> keep)
Sets Builder.keep to an arbitrary JSON value.
You should usually call Builder.keep with a well-typed BetaToolUsesKeep value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
toolUsesKeep
final BetaClearToolUses20250919Edit.Builder toolUsesKeep(Long value)
Alias for calling keep with the following:
BetaToolUsesKeep.builder() .value(value) .build()
-
trigger
final BetaClearToolUses20250919Edit.Builder trigger(BetaClearToolUses20250919Edit.Trigger trigger)
Condition that triggers the context management strategy
-
trigger
final BetaClearToolUses20250919Edit.Builder trigger(JsonField<BetaClearToolUses20250919Edit.Trigger> trigger)
Sets Builder.trigger to an arbitrary JSON value.
You should usually call Builder.trigger with a well-typed Trigger value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
trigger
final BetaClearToolUses20250919Edit.Builder trigger(BetaInputTokensTrigger inputTokens)
Alias for calling trigger with
Trigger.ofInputTokens(inputTokens).
-
trigger
final BetaClearToolUses20250919Edit.Builder trigger(BetaToolUsesTrigger toolUses)
Alias for calling trigger with
Trigger.ofToolUses(toolUses).
-
inputTokensTrigger
final BetaClearToolUses20250919Edit.Builder inputTokensTrigger(Long value)
Alias for calling trigger with the following:
BetaInputTokensTrigger.builder() .value(value) .build()
-
toolUsesTrigger
final BetaClearToolUses20250919Edit.Builder toolUsesTrigger(Long value)
Alias for calling trigger with the following:
BetaToolUsesTrigger.builder() .value(value) .build()
-
additionalProperties
final BetaClearToolUses20250919Edit.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaClearToolUses20250919Edit.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaClearToolUses20250919Edit.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaClearToolUses20250919Edit.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaClearToolUses20250919Edit.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaClearToolUses20250919Edit build()
Returns an immutable instance of BetaClearToolUses20250919Edit.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-