Module: Anthropic::Models::Beta::BetaManagedAgentsModelConfig::Effort
- Extended by:
- Internal::Type::Union
- Defined in:
- lib/anthropic/models/beta/beta_managed_agents_model_config.rb,
sig/anthropic/models/beta/beta_managed_agents_model_config.rbs
Overview
How hard Claude works on each inference call. One of low, medium, high,
xhigh, max. Always present; resolved to the per-model default at save time
when not supplied.
Defined Under Namespace
Modules: Type
Class Method Summary collapse
-
.new(type:, **args) ⇒ Anthropic::Models::Beta::BetaManagedAgentsEffortLow, ...
Creates a new instance of the variant class whose
typematches the given value, passing the remaining arguments to its constructor. - .values ⇒ Array<Symbol>
- .variants ⇒ Array(Anthropic::Models::Beta::BetaManagedAgentsEffortLow, Anthropic::Models::Beta::BetaManagedAgentsEffortMedium, Anthropic::Models::Beta::BetaManagedAgentsEffortHigh, Anthropic::Models::Beta::BetaManagedAgentsEffortXhigh, Anthropic::Models::Beta::BetaManagedAgentsEffortMax)
Methods included from Internal::Type::Union
==, ===, coerce, derefed_variants, dump, hash, inspect, to_sorbet_type
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Class Method Details
.new(type:) ⇒ Anthropic::Beta::BetaManagedAgentsEffortLow .new(type:) ⇒ Anthropic::Beta::BetaManagedAgentsEffortMedium .new(type:) ⇒ Anthropic::Beta::BetaManagedAgentsEffortHigh .new(type:) ⇒ Anthropic::Beta::BetaManagedAgentsEffortXhigh .new(type:) ⇒ Anthropic::Beta::BetaManagedAgentsEffortMax .new(type:) ⇒ Anthropic::Models::Beta::BetaManagedAgentsModelConfig::effort
Creates a new instance of the variant class whose type matches the given
value, passing the remaining arguments to its constructor.
103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 |
# File 'lib/anthropic/models/beta/beta_managed_agents_model_config.rb', line 103 def self.new(type:, **args) case type.to_sym when :low Anthropic::Beta::BetaManagedAgentsEffortLow.new(**args) when :medium Anthropic::Beta::BetaManagedAgentsEffortMedium.new(**args) when :high Anthropic::Beta::BetaManagedAgentsEffortHigh.new(**args) when :xhigh Anthropic::Beta::BetaManagedAgentsEffortXhigh.new(**args) when :max Anthropic::Beta::BetaManagedAgentsEffortMax.new(**args) else raise ArgumentError, "unknown type: #{type}" end end |
.values ⇒ Array<Symbol>
|
|
# File 'lib/anthropic/models/beta/beta_managed_agents_model_config.rb', line 87
|
.variants ⇒ Array(Anthropic::Models::Beta::BetaManagedAgentsEffortLow, Anthropic::Models::Beta::BetaManagedAgentsEffortMedium, Anthropic::Models::Beta::BetaManagedAgentsEffortHigh, Anthropic::Models::Beta::BetaManagedAgentsEffortXhigh, Anthropic::Models::Beta::BetaManagedAgentsEffortMax)
|
|
# File 'lib/anthropic/models/beta/beta_managed_agents_model_config.rb', line 91
|