| 1 |
from __future__ import annotations |
| 2 |
|
| 3 |
from typing import Optional |
| 4 |
from typing_extensions import Required, TypedDict |
| 5 |
|
| 6 |
from .._types import FileTypes, SequenceNotStr |
| 7 |
|
| 8 |
__all__ = ["SkillCreateParams"] |
| 9 |
|
| 10 |
|
| 11 |
class SkillCreateParams(TypedDict, total=False): |
| 12 |
files: Required[SequenceNotStr[FileTypes]] |
| 13 |
"""Files to upload for the skill. |
| 14 |
|
| 15 |
All files must be in the same top-level directory and must include a SKILL.md |
| 16 |
file at the root of that directory. |
| 17 |
""" |
| 18 |
|
| 19 |
display_name: Optional[str] |
| 20 |
"""Human-readable, single-line label for the Skill. |
| 21 |
|
| 22 |
Maximum 255 characters. Always set: derived from the SKILL.md frontmatter `name` |
| 23 |
when omitted at creation. Not unique. |
| 24 |
""" |
| 25 |
|
| 26 |
workspace_id: str |
| 27 |
"""Optional header to select the Workspace for this request. |
| 28 |
|
| 29 |
The value is a Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`). |
| 30 |
|
| 31 |
Only needed for credentials that can act on more than one Workspace. A |
| 32 |
credential that belongs to a specific Workspace may omit it; if sent, it must |
| 33 |
match that Workspace. |
| 34 |
""" |