Class: Anthropic::Models::Skill
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Skill
- Defined in:
- lib/anthropic/models/skill.rb,
sig/anthropic/models/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::SkillSource
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(id:, created_at:, display_name:, latest_version_id:, source:, updated_at:, type: :skill) ⇒ Object
constructor
Some parameter documentations has been truncated, see Skill for more details.
- #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(id:, created_at:, display_name:, latest_version_id:, source:, updated_at:, type: :skill) ⇒ Object
Some parameter documentations has been truncated, see Anthropic::Models::Skill for more details.
|
|
# File 'lib/anthropic/models/skill.rb', line 63
|
Instance Attribute Details
#created_at ⇒ Time
ISO 8601 timestamp of when the skill was created.
19 |
# File 'lib/anthropic/models/skill.rb', line 19 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.
27 |
# File 'lib/anthropic/models/skill.rb', line 27 required :display_name, String |
#id ⇒ String
Unique identifier for the skill.
The format and length of IDs may change over time.
13 |
# File 'lib/anthropic/models/skill.rb', line 13 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.
34 |
# File 'lib/anthropic/models/skill.rb', line 34 required :latest_version_id, String |
#source ⇒ Anthropic::Models::SkillSource
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
47 |
# File 'lib/anthropic/models/skill.rb', line 47 required :source, -> { Anthropic::SkillSource } |
#type ⇒ Symbol, :skill
Object type.
For Skills, this is always "skill".
55 |
# File 'lib/anthropic/models/skill.rb', line 55 required :type, const: :skill |
#updated_at ⇒ Time
ISO 8601 timestamp of when the skill was last updated.
61 |
# File 'lib/anthropic/models/skill.rb', line 61 required :updated_at, Time |
Instance Method Details
#to_hash ⇒ {
39 |
# File 'sig/anthropic/models/skill.rbs', line 39
def to_hash: -> {
|