| 1 |
from datetime import datetime |
| 2 |
from typing_extensions import Literal |
| 3 |
|
| 4 |
from ..._models import BaseModel |
| 5 |
|
| 6 |
__all__ = ["SkillVersion"] |
| 7 |
|
| 8 |
|
| 9 |
class SkillVersion(BaseModel): |
| 10 |
id: str |
| 11 |
"""Unique identifier for this Skill Version. |
| 12 |
|
| 13 |
The id addresses the version in paths and pins it in references. |
| 14 |
""" |
| 15 |
|
| 16 |
created_at: datetime |
| 17 |
"""ISO 8601 timestamp of when the skill was created.""" |
| 18 |
|
| 19 |
description: str |
| 20 |
"""Description of the skill version. |
| 21 |
|
| 22 |
This is extracted from the SKILL.md file in the skill upload. |
| 23 |
""" |
| 24 |
|
| 25 |
name: str |
| 26 |
""" |
| 27 |
The Skill's immutable kebab-case slug, set at creation from the first upload's |
| 28 |
SKILL.md frontmatter `name` (or its enclosing directory). Every later upload |
| 29 |
must resolve to the same value. Also the top-level directory of the Skill's |
| 30 |
mounted files and the base name of a downloaded archive. |
| 31 |
""" |
| 32 |
|
| 33 |
skill_id: str |
| 34 |
"""Unique identifier for the skill. |
| 35 |
|
| 36 |
The format and length of IDs may change over time. |
| 37 |
""" |
| 38 |
|
| 39 |
type: Literal["skill_version"] |
| 40 |
"""Object type. |
| 41 |
|
| 42 |
For Skill Versions, this is always `"skill_version"`. |
| 43 |
""" |