Skip to content

Commit 85f956c

Browse files
feat(api): manual updates
1 parent 2cc2d99 commit 85f956c

File tree

6 files changed

+43
-2
lines changed

6 files changed

+43
-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: 14
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta%2Fwarp-api-91a7db62ba0752b9bdccd4bac4c6d09c1d59b7b69788159fe13598b7a5def7ee.yml
3-
openapi_spec_hash: f03a889deaf6df14d678643be1e4dbe3
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta%2Fwarp-api-0c4039c2494856656a7a1a93f76bb7f8c1d3ca7b164e2f97579b59e1a8bdb57c.yml
3+
openapi_spec_hash: 2eb93f6ec9c664399fef84ce3bf8c5a7
44
config_hash: 25c1059aa958c8c2ad60ef16c318514d

src/oz_agent_sdk/resources/agent/agent.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ def with_streaming_response(self) -> AgentResourceWithStreamingResponse:
9191
def list(
9292
self,
9393
*,
94+
include_malformed_skills: bool | Omit = omit,
9495
refresh: bool | Omit = omit,
9596
repo: str | Omit = omit,
9697
sort_by: Literal["name", "last_run"] | Omit = omit,
@@ -106,6 +107,10 @@ def list(
106107
Agents are discovered from environments or a specific repository.
107108
108109
Args:
110+
include_malformed_skills: When true, includes skills whose SKILL.md file exists but is malformed. These
111+
variants will have a non-empty `error` field describing the parse failure.
112+
Defaults to false.
113+
109114
refresh: When true, clears the agent list cache before fetching. Use this to force a
110115
refresh of the available agents.
111116
@@ -134,6 +139,7 @@ def list(
134139
timeout=timeout,
135140
query=maybe_transform(
136141
{
142+
"include_malformed_skills": include_malformed_skills,
137143
"refresh": refresh,
138144
"repo": repo,
139145
"sort_by": sort_by,
@@ -185,6 +191,7 @@ def run(
185191
attachments: Iterable[agent_run_params.Attachment] | Omit = omit,
186192
config: AmbientAgentConfigParam | Omit = omit,
187193
conversation_id: str | Omit = omit,
194+
interactive: bool | Omit = omit,
188195
prompt: str | Omit = omit,
189196
skill: str | Omit = omit,
190197
team: bool | Omit = omit,
@@ -210,6 +217,8 @@ def run(
210217
conversation_id: Optional conversation ID to continue an existing conversation. If provided, the
211218
agent will continue from where the previous run left off.
212219
220+
interactive: Whether the run should be interactive. If not set, defaults to false.
221+
213222
prompt: The prompt/instruction for the agent to execute. Required unless a skill is
214223
specified via the skill field or config.skill_spec.
215224
@@ -241,6 +250,7 @@ def run(
241250
"attachments": attachments,
242251
"config": config,
243252
"conversation_id": conversation_id,
253+
"interactive": interactive,
244254
"prompt": prompt,
245255
"skill": skill,
246256
"team": team,
@@ -295,6 +305,7 @@ def with_streaming_response(self) -> AsyncAgentResourceWithStreamingResponse:
295305
async def list(
296306
self,
297307
*,
308+
include_malformed_skills: bool | Omit = omit,
298309
refresh: bool | Omit = omit,
299310
repo: str | Omit = omit,
300311
sort_by: Literal["name", "last_run"] | Omit = omit,
@@ -310,6 +321,10 @@ async def list(
310321
Agents are discovered from environments or a specific repository.
311322
312323
Args:
324+
include_malformed_skills: When true, includes skills whose SKILL.md file exists but is malformed. These
325+
variants will have a non-empty `error` field describing the parse failure.
326+
Defaults to false.
327+
313328
refresh: When true, clears the agent list cache before fetching. Use this to force a
314329
refresh of the available agents.
315330
@@ -338,6 +353,7 @@ async def list(
338353
timeout=timeout,
339354
query=await async_maybe_transform(
340355
{
356+
"include_malformed_skills": include_malformed_skills,
341357
"refresh": refresh,
342358
"repo": repo,
343359
"sort_by": sort_by,
@@ -389,6 +405,7 @@ async def run(
389405
attachments: Iterable[agent_run_params.Attachment] | Omit = omit,
390406
config: AmbientAgentConfigParam | Omit = omit,
391407
conversation_id: str | Omit = omit,
408+
interactive: bool | Omit = omit,
392409
prompt: str | Omit = omit,
393410
skill: str | Omit = omit,
394411
team: bool | Omit = omit,
@@ -414,6 +431,8 @@ async def run(
414431
conversation_id: Optional conversation ID to continue an existing conversation. If provided, the
415432
agent will continue from where the previous run left off.
416433
434+
interactive: Whether the run should be interactive. If not set, defaults to false.
435+
417436
prompt: The prompt/instruction for the agent to execute. Required unless a skill is
418437
specified via the skill field or config.skill_spec.
419438
@@ -445,6 +464,7 @@ async def run(
445464
"attachments": attachments,
446465
"config": config,
447466
"conversation_id": conversation_id,
467+
"interactive": interactive,
448468
"prompt": prompt,
449469
"skill": skill,
450470
"team": team,

src/oz_agent_sdk/types/agent_list_params.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@
88

99

1010
class AgentListParams(TypedDict, total=False):
11+
include_malformed_skills: bool
12+
"""When true, includes skills whose SKILL.md file exists but is malformed.
13+
14+
These variants will have a non-empty `error` field describing the parse failure.
15+
Defaults to false.
16+
"""
17+
1118
refresh: bool
1219
"""
1320
When true, clears the agent list cache before fetching. Use this to force a

src/oz_agent_sdk/types/agent_run_params.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ class AgentRunParams(TypedDict, total=False):
2929
agent will continue from where the previous run left off.
3030
"""
3131

32+
interactive: bool
33+
"""Whether the run should be interactive. If not set, defaults to false."""
34+
3235
prompt: str
3336
"""
3437
The prompt/instruction for the agent to execute. Required unless a skill is

src/oz_agent_sdk/types/agent_skill.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ class Variant(BaseModel):
4545

4646
source: VariantSource
4747

48+
error: Optional[str] = None
49+
"""
50+
Non-empty when the skill's SKILL.md file exists but is malformed. Contains a
51+
description of the parse failure. Only present when
52+
include_malformed_skills=true is passed to the list agents endpoint.
53+
"""
54+
4855
last_run_timestamp: Optional[datetime] = None
4956
"""Timestamp of the last time this skill was run (RFC3339)"""
5057

tests/api_resources/test_agent.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ def test_method_list(self, client: OzAPI) -> None:
3131
@parametrize
3232
def test_method_list_with_all_params(self, client: OzAPI) -> None:
3333
agent = client.agent.list(
34+
include_malformed_skills=True,
3435
refresh=True,
3536
repo="repo",
3637
sort_by="name",
@@ -138,6 +139,7 @@ def test_method_run_with_all_params(self, client: OzAPI) -> None:
138139
"worker_host": "worker_host",
139140
},
140141
conversation_id="conversation_id",
142+
interactive=True,
141143
prompt="Fix the bug in auth.go",
142144
skill="skill",
143145
team=True,
@@ -183,6 +185,7 @@ async def test_method_list(self, async_client: AsyncOzAPI) -> None:
183185
@parametrize
184186
async def test_method_list_with_all_params(self, async_client: AsyncOzAPI) -> None:
185187
agent = await async_client.agent.list(
188+
include_malformed_skills=True,
186189
refresh=True,
187190
repo="repo",
188191
sort_by="name",
@@ -290,6 +293,7 @@ async def test_method_run_with_all_params(self, async_client: AsyncOzAPI) -> Non
290293
"worker_host": "worker_host",
291294
},
292295
conversation_id="conversation_id",
296+
interactive=True,
293297
prompt="Fix the bug in auth.go",
294298
skill="skill",
295299
team=True,

0 commit comments

Comments
 (0)