|
3 | 3 | from typing import List |
4 | 4 |
|
5 | 5 | from .._models import BaseModel |
| 6 | +from .agent_skill import AgentSkill |
6 | 7 |
|
7 | | -__all__ = ["AgentListResponse", "Agent", "AgentVariant", "AgentVariantEnvironment", "AgentVariantSource"] |
8 | | - |
9 | | - |
10 | | -class AgentVariantEnvironment(BaseModel): |
11 | | - name: str |
12 | | - """Human-readable name of the environment""" |
13 | | - |
14 | | - uid: str |
15 | | - """Unique identifier for the environment""" |
16 | | - |
17 | | - |
18 | | -class AgentVariantSource(BaseModel): |
19 | | - name: str |
20 | | - """GitHub repository name""" |
21 | | - |
22 | | - owner: str |
23 | | - """GitHub repository owner""" |
24 | | - |
25 | | - skill_path: str |
26 | | - """Path to the skill definition file within the repository""" |
27 | | - |
28 | | - |
29 | | -class AgentVariant(BaseModel): |
30 | | - id: str |
31 | | - """ |
32 | | - Stable identifier for this skill variant. Format: "{owner}/{repo}:{skill_path}" |
33 | | - Example: "warpdotdev/warp-server:.claude/skills/deploy/SKILL.md" |
34 | | - """ |
35 | | - |
36 | | - base_prompt: str |
37 | | - """Base prompt/instructions for the agent""" |
38 | | - |
39 | | - description: str |
40 | | - """Description of the agent variant""" |
41 | | - |
42 | | - environments: List[AgentVariantEnvironment] |
43 | | - """Environments where this agent variant is available""" |
44 | | - |
45 | | - source: AgentVariantSource |
46 | | - |
47 | | - |
48 | | -class Agent(BaseModel): |
49 | | - name: str |
50 | | - """Human-readable name of the agent""" |
51 | | - |
52 | | - variants: List[AgentVariant] |
53 | | - """Available variants of this agent""" |
| 8 | +__all__ = ["AgentListResponse"] |
54 | 9 |
|
55 | 10 |
|
56 | 11 | class AgentListResponse(BaseModel): |
57 | | - agents: List[Agent] |
| 12 | + agents: List[AgentSkill] |
58 | 13 | """List of available agents""" |
0 commit comments