Class: Anthropic::Models::Beta::BetaSkill

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

Overview

See Also:

  • Anthropic::Resources::Beta::Skills#create

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

#initializeObject



32
# File 'sig/anthropic/models/beta/beta_skill.rbs', line 32

def initialize: (

Instance Attribute Details

#created_atTime

ISO 8601 timestamp of when the skill was created.

Parameters:

  • value (Time)

Returns:

  • (Time)


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

required :created_at, Time

#display_nameString

Human-readable, single-line label for the Skill. Maximum 255 characters. Always set: derived from the SKILL.md frontmatter name when omitted at creation. Not unique.

Parameters:

  • value (String)

Returns:

  • (String)


28
# File 'lib/anthropic/models/beta/beta_skill.rb', line 28

required :display_name, String

#idString

Unique identifier for the skill.

The format and length of IDs may change over time.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :id, String

#latest_version_idString

ID of the newest Skill Version — what latest references resolve to. Always set: a Skill holds at least one version.

Parameters:

  • value (String)

Returns:

  • (String)


35
# File 'lib/anthropic/models/beta/beta_skill.rb', line 35

required :latest_version_id, String

#sourceAnthropic::Models::Beta::BetaSkillSource

Where the Skill comes from.

Possible values:

  • "custom": authored by the platform user; private to their workspace
  • "anthropic": published by Anthropic; shared and read-only
  • "anthropic_example": Anthropic-published sample Skill
  • "plugin": resolved from an installed plugin

Parameters:

  • value (Anthropic::Beta::BetaSkillSource)

Returns:



48
# File 'lib/anthropic/models/beta/beta_skill.rb', line 48

required :source, -> { Anthropic::Beta::BetaSkillSource }

#typeSymbol, :skill

Object type.

For Skills, this is always "skill".

Parameters:

  • value (:skill)

Returns:

  • (Symbol, :skill)


56
# File 'lib/anthropic/models/beta/beta_skill.rb', line 56

required :type, const: :skill

#updated_atTime

ISO 8601 timestamp of when the skill was last updated.

Parameters:

  • value (Time)

Returns:

  • (Time)


62
# File 'lib/anthropic/models/beta/beta_skill.rb', line 62

required :updated_at, Time

Instance Method Details

#to_hash{

Returns:

  • ({)


42
# File 'sig/anthropic/models/beta/beta_skill.rbs', line 42

def to_hash: -> {