Skip to content

Commit 86d389c

Browse files
feat(api): api update
1 parent 4c1dc05 commit 86d389c

11 files changed

Lines changed: 9 additions & 118 deletions

File tree

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 22
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta/warp-api-b700b3377aa3a7840b9e2f180580bcd3c1ed308353de72ad0de015fad1ee9834.yml
3-
openapi_spec_hash: 8c6526cec856a6b4782566e5e2b3f814
4-
config_hash: f52e7636f248f25c4ea0b086e7326816
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta/warp-api-3eeaadc6a0c1eefbc3c3a7e1212b2be5c061bad7bcabedf5ee30eb2a7f992505.yml
3+
openapi_spec_hash: a071b7c932453dc870e7e6cf39df0535
4+
config_hash: c15534df6c8d861059e44d9dd5483b3f

src/oz_agent_sdk/resources/agent/agent.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,6 @@ def run(
262262
config: AmbientAgentConfigParam | Omit = omit,
263263
conversation_id: str | Omit = omit,
264264
interactive: bool | Omit = omit,
265-
mode: Literal["normal", "plan", "orchestrate"] | Omit = omit,
266265
parent_run_id: str | Omit = omit,
267266
prompt: str | Omit = omit,
268267
skill: str | Omit = omit,
@@ -294,10 +293,6 @@ def run(
294293
295294
interactive: Whether the run should be interactive. If not set, defaults to false.
296295
297-
mode: Optional query mode for the run. Defaults to `normal` when omitted. The server
298-
does not infer mode from prompt prefixes such as `/plan`, so callers should pass
299-
this field explicitly to request non-normal behavior.
300-
301296
parent_run_id: Optional run ID of the parent that spawned this run. Used for orchestration
302297
hierarchies.
303298
@@ -334,7 +329,6 @@ def run(
334329
"config": config,
335330
"conversation_id": conversation_id,
336331
"interactive": interactive,
337-
"mode": mode,
338332
"parent_run_id": parent_run_id,
339333
"prompt": prompt,
340334
"skill": skill,
@@ -553,7 +547,6 @@ async def run(
553547
config: AmbientAgentConfigParam | Omit = omit,
554548
conversation_id: str | Omit = omit,
555549
interactive: bool | Omit = omit,
556-
mode: Literal["normal", "plan", "orchestrate"] | Omit = omit,
557550
parent_run_id: str | Omit = omit,
558551
prompt: str | Omit = omit,
559552
skill: str | Omit = omit,
@@ -585,10 +578,6 @@ async def run(
585578
586579
interactive: Whether the run should be interactive. If not set, defaults to false.
587580
588-
mode: Optional query mode for the run. Defaults to `normal` when omitted. The server
589-
does not infer mode from prompt prefixes such as `/plan`, so callers should pass
590-
this field explicitly to request non-normal behavior.
591-
592581
parent_run_id: Optional run ID of the parent that spawned this run. Used for orchestration
593582
hierarchies.
594583
@@ -625,7 +614,6 @@ async def run(
625614
"config": config,
626615
"conversation_id": conversation_id,
627616
"interactive": interactive,
628-
"mode": mode,
629617
"parent_run_id": parent_run_id,
630618
"prompt": prompt,
631619
"skill": skill,

src/oz_agent_sdk/resources/agent/runs.py

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,6 @@ def submit_followup(
302302
run_id: str,
303303
*,
304304
message: str,
305-
mode: Literal["normal", "plan", "orchestrate"] | Omit = omit,
306305
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
307306
# The extra values given here take precedence over values defined on the client or passed to this method.
308307
extra_headers: Headers | None = None,
@@ -320,9 +319,6 @@ def submit_followup(
320319
Args:
321320
message: The follow-up message to send to the run.
322321
323-
mode: Optional query mode for the follow-up. Defaults to `normal` when omitted. The
324-
server does not infer mode from prompt prefixes such as `/plan`.
325-
326322
extra_headers: Send extra headers
327323
328324
extra_query: Add additional query parameters to the request
@@ -335,13 +331,7 @@ def submit_followup(
335331
raise ValueError(f"Expected a non-empty value for `run_id` but received {run_id!r}")
336332
return self._post(
337333
path_template("/agent/runs/{run_id}/followups", run_id=run_id),
338-
body=maybe_transform(
339-
{
340-
"message": message,
341-
"mode": mode,
342-
},
343-
run_submit_followup_params.RunSubmitFollowupParams,
344-
),
334+
body=maybe_transform({"message": message}, run_submit_followup_params.RunSubmitFollowupParams),
345335
options=make_request_options(
346336
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
347337
),
@@ -622,7 +612,6 @@ async def submit_followup(
622612
run_id: str,
623613
*,
624614
message: str,
625-
mode: Literal["normal", "plan", "orchestrate"] | Omit = omit,
626615
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
627616
# The extra values given here take precedence over values defined on the client or passed to this method.
628617
extra_headers: Headers | None = None,
@@ -640,9 +629,6 @@ async def submit_followup(
640629
Args:
641630
message: The follow-up message to send to the run.
642631
643-
mode: Optional query mode for the follow-up. Defaults to `normal` when omitted. The
644-
server does not infer mode from prompt prefixes such as `/plan`.
645-
646632
extra_headers: Send extra headers
647633
648634
extra_query: Add additional query parameters to the request
@@ -655,13 +641,7 @@ async def submit_followup(
655641
raise ValueError(f"Expected a non-empty value for `run_id` but received {run_id!r}")
656642
return await self._post(
657643
path_template("/agent/runs/{run_id}/followups", run_id=run_id),
658-
body=await async_maybe_transform(
659-
{
660-
"message": message,
661-
"mode": mode,
662-
},
663-
run_submit_followup_params.RunSubmitFollowupParams,
664-
),
644+
body=await async_maybe_transform({"message": message}, run_submit_followup_params.RunSubmitFollowupParams),
665645
options=make_request_options(
666646
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
667647
),

src/oz_agent_sdk/resources/agent/schedules.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
from __future__ import annotations
44

5-
from typing_extensions import Literal
6-
75
import httpx
86

97
from ..._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
@@ -56,7 +54,6 @@ def create(
5654
agent_config: AmbientAgentConfigParam | Omit = omit,
5755
agent_uid: str | Omit = omit,
5856
enabled: bool | Omit = omit,
59-
mode: Literal["normal", "plan", "orchestrate"] | Omit = omit,
6057
prompt: str | Omit = omit,
6158
team: bool | Omit = omit,
6259
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -84,9 +81,6 @@ def create(
8481
8582
enabled: Whether the schedule should be active immediately
8683
87-
mode: Optional query mode applied to every triggered run. Defaults to `normal` when
88-
omitted. The server does not infer mode from prompt prefixes such as `/plan`.
89-
9084
prompt: The prompt/instruction for the agent to execute. Required unless
9185
agent_config.skill_spec is provided.
9286
@@ -110,7 +104,6 @@ def create(
110104
"agent_config": agent_config,
111105
"agent_uid": agent_uid,
112106
"enabled": enabled,
113-
"mode": mode,
114107
"prompt": prompt,
115108
"team": team,
116109
},
@@ -165,7 +158,6 @@ def update(
165158
name: str,
166159
agent_config: AmbientAgentConfigParam | Omit = omit,
167160
agent_uid: str | Omit = omit,
168-
mode: Literal["normal", "plan", "orchestrate"] | Omit = omit,
169161
prompt: str | Omit = omit,
170162
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
171163
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -191,9 +183,6 @@ def update(
191183
agent_uid: Agent UID to use as the execution principal for this schedule. Only valid for
192184
team-owned schedules.
193185
194-
mode: Optional query mode applied to every triggered run. Defaults to `normal` when
195-
omitted. The server does not infer mode from prompt prefixes such as `/plan`.
196-
197186
prompt: The prompt/instruction for the agent to execute. Required unless
198187
agent_config.skill_spec is provided.
199188
@@ -216,7 +205,6 @@ def update(
216205
"name": name,
217206
"agent_config": agent_config,
218207
"agent_uid": agent_uid,
219-
"mode": mode,
220208
"prompt": prompt,
221209
},
222210
schedule_update_params.ScheduleUpdateParams,
@@ -384,7 +372,6 @@ async def create(
384372
agent_config: AmbientAgentConfigParam | Omit = omit,
385373
agent_uid: str | Omit = omit,
386374
enabled: bool | Omit = omit,
387-
mode: Literal["normal", "plan", "orchestrate"] | Omit = omit,
388375
prompt: str | Omit = omit,
389376
team: bool | Omit = omit,
390377
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -412,9 +399,6 @@ async def create(
412399
413400
enabled: Whether the schedule should be active immediately
414401
415-
mode: Optional query mode applied to every triggered run. Defaults to `normal` when
416-
omitted. The server does not infer mode from prompt prefixes such as `/plan`.
417-
418402
prompt: The prompt/instruction for the agent to execute. Required unless
419403
agent_config.skill_spec is provided.
420404
@@ -438,7 +422,6 @@ async def create(
438422
"agent_config": agent_config,
439423
"agent_uid": agent_uid,
440424
"enabled": enabled,
441-
"mode": mode,
442425
"prompt": prompt,
443426
"team": team,
444427
},
@@ -493,7 +476,6 @@ async def update(
493476
name: str,
494477
agent_config: AmbientAgentConfigParam | Omit = omit,
495478
agent_uid: str | Omit = omit,
496-
mode: Literal["normal", "plan", "orchestrate"] | Omit = omit,
497479
prompt: str | Omit = omit,
498480
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
499481
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -519,9 +501,6 @@ async def update(
519501
agent_uid: Agent UID to use as the execution principal for this schedule. Only valid for
520502
team-owned schedules.
521503
522-
mode: Optional query mode applied to every triggered run. Defaults to `normal` when
523-
omitted. The server does not infer mode from prompt prefixes such as `/plan`.
524-
525504
prompt: The prompt/instruction for the agent to execute. Required unless
526505
agent_config.skill_spec is provided.
527506
@@ -544,7 +523,6 @@ async def update(
544523
"name": name,
545524
"agent_config": agent_config,
546525
"agent_uid": agent_uid,
547-
"mode": mode,
548526
"prompt": prompt,
549527
},
550528
schedule_update_params.ScheduleUpdateParams,

src/oz_agent_sdk/types/agent/run_submit_followup_params.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,11 @@
22

33
from __future__ import annotations
44

5-
from typing_extensions import Literal, Required, TypedDict
5+
from typing_extensions import Required, TypedDict
66

77
__all__ = ["RunSubmitFollowupParams"]
88

99

1010
class RunSubmitFollowupParams(TypedDict, total=False):
1111
message: Required[str]
1212
"""The follow-up message to send to the run."""
13-
14-
mode: Literal["normal", "plan", "orchestrate"]
15-
"""Optional query mode for the follow-up.
16-
17-
Defaults to `normal` when omitted. The server does not infer mode from prompt
18-
prefixes such as `/plan`.
19-
"""

src/oz_agent_sdk/types/agent/schedule_create_params.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from typing_extensions import Literal, Required, TypedDict
5+
from typing_extensions import Required, TypedDict
66

77
from ..ambient_agent_config_param import AmbientAgentConfigParam
88

@@ -31,13 +31,6 @@ class ScheduleCreateParams(TypedDict, total=False):
3131
enabled: bool
3232
"""Whether the schedule should be active immediately"""
3333

34-
mode: Literal["normal", "plan", "orchestrate"]
35-
"""Optional query mode applied to every triggered run.
36-
37-
Defaults to `normal` when omitted. The server does not infer mode from prompt
38-
prefixes such as `/plan`.
39-
"""
40-
4134
prompt: str
4235
"""
4336
The prompt/instruction for the agent to execute. Required unless

src/oz_agent_sdk/types/agent/schedule_update_params.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from typing_extensions import Literal, Required, TypedDict
5+
from typing_extensions import Required, TypedDict
66

77
from ..ambient_agent_config_param import AmbientAgentConfigParam
88

@@ -28,13 +28,6 @@ class ScheduleUpdateParams(TypedDict, total=False):
2828
team-owned schedules.
2929
"""
3030

31-
mode: Literal["normal", "plan", "orchestrate"]
32-
"""Optional query mode applied to every triggered run.
33-
34-
Defaults to `normal` when omitted. The server does not infer mode from prompt
35-
prefixes such as `/plan`.
36-
"""
37-
3831
prompt: str
3932
"""
4033
The prompt/instruction for the agent to execute. Required unless

src/oz_agent_sdk/types/agent_run_params.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from __future__ import annotations
44

55
from typing import Union, Iterable
6-
from typing_extensions import Literal, Required, Annotated, TypedDict
6+
from typing_extensions import Required, Annotated, TypedDict
77

88
from .._types import Base64FileInput
99
from .._utils import PropertyInfo
@@ -38,14 +38,6 @@ class AgentRunParams(TypedDict, total=False):
3838
interactive: bool
3939
"""Whether the run should be interactive. If not set, defaults to false."""
4040

41-
mode: Literal["normal", "plan", "orchestrate"]
42-
"""Optional query mode for the run.
43-
44-
Defaults to `normal` when omitted. The server does not infer mode from prompt
45-
prefixes such as `/plan`, so callers should pass this field explicitly to
46-
request non-normal behavior.
47-
"""
48-
4941
parent_run_id: str
5042
"""
5143
Optional run ID of the parent that spawned this run. Used for orchestration

tests/api_resources/agent/test_runs.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -213,16 +213,6 @@ def test_method_submit_followup(self, client: OzAPI) -> None:
213213
)
214214
assert_matches_type(object, run, path=["response"])
215215

216-
@pytest.mark.skip(reason="Mock server tests are disabled")
217-
@parametrize
218-
def test_method_submit_followup_with_all_params(self, client: OzAPI) -> None:
219-
run = client.agent.runs.submit_followup(
220-
run_id="runId",
221-
message="message",
222-
mode="normal",
223-
)
224-
assert_matches_type(object, run, path=["response"])
225-
226216
@pytest.mark.skip(reason="Mock server tests are disabled")
227217
@parametrize
228218
def test_raw_response_submit_followup(self, client: OzAPI) -> None:
@@ -457,16 +447,6 @@ async def test_method_submit_followup(self, async_client: AsyncOzAPI) -> None:
457447
)
458448
assert_matches_type(object, run, path=["response"])
459449

460-
@pytest.mark.skip(reason="Mock server tests are disabled")
461-
@parametrize
462-
async def test_method_submit_followup_with_all_params(self, async_client: AsyncOzAPI) -> None:
463-
run = await async_client.agent.runs.submit_followup(
464-
run_id="runId",
465-
message="message",
466-
mode="normal",
467-
)
468-
assert_matches_type(object, run, path=["response"])
469-
470450
@pytest.mark.skip(reason="Mock server tests are disabled")
471451
@parametrize
472452
async def test_raw_response_submit_followup(self, async_client: AsyncOzAPI) -> None:

tests/api_resources/agent/test_schedules.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ def test_method_create_with_all_params(self, client: OzAPI) -> None:
6161
},
6262
agent_uid="agent_uid",
6363
enabled=True,
64-
mode="normal",
6564
prompt="Review open pull requests and provide feedback",
6665
team=True,
6766
)
@@ -180,7 +179,6 @@ def test_method_update_with_all_params(self, client: OzAPI) -> None:
180179
"worker_host": "worker_host",
181180
},
182181
agent_uid="agent_uid",
183-
mode="normal",
184182
prompt="prompt",
185183
)
186184
assert_matches_type(ScheduledAgentItem, schedule, path=["response"])
@@ -428,7 +426,6 @@ async def test_method_create_with_all_params(self, async_client: AsyncOzAPI) ->
428426
},
429427
agent_uid="agent_uid",
430428
enabled=True,
431-
mode="normal",
432429
prompt="Review open pull requests and provide feedback",
433430
team=True,
434431
)
@@ -547,7 +544,6 @@ async def test_method_update_with_all_params(self, async_client: AsyncOzAPI) ->
547544
"worker_host": "worker_host",
548545
},
549546
agent_uid="agent_uid",
550-
mode="normal",
551547
prompt="prompt",
552548
)
553549
assert_matches_type(ScheduledAgentItem, schedule, path=["response"])

0 commit comments

Comments
 (0)