Class: Anthropic::Models::SkillParams

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

Defined Under Namespace

Modules: Type

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(skill_id:, type:, version: nil) ⇒ void

Specification for a skill to be loaded in a container (request model).



# File 'lib/anthropic/models/skill_params.rb', line 24


Instance Attribute Details

#skill_idString

Skill ID



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

required :skill_id, String

#typeSymbol, Anthropic::Models::SkillParams::Type

Type of skill - either 'anthropic' (built-in) or 'custom' (user-defined)



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

required :type, enum: -> { Anthropic::SkillParams::Type }

#versionString?

Skill version or 'latest' for most recent version



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

optional :version, String

Instance Method Details

#to_hash{



25
# File 'sig/anthropic/models/skill_params.rbs', line 25

def to_hash: -> {