Skip to content

Commit 052b48a

Browse files
feat(skills): add organization-level skills support
1 parent 830d7e8 commit 052b48a

File tree

7 files changed

+22
-2
lines changed

7 files changed

+22
-2
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 160
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-de9c92c5d163d0aaf84f2638cda7e3715a36bf85c5dbe89cea6657fe94201b07.yml
3-
openapi_spec_hash: d010871ad88365048994b21eed2c36d9
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-643adebfc36ae5f3c31dc2305867f8259c9ec13420989ec37b78cdf87283a279.yml
3+
openapi_spec_hash: 5d04ebe79f446da15639adddf9bffc9b
44
config_hash: 8e1b089e9f5af438fd56b523014af4f2

src/gitpod/resources/agents.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ def create_prompt(
120120
command: str | Omit = omit,
121121
description: str | Omit = omit,
122122
is_command: bool | Omit = omit,
123+
is_skill: bool | Omit = omit,
123124
is_template: bool | Omit = omit,
124125
name: str | Omit = omit,
125126
prompt: str | Omit = omit,
@@ -154,6 +155,7 @@ def create_prompt(
154155
"command": command,
155156
"description": description,
156157
"is_command": is_command,
158+
"is_skill": is_skill,
157159
"is_template": is_template,
158160
"name": name,
159161
"prompt": prompt,
@@ -768,6 +770,7 @@ async def create_prompt(
768770
command: str | Omit = omit,
769771
description: str | Omit = omit,
770772
is_command: bool | Omit = omit,
773+
is_skill: bool | Omit = omit,
771774
is_template: bool | Omit = omit,
772775
name: str | Omit = omit,
773776
prompt: str | Omit = omit,
@@ -802,6 +805,7 @@ async def create_prompt(
802805
"command": command,
803806
"description": description,
804807
"is_command": is_command,
808+
"is_skill": is_skill,
805809
"is_template": is_template,
806810
"name": name,
807811
"prompt": prompt,

src/gitpod/types/agent_create_prompt_params.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ class AgentCreatePromptParams(TypedDict, total=False):
1616

1717
is_command: Annotated[bool, PropertyInfo(alias="isCommand")]
1818

19+
is_skill: Annotated[bool, PropertyInfo(alias="isSkill")]
20+
1921
is_template: Annotated[bool, PropertyInfo(alias="isTemplate")]
2022

2123
name: str

src/gitpod/types/agent_list_prompts_params.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ class Filter(TypedDict, total=False):
2626

2727
is_command: Annotated[bool, PropertyInfo(alias="isCommand")]
2828

29+
is_skill: Annotated[bool, PropertyInfo(alias="isSkill")]
30+
2931
is_template: Annotated[bool, PropertyInfo(alias="isTemplate")]
3032

3133

src/gitpod/types/agent_update_prompt_params.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ class Spec(TypedDict, total=False):
4040
is_command: Annotated[Optional[bool], PropertyInfo(alias="isCommand")]
4141
"""Whether this prompt is a command"""
4242

43+
is_skill: Annotated[Optional[bool], PropertyInfo(alias="isSkill")]
44+
"""Whether this prompt is a skill"""
45+
4346
is_template: Annotated[Optional[bool], PropertyInfo(alias="isTemplate")]
4447
"""Whether this prompt is a template"""
4548

src/gitpod/types/prompt_spec.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ class PromptSpec(BaseModel):
1616
is_command: Optional[bool] = FieldInfo(alias="isCommand", default=None)
1717
"""is_command indicates if this prompt is a command"""
1818

19+
is_skill: Optional[bool] = FieldInfo(alias="isSkill", default=None)
20+
"""is_skill indicates if this prompt is a skill (workflow instructions for agents)"""
21+
1922
is_template: Optional[bool] = FieldInfo(alias="isTemplate", default=None)
2023
"""is_template indicates if this prompt is a template"""
2124

tests/api_resources/test_agents.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ def test_method_create_prompt_with_all_params(self, client: Gitpod) -> None:
7777
command="command",
7878
description="x",
7979
is_command=True,
80+
is_skill=True,
8081
is_template=True,
8182
name="x",
8283
prompt="x",
@@ -242,6 +243,7 @@ def test_method_list_prompts_with_all_params(self, client: Gitpod) -> None:
242243
"command": "command",
243244
"command_prefix": "commandPrefix",
244245
"is_command": True,
246+
"is_skill": True,
245247
"is_template": True,
246248
},
247249
pagination={
@@ -501,6 +503,7 @@ def test_method_update_prompt_with_all_params(self, client: Gitpod) -> None:
501503
spec={
502504
"command": "command",
503505
"is_command": True,
506+
"is_skill": True,
504507
"is_template": True,
505508
"prompt": "prompt",
506509
},
@@ -584,6 +587,7 @@ async def test_method_create_prompt_with_all_params(self, async_client: AsyncGit
584587
command="command",
585588
description="x",
586589
is_command=True,
590+
is_skill=True,
587591
is_template=True,
588592
name="x",
589593
prompt="x",
@@ -749,6 +753,7 @@ async def test_method_list_prompts_with_all_params(self, async_client: AsyncGitp
749753
"command": "command",
750754
"command_prefix": "commandPrefix",
751755
"is_command": True,
756+
"is_skill": True,
752757
"is_template": True,
753758
},
754759
pagination={
@@ -1008,6 +1013,7 @@ async def test_method_update_prompt_with_all_params(self, async_client: AsyncGit
10081013
spec={
10091014
"command": "command",
10101015
"is_command": True,
1016+
"is_skill": True,
10111017
"is_template": True,
10121018
"prompt": "prompt",
10131019
},

0 commit comments

Comments
 (0)