Class: Anthropic::Models::Beta::BetaManagedAgentsCustomSkill

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/beta_managed_agents_custom_skill.rb,
sig/anthropic/models/beta/beta_managed_agents_custom_skill.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 ⇒ BetaManagedAgentsCustomSkill

Returns a new instance of BetaManagedAgentsCustomSkill.

Parameters:

  • skill_id: (String)
  • version: (String)
  • type: (:custom)


16
17
18
19
20
# File 'sig/anthropic/models/beta/beta_managed_agents_custom_skill.rbs', line 16

def initialize: (
  skill_id: String,
  version: String,
  ?type: :custom
) -> void

Instance Attribute Details

#skill_id ⇒ String

Parameters:

  • value (String)

Returns:

  • (String)


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

required :skill_id, String

#type ⇒ Symbol, :custom

Parameters:

  • value (:custom)

Returns:

  • (Symbol, :custom)


15
# File 'lib/anthropic/models/beta/beta_managed_agents_custom_skill.rb', line 15

required :type, const: :custom

#version ⇒ String

Parameters:

  • value (String)

Returns:

  • (String)


20
# File 'lib/anthropic/models/beta/beta_managed_agents_custom_skill.rb', line 20

required :version, String

Instance Method Details

#to_hash ⇒ { skill_id: String, type: :custom, version: String }

Returns:

  • ({ skill_id: String, type: :custom, version: String })


22
# File 'sig/anthropic/models/beta/beta_managed_agents_custom_skill.rbs', line 22

def to_hash: -> { skill_id: String, type: :custom, version: String }