Class: Anthropic::Models::Beta::BetaCompact20260112Edit

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/beta_compact_20260112_edit.rb

Instance Attribute Summary collapse

Method Summary

Methods inherited from Internal::Type::BaseModel

#==, ==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, #initialize, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

This class inherits a constructor from Anthropic::Internal::Type::BaseModel

Instance Attribute Details

#instructionsString?

Additional instructions for summarization.

Returns:

  • (String, nil)


16
# File 'lib/anthropic/models/beta/beta_compact_20260112_edit.rb', line 16

optional :instructions, String, nil?: true

#pause_after_compactionBoolean?

Whether to pause after compaction and return the compaction block to the user.

Returns:



22
# File 'lib/anthropic/models/beta/beta_compact_20260112_edit.rb', line 22

optional :pause_after_compaction, Anthropic::Internal::Type::Boolean

#triggerAnthropic::Models::Beta::BetaInputTokensTrigger?

When to trigger compaction. Defaults to 150000 input tokens.



28
# File 'lib/anthropic/models/beta/beta_compact_20260112_edit.rb', line 28

optional :trigger, -> { Anthropic::Beta::BetaInputTokensTrigger }, nil?: true

#typeSymbol, :compact_20260112

Returns:

  • (Symbol, :compact_20260112)


10
# File 'lib/anthropic/models/beta/beta_compact_20260112_edit.rb', line 10

required :type, const: :compact_20260112