Class: Anthropic::Models::ContainerParams

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

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: nil, skills: nil) ⇒ Object

Container parameters with skills to be loaded.

Parameters:

  • id (String, nil) (defaults to: nil)

    Container id

  • skills (Array<Anthropic::Models::SkillParams>, nil) (defaults to: nil)

    List of skills to load in the container



# File 'lib/anthropic/models/container_params.rb', line 18

Instance Attribute Details

#idString?

Container id

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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

optional :id, String, nil?: true

#skillsArray<Anthropic::Models::SkillParams>?

List of skills to load in the container

Parameters:

Returns:



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

optional :skills, -> { Anthropic::Internal::Type::ArrayOf[Anthropic::SkillParams] }, nil?: true

Instance Method Details

#to_hash{ id: String?, skills: ::Array[Anthropic::SkillParams]? }

Returns:



16
# File 'sig/anthropic/models/container_params.rbs', line 16

def to_hash: -> { id: String?, skills: ::Array[Anthropic::SkillParams]? }