Class: Anthropic::Models::Beta::BetaManagedAgentsModelConfig

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/beta_managed_agents_model_config.rb,
sig/anthropic/models/beta/beta_managed_agents_model_config.rbs

Defined Under Namespace

Modules: Effort, Speed

Instance Attribute Summary collapse

Instance Method Summary collapse

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(id:, effort: nil, inference_geo: nil, speed: nil) ⇒ BetaManagedAgentsModelConfig

Model identifier and configuration.

Some parameter documentations has been truncated, see Anthropic::Models::Beta::BetaManagedAgentsModelConfig for more details.

Parameters:



# File 'lib/anthropic/models/beta/beta_managed_agents_model_config.rb', line 39

Instance Attribute Details

#effort ⇒ Anthropic::Models::Beta::BetaManagedAgentsEffortLow, ...

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.



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

optional :effort, union: -> { Anthropic::Beta::BetaManagedAgentsModelConfig::Effort }

#id ⇒ Symbol, ...

The model that will power your agent.

See models for additional details and options.

Parameters:

  • value (Anthropic::Models::Beta::beta_managed_agents_model)

Returns:



14
# File 'lib/anthropic/models/beta/beta_managed_agents_model_config.rb', line 14

required :id, union: -> { Anthropic::Beta::BetaManagedAgentsModel }

#inference_geo ⇒ String?

Geographic region for model inference. When unset, requests fall through to the workspace's default_inference_geo.

Parameters:

  • (String)

Returns:

  • (String, nil)


29
# File 'lib/anthropic/models/beta/beta_managed_agents_model_config.rb', line 29

optional :inference_geo, String

#speed ⇒ Symbol, ...

Inference speed mode. fast provides significantly faster output token generation at premium pricing. Defaults to standard. Not all models support fast; invalid combinations are rejected at create time.

Parameters:

  • (Anthropic::Models::Beta::BetaManagedAgentsModelConfig::speed)

Returns:



37
# File 'lib/anthropic/models/beta/beta_managed_agents_model_config.rb', line 37

optional :speed, enum: -> { Anthropic::Beta::BetaManagedAgentsModelConfig::Speed }

Instance Method Details

#to_hash ⇒ { id: Anthropic::Models::Beta::beta_managed_agents_model, effort: Anthropic::Models::Beta::BetaManagedAgentsModelConfig::effort, inference_geo: String, speed: Anthropic::Models::Beta::BetaManagedAgentsModelConfig::speed }

Returns:

  • ({ id: Anthropic::Models::Beta::beta_managed_agents_model, effort: Anthropic::Models::Beta::BetaManagedAgentsModelConfig::effort, inference_geo: String, speed: Anthropic::Models::Beta::BetaManagedAgentsModelConfig::speed })


40
41
42
43
44
45
# File 'sig/anthropic/models/beta/beta_managed_agents_model_config.rbs', line 40

def to_hash: -> {
  id: Anthropic::Models::Beta::beta_managed_agents_model,
  effort: Anthropic::Models::Beta::BetaManagedAgentsModelConfig::effort,
  inference_geo: String,
  speed: Anthropic::Models::Beta::BetaManagedAgentsModelConfig::speed
}