Debian Codegraph @

src/anthropic/types/skill.py

raw
1 from datetime import datetime
2 from typing_extensions import Literal
3
4 from .._models import BaseModel
5 from .skill_source import SkillSource
6
7 __all__ = ["Skill"]
8
9
10 class Skill(BaseModel):
11 id: str
12 """Unique identifier for the skill.
13
14 The format and length of IDs may change over time.
15 """
16
17 created_at: datetime
18 """ISO 8601 timestamp of when the skill was created."""
19
20 display_name: str
21 """Human-readable, single-line label for the Skill.
22
23 Maximum 255 characters. Always set: derived from the SKILL.md frontmatter `name`
24 when omitted at creation. Not unique.
25 """
26
27 latest_version_id: str
28 """ID of the newest Skill Version — what `latest` references resolve to.
29
30 Always set: a Skill holds at least one version.
31 """
32
33 source: SkillSource
34 """Where the Skill comes from.
35
36 Possible values:
37
38 - `"custom"`: authored by the platform user; private to their workspace
39 - `"anthropic"`: published by Anthropic; shared and read-only
40 - `"anthropic_example"`: Anthropic-published sample Skill
41 - `"plugin"`: resolved from an installed plugin
42 """
43
44 type: Literal["skill"]
45 """Object type.
46
47 For Skills, this is always `"skill"`.
48 """
49
50 updated_at: datetime
51 """ISO 8601 timestamp of when the skill was last updated."""