Skip to content

Commit 32f77e1

Browse files
feat(api): api update
1 parent 7ec4ab4 commit 32f77e1

15 files changed

Lines changed: 90 additions & 17 deletions

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 23
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta/warp-api-410e07a5c3a6e0ff043e5f414d501e171d4dd9f8c91b3404cd9e3e93afebae46.yml
3-
openapi_spec_hash: ab7a6a235e8b2484df1747c69a096ab0
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta/warp-api-4bc83c682f151e3779dabdac7cc9c83ec591510b4befc86a3b2995ccd6e61151.yml
3+
openapi_spec_hash: 35d33a8f98079873af81763e7381046e
44
config_hash: 236823a4936c76818117c16aa5c188df

src/oz_agent_sdk/resources/agent/agent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ def run(
302302
hierarchies.
303303
304304
prompt: The prompt/instruction for the agent to execute. Required unless a skill is
305-
specified via the skill field or config.skill_spec.
305+
specified via the skill field, config.skill_spec, or config.skills.
306306
307307
skill:
308308
Skill specification to use as the base prompt for the agent. Supported formats:
@@ -593,7 +593,7 @@ async def run(
593593
hierarchies.
594594
595595
prompt: The prompt/instruction for the agent to execute. Required unless a skill is
596-
specified via the skill field or config.skill_spec.
596+
specified via the skill field, config.skill_spec, or config.skills.
597597
598598
skill:
599599
Skill specification to use as the base prompt for the agent. Supported formats:

src/oz_agent_sdk/resources/agent/agent_.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ def create(
5353
base_harness: Optional[str] | Omit = omit,
5454
base_model: Optional[str] | Omit = omit,
5555
description: Optional[str] | Omit = omit,
56+
environment_id: Optional[str] | Omit = omit,
5657
harness_auth_secrets: agent_create_params.HarnessAuthSecrets | Omit = omit,
5758
inference_providers: agent_create_params.InferenceProviders | Omit = omit,
5859
memory_stores: Iterable[agent_create_params.MemoryStore] | Omit = omit,
@@ -80,6 +81,9 @@ def create(
8081
8182
description: Optional description of the agent
8283
84+
environment_id: Optional default cloud environment ID for runs executed by this agent. The
85+
environment must be owned by the same team as the agent.
86+
8387
harness_auth_secrets: Authentication secrets for third-party harnesses. Only the secret for the
8488
harness specified gets injected into the environment.
8589
@@ -118,6 +122,7 @@ def create(
118122
"base_harness": base_harness,
119123
"base_model": base_model,
120124
"description": description,
125+
"environment_id": environment_id,
121126
"harness_auth_secrets": harness_auth_secrets,
122127
"inference_providers": inference_providers,
123128
"memory_stores": memory_stores,
@@ -140,6 +145,7 @@ def update(
140145
base_harness: Optional[str] | Omit = omit,
141146
base_model: Optional[str] | Omit = omit,
142147
description: Optional[str] | Omit = omit,
148+
environment_id: Optional[str] | Omit = omit,
143149
harness_auth_secrets: Optional[agent_update_params.HarnessAuthSecrets] | Omit = omit,
144150
inference_providers: Optional[agent_update_params.InferenceProviders] | Omit = omit,
145151
memory_stores: Optional[Iterable[agent_update_params.MemoryStore]] | Omit = omit,
@@ -168,6 +174,9 @@ def update(
168174
description: Replacement description. Omit or pass `null` to leave unchanged, or use an empty
169175
value to clear.
170176
177+
environment_id: Replacement default cloud environment ID. Omit or pass `null` to leave
178+
unchanged, or pass an empty string to clear.
179+
171180
harness_auth_secrets: Authentication secrets for third-party harnesses. Only the secret for the
172181
harness specified gets injected into the environment.
173182
@@ -204,6 +213,7 @@ def update(
204213
"base_harness": base_harness,
205214
"base_model": base_model,
206215
"description": description,
216+
"environment_id": environment_id,
207217
"harness_auth_secrets": harness_auth_secrets,
208218
"inference_providers": inference_providers,
209219
"memory_stores": memory_stores,
@@ -344,6 +354,7 @@ async def create(
344354
base_harness: Optional[str] | Omit = omit,
345355
base_model: Optional[str] | Omit = omit,
346356
description: Optional[str] | Omit = omit,
357+
environment_id: Optional[str] | Omit = omit,
347358
harness_auth_secrets: agent_create_params.HarnessAuthSecrets | Omit = omit,
348359
inference_providers: agent_create_params.InferenceProviders | Omit = omit,
349360
memory_stores: Iterable[agent_create_params.MemoryStore] | Omit = omit,
@@ -371,6 +382,9 @@ async def create(
371382
372383
description: Optional description of the agent
373384
385+
environment_id: Optional default cloud environment ID for runs executed by this agent. The
386+
environment must be owned by the same team as the agent.
387+
374388
harness_auth_secrets: Authentication secrets for third-party harnesses. Only the secret for the
375389
harness specified gets injected into the environment.
376390
@@ -409,6 +423,7 @@ async def create(
409423
"base_harness": base_harness,
410424
"base_model": base_model,
411425
"description": description,
426+
"environment_id": environment_id,
412427
"harness_auth_secrets": harness_auth_secrets,
413428
"inference_providers": inference_providers,
414429
"memory_stores": memory_stores,
@@ -431,6 +446,7 @@ async def update(
431446
base_harness: Optional[str] | Omit = omit,
432447
base_model: Optional[str] | Omit = omit,
433448
description: Optional[str] | Omit = omit,
449+
environment_id: Optional[str] | Omit = omit,
434450
harness_auth_secrets: Optional[agent_update_params.HarnessAuthSecrets] | Omit = omit,
435451
inference_providers: Optional[agent_update_params.InferenceProviders] | Omit = omit,
436452
memory_stores: Optional[Iterable[agent_update_params.MemoryStore]] | Omit = omit,
@@ -459,6 +475,9 @@ async def update(
459475
description: Replacement description. Omit or pass `null` to leave unchanged, or use an empty
460476
value to clear.
461477
478+
environment_id: Replacement default cloud environment ID. Omit or pass `null` to leave
479+
unchanged, or pass an empty string to clear.
480+
462481
harness_auth_secrets: Authentication secrets for third-party harnesses. Only the secret for the
463482
harness specified gets injected into the environment.
464483
@@ -495,6 +514,7 @@ async def update(
495514
"base_harness": base_harness,
496515
"base_model": base_model,
497516
"description": description,
517+
"environment_id": environment_id,
498518
"harness_auth_secrets": harness_auth_secrets,
499519
"inference_providers": inference_providers,
500520
"memory_stores": memory_stores,

src/oz_agent_sdk/resources/agent/schedules.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def create(
8888
omitted. The server does not infer mode from prompt prefixes such as `/plan`.
8989
9090
prompt: The prompt/instruction for the agent to execute. Required unless
91-
agent_config.skill_spec is provided.
91+
agent_config.skill_spec or agent_config.skills is provided.
9292
9393
team: Whether to create a team-owned schedule. Defaults to true for users on a single
9494
team.
@@ -195,7 +195,7 @@ def update(
195195
omitted. The server does not infer mode from prompt prefixes such as `/plan`.
196196
197197
prompt: The prompt/instruction for the agent to execute. Required unless
198-
agent_config.skill_spec is provided.
198+
agent_config.skill_spec or agent_config.skills is provided.
199199
200200
extra_headers: Send extra headers
201201
@@ -416,7 +416,7 @@ async def create(
416416
omitted. The server does not infer mode from prompt prefixes such as `/plan`.
417417
418418
prompt: The prompt/instruction for the agent to execute. Required unless
419-
agent_config.skill_spec is provided.
419+
agent_config.skill_spec or agent_config.skills is provided.
420420
421421
team: Whether to create a team-owned schedule. Defaults to true for users on a single
422422
team.
@@ -523,7 +523,7 @@ async def update(
523523
omitted. The server does not infer mode from prompt prefixes such as `/plan`.
524524
525525
prompt: The prompt/instruction for the agent to execute. Required unless
526-
agent_config.skill_spec is provided.
526+
agent_config.skill_spec or agent_config.skills is provided.
527527
528528
extra_headers: Send extra headers
529529

src/oz_agent_sdk/types/agent/agent_create_params.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ class AgentCreateParams(TypedDict, total=False):
3030
description: Optional[str]
3131
"""Optional description of the agent"""
3232

33+
environment_id: Optional[str]
34+
"""
35+
Optional default cloud environment ID for runs executed by this agent. The
36+
environment must be owned by the same team as the agent.
37+
"""
38+
3339
harness_auth_secrets: HarnessAuthSecrets
3440
"""
3541
Authentication secrets for third-party harnesses. Only the secret for the

src/oz_agent_sdk/types/agent/agent_response.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,16 @@ class AgentResponse(BaseModel):
128128
description: Optional[str] = None
129129
"""Optional description of the agent"""
130130

131+
environment_id: Optional[str] = None
132+
"""Default cloud environment ID for runs executed by this agent.
133+
134+
The precedence order for environment resolution is:
135+
136+
1. The environment specified on the run itself
137+
2. The agent's default environment
138+
3. An empty environment
139+
"""
140+
131141
harness_auth_secrets: Optional[HarnessAuthSecrets] = None
132142
"""
133143
Authentication secrets for third-party harnesses. Only the secret for the

src/oz_agent_sdk/types/agent/agent_update_params.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ class AgentUpdateParams(TypedDict, total=False):
3636
Omit or pass `null` to leave unchanged, or use an empty value to clear.
3737
"""
3838

39+
environment_id: Optional[str]
40+
"""Replacement default cloud environment ID.
41+
42+
Omit or pass `null` to leave unchanged, or pass an empty string to clear.
43+
"""
44+
3945
harness_auth_secrets: Optional[HarnessAuthSecrets]
4046
"""
4147
Authentication secrets for third-party harnesses. Only the secret for the

src/oz_agent_sdk/types/agent/schedule_create_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class ScheduleCreateParams(TypedDict, total=False):
4141
prompt: str
4242
"""
4343
The prompt/instruction for the agent to execute. Required unless
44-
agent_config.skill_spec is provided.
44+
agent_config.skill_spec or agent_config.skills is provided.
4545
"""
4646

4747
team: bool

src/oz_agent_sdk/types/agent/schedule_update_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ class ScheduleUpdateParams(TypedDict, total=False):
3838
prompt: str
3939
"""
4040
The prompt/instruction for the agent to execute. Required unless
41-
agent_config.skill_spec is provided.
41+
agent_config.skill_spec or agent_config.skills is provided.
4242
"""

src/oz_agent_sdk/types/agent_run_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class AgentRunParams(TypedDict, total=False):
5555
prompt: str
5656
"""
5757
The prompt/instruction for the agent to execute. Required unless a skill is
58-
specified via the skill field or config.skill_spec.
58+
specified via the skill field, config.skill_spec, or config.skills.
5959
"""
6060

6161
skill: str

0 commit comments

Comments
 (0)