Skip to content

Commit 5514980

Browse files
feat: Orchestrations V2: Public API endpoints
1 parent e63c7df commit 5514980

File tree

4 files changed

+20
-2
lines changed

4 files changed

+20
-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-1b6767b852f3064c16752433a1cfd1db8ef38aa442dcb33b136e78fcc094bc51.yml
3-
openapi_spec_hash: 1fdcb18c88b88e4d257b7748a4896b26
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta%2Fwarp-api-753a2c218019502904eeefce9318e46c152ddf6fe4556e232a3a5fc6931f9b80.yml
3+
openapi_spec_hash: 8d9a460280c5943425e79300f79296c9
44
config_hash: 1888db8b2f33dc16874aea51a90e78f7

src/oz_agent_sdk/resources/agent/agent.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ def run(
192192
config: AmbientAgentConfigParam | Omit = omit,
193193
conversation_id: str | Omit = omit,
194194
interactive: bool | Omit = omit,
195+
parent_run_id: str | Omit = omit,
195196
prompt: str | Omit = omit,
196197
skill: str | Omit = omit,
197198
team: bool | Omit = omit,
@@ -219,6 +220,9 @@ def run(
219220
220221
interactive: Whether the run should be interactive. If not set, defaults to false.
221222
223+
parent_run_id: Optional run ID of the parent that spawned this run. Used for orchestration
224+
hierarchies.
225+
222226
prompt: The prompt/instruction for the agent to execute. Required unless a skill is
223227
specified via the skill field or config.skill_spec.
224228
@@ -251,6 +255,7 @@ def run(
251255
"config": config,
252256
"conversation_id": conversation_id,
253257
"interactive": interactive,
258+
"parent_run_id": parent_run_id,
254259
"prompt": prompt,
255260
"skill": skill,
256261
"team": team,
@@ -406,6 +411,7 @@ async def run(
406411
config: AmbientAgentConfigParam | Omit = omit,
407412
conversation_id: str | Omit = omit,
408413
interactive: bool | Omit = omit,
414+
parent_run_id: str | Omit = omit,
409415
prompt: str | Omit = omit,
410416
skill: str | Omit = omit,
411417
team: bool | Omit = omit,
@@ -433,6 +439,9 @@ async def run(
433439
434440
interactive: Whether the run should be interactive. If not set, defaults to false.
435441
442+
parent_run_id: Optional run ID of the parent that spawned this run. Used for orchestration
443+
hierarchies.
444+
436445
prompt: The prompt/instruction for the agent to execute. Required unless a skill is
437446
specified via the skill field or config.skill_spec.
438447
@@ -465,6 +474,7 @@ async def run(
465474
"config": config,
466475
"conversation_id": conversation_id,
467476
"interactive": interactive,
477+
"parent_run_id": parent_run_id,
468478
"prompt": prompt,
469479
"skill": skill,
470480
"team": team,

src/oz_agent_sdk/types/agent_run_params.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ class AgentRunParams(TypedDict, total=False):
3232
interactive: bool
3333
"""Whether the run should be interactive. If not set, defaults to false."""
3434

35+
parent_run_id: str
36+
"""
37+
Optional run ID of the parent that spawned this run. Used for orchestration
38+
hierarchies.
39+
"""
40+
3541
prompt: str
3642
"""
3743
The prompt/instruction for the agent to execute. Required unless a skill is

tests/api_resources/test_agent.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ def test_method_run_with_all_params(self, client: OzAPI) -> None:
142142
},
143143
conversation_id="conversation_id",
144144
interactive=True,
145+
parent_run_id="parent_run_id",
145146
prompt="prompt",
146147
skill="skill",
147148
team=True,
@@ -298,6 +299,7 @@ async def test_method_run_with_all_params(self, async_client: AsyncOzAPI) -> Non
298299
},
299300
conversation_id="conversation_id",
300301
interactive=True,
302+
parent_run_id="parent_run_id",
301303
prompt="prompt",
302304
skill="skill",
303305
team=True,

0 commit comments

Comments
 (0)