Skip to content

Commit 1b78cec

Browse files
feat(api): add exclude_prompt_content parameter to agents list_prompts method
1 parent b058adf commit 1b78cec

3 files changed

Lines changed: 11 additions & 2 deletions

File tree

‎.stats.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 175
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-cb8a5fb9581bfc498c35130cbe1fc78ca7249282b44af108c6cd3fccaf337265.yml
3-
openapi_spec_hash: abeeb3d26bbf9b8a9b6704f2709ade3b
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-e4a03098a3a5e4104a7d4feb50e32642185be6792e839f19f17b95af1f0fea93.yml
3+
openapi_spec_hash: 34c3f9d3172d66b7c9f788d282529681
44
config_hash: e276b61fe25bd7cbb0ddad1a103108e8

‎src/gitpod/types/agent_list_prompts_params.py‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ class Filter(TypedDict, total=False):
2424

2525
command_prefix: Annotated[str, PropertyInfo(alias="commandPrefix")]
2626

27+
exclude_prompt_content: Annotated[bool, PropertyInfo(alias="excludePromptContent")]
28+
"""
29+
exclude_prompt_content omits the large spec.prompt text from the response. Other
30+
spec fields (is_template, is_command, command, is_skill) are still returned. Use
31+
GetPrompt to retrieve the full prompt content when needed.
32+
"""
33+
2734
is_command: Annotated[bool, PropertyInfo(alias="isCommand")]
2835

2936
is_skill: Annotated[bool, PropertyInfo(alias="isSkill")]

‎tests/api_resources/test_agents.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ def test_method_list_prompts_with_all_params(self, client: Gitpod) -> None:
243243
filter={
244244
"command": "command",
245245
"command_prefix": "commandPrefix",
246+
"exclude_prompt_content": True,
246247
"is_command": True,
247248
"is_skill": True,
248249
"is_template": True,
@@ -771,6 +772,7 @@ async def test_method_list_prompts_with_all_params(self, async_client: AsyncGitp
771772
filter={
772773
"command": "command",
773774
"command_prefix": "commandPrefix",
775+
"exclude_prompt_content": True,
774776
"is_command": True,
775777
"is_skill": True,
776778
"is_template": True,

0 commit comments

Comments
 (0)