Class: Anthropic::Models::EffortCapability
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::EffortCapability
- Defined in:
- lib/anthropic/models/effort_capability.rb,
sig/anthropic/models/effort_capability.rbs
Instance Attribute Summary collapse
-
#high ⇒ Anthropic::Models::CapabilitySupport
Whether the model supports high effort level.
-
#low ⇒ Anthropic::Models::CapabilitySupport
Whether the model supports low effort level.
-
#max ⇒ Anthropic::Models::CapabilitySupport
Whether the model supports max effort level.
-
#medium ⇒ Anthropic::Models::CapabilitySupport
Whether the model supports medium effort level.
-
#supported ⇒ Boolean
Whether this capability is supported by the model.
-
#xhigh ⇒ Anthropic::Models::CapabilitySupport?
Whether the model supports xhigh effort level.
Instance Method Summary collapse
-
#initialize(high:, low:, max:, medium:, supported:, xhigh:) ⇒ EffortCapability
constructor
Effort (reasoning_effort) capability details.
- #to_hash ⇒ { high: Anthropic::CapabilitySupport, low: Anthropic::CapabilitySupport, max: Anthropic::CapabilitySupport, medium: Anthropic::CapabilitySupport, supported: bool, xhigh: Anthropic::CapabilitySupport? }
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(high:, low:, max:, medium:, supported:, xhigh:) ⇒ EffortCapability
Effort (reasoning_effort) capability details.
|
|
# File 'lib/anthropic/models/effort_capability.rb', line 42
|
Instance Attribute Details
#high ⇒ Anthropic::Models::CapabilitySupport
Whether the model supports high effort level.
10 |
# File 'lib/anthropic/models/effort_capability.rb', line 10 required :high, -> { Anthropic::CapabilitySupport } |
#low ⇒ Anthropic::Models::CapabilitySupport
Whether the model supports low effort level.
16 |
# File 'lib/anthropic/models/effort_capability.rb', line 16 required :low, -> { Anthropic::CapabilitySupport } |
#max ⇒ Anthropic::Models::CapabilitySupport
Whether the model supports max effort level.
22 |
# File 'lib/anthropic/models/effort_capability.rb', line 22 required :max, -> { Anthropic::CapabilitySupport } |
#medium ⇒ Anthropic::Models::CapabilitySupport
Whether the model supports medium effort level.
28 |
# File 'lib/anthropic/models/effort_capability.rb', line 28 required :medium, -> { Anthropic::CapabilitySupport } |
#supported ⇒ Boolean
Whether this capability is supported by the model.
34 |
# File 'lib/anthropic/models/effort_capability.rb', line 34 required :supported, Anthropic::Internal::Type::Boolean |
#xhigh ⇒ Anthropic::Models::CapabilitySupport?
Whether the model supports xhigh effort level.
40 |
# File 'lib/anthropic/models/effort_capability.rb', line 40 required :xhigh, -> { Anthropic::CapabilitySupport }, nil?: true |
Instance Method Details
#to_hash ⇒ { high: Anthropic::CapabilitySupport, low: Anthropic::CapabilitySupport, max: Anthropic::CapabilitySupport, medium: Anthropic::CapabilitySupport, supported: bool, xhigh: Anthropic::CapabilitySupport? }
35 36 37 38 39 40 41 42 |
# File 'sig/anthropic/models/effort_capability.rbs', line 35
def to_hash: -> {
high: Anthropic::CapabilitySupport,
low: Anthropic::CapabilitySupport,
max: Anthropic::CapabilitySupport,
medium: Anthropic::CapabilitySupport,
supported: bool,
xhigh: Anthropic::CapabilitySupport?
}
|