Class: Anthropic::Models::Beta::BetaSkill
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::BetaSkill
- Defined in:
- lib/anthropic/models/beta/beta_skill.rb,
sig/anthropic/models/beta/beta_skill.rbs
Overview
Instance Attribute Summary collapse
-
#created_at ⇒ Time
ISO 8601 timestamp of when the skill was created.
-
#display_name ⇒ String
Human-readable, single-line label for the Skill.
-
#id ⇒ String
Unique identifier for the skill.
-
#latest_version_id ⇒ String
ID of the newest Skill Version — what
latestreferences resolve to. -
#source ⇒ Anthropic::Models::Beta::BetaSkillSource
Where the Skill comes from.
-
#type ⇒ Symbol, :skill
Object type.
-
#updated_at ⇒ Time
ISO 8601 timestamp of when the skill was last updated.
Instance Method Summary collapse
- #initialize ⇒ Object constructor
- #to_hash ⇒ {
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 ⇒ Object
32 |
# File 'sig/anthropic/models/beta/beta_skill.rbs', line 32
def initialize: (
|
Instance Attribute Details
#created_at ⇒ Time
ISO 8601 timestamp of when the skill was created.
20 |
# File 'lib/anthropic/models/beta/beta_skill.rb', line 20 required :created_at, Time |
#display_name ⇒ String
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.
28 |
# File 'lib/anthropic/models/beta/beta_skill.rb', line 28 required :display_name, String |
#id ⇒ String
Unique identifier for the skill.
The format and length of IDs may change over time.
14 |
# File 'lib/anthropic/models/beta/beta_skill.rb', line 14 required :id, String |
#latest_version_id ⇒ String
ID of the newest Skill Version — what latest references resolve to. Always
set: a Skill holds at least one version.
35 |
# File 'lib/anthropic/models/beta/beta_skill.rb', line 35 required :latest_version_id, String |
#source ⇒ Anthropic::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
48 |
# File 'lib/anthropic/models/beta/beta_skill.rb', line 48 required :source, -> { Anthropic::Beta::BetaSkillSource } |
#type ⇒ Symbol, :skill
Object type.
For Skills, this is always "skill".
56 |
# File 'lib/anthropic/models/beta/beta_skill.rb', line 56 required :type, const: :skill |
#updated_at ⇒ Time
ISO 8601 timestamp of when the skill was last updated.
62 |
# File 'lib/anthropic/models/beta/beta_skill.rb', line 62 required :updated_at, Time |
Instance Method Details
#to_hash ⇒ {
42 |
# File 'sig/anthropic/models/beta/beta_skill.rbs', line 42
def to_hash: -> {
|