Class: Anthropic::Models::Beta::BetaContextManagementCapability
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::BetaContextManagementCapability
- Defined in:
- lib/anthropic/models/beta/beta_context_management_capability.rb,
sig/anthropic/models/beta/beta_context_management_capability.rbs
Instance Attribute Summary collapse
-
#clear_thinking_20251015 ⇒ Anthropic::Models::Beta::BetaCapabilitySupport?
Whether the clear_thinking_20251015 strategy is supported.
-
#clear_tool_uses_20250919 ⇒ Anthropic::Models::Beta::BetaCapabilitySupport?
Whether the clear_tool_uses_20250919 strategy is supported.
-
#compact_20260112 ⇒ Anthropic::Models::Beta::BetaCapabilitySupport?
Whether the compact_20260112 strategy is supported.
-
#supported ⇒ Boolean
Whether this capability is supported by the model.
Instance Method Summary collapse
-
#initialize ⇒ BetaContextManagementCapability
constructor
A new instance of BetaContextManagementCapability.
- #to_hash ⇒ { :clear_thinking_20251015 => Anthropic::Beta::BetaCapabilitySupport?, :clear_tool_uses_20250919 => Anthropic::Beta::BetaCapabilitySupport?, :compact_20260112 => Anthropic::Beta::BetaCapabilitySupport?, supported: bool }
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, 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
#initialize ⇒ BetaContextManagementCapability
Returns a new instance of BetaContextManagementCapability.
23 24 25 26 27 28 |
# File 'sig/anthropic/models/beta/beta_context_management_capability.rbs', line 23
def initialize: (
clear_thinking_20251015: Anthropic::Beta::BetaCapabilitySupport?,
clear_tool_uses_20250919: Anthropic::Beta::BetaCapabilitySupport?,
compact_20260112: Anthropic::Beta::BetaCapabilitySupport?,
supported: bool
) -> void
|
Instance Attribute Details
#clear_thinking_20251015 ⇒ Anthropic::Models::Beta::BetaCapabilitySupport?
Whether the clear_thinking_20251015 strategy is supported.
11 |
# File 'lib/anthropic/models/beta/beta_context_management_capability.rb', line 11 required :clear_thinking_20251015, -> { Anthropic::Beta::BetaCapabilitySupport }, nil?: true |
#clear_tool_uses_20250919 ⇒ Anthropic::Models::Beta::BetaCapabilitySupport?
Whether the clear_tool_uses_20250919 strategy is supported.
17 |
# File 'lib/anthropic/models/beta/beta_context_management_capability.rb', line 17 required :clear_tool_uses_20250919, -> { Anthropic::Beta::BetaCapabilitySupport }, nil?: true |
#compact_20260112 ⇒ Anthropic::Models::Beta::BetaCapabilitySupport?
Whether the compact_20260112 strategy is supported.
23 |
# File 'lib/anthropic/models/beta/beta_context_management_capability.rb', line 23 required :compact_20260112, -> { Anthropic::Beta::BetaCapabilitySupport }, nil?: true |
Instance Method Details
#to_hash ⇒ { :clear_thinking_20251015 => Anthropic::Beta::BetaCapabilitySupport?, :clear_tool_uses_20250919 => Anthropic::Beta::BetaCapabilitySupport?, :compact_20260112 => Anthropic::Beta::BetaCapabilitySupport?, supported: bool }
30 31 32 33 34 35 |
# File 'sig/anthropic/models/beta/beta_context_management_capability.rbs', line 30
def to_hash: -> {
:clear_thinking_20251015 => Anthropic::Beta::BetaCapabilitySupport?,
:clear_tool_uses_20250919 => Anthropic::Beta::BetaCapabilitySupport?,
:compact_20260112 => Anthropic::Beta::BetaCapabilitySupport?,
supported: bool
}
|