Skip to content

Commit f8205f6

Browse files
feat(api): api update
1 parent f67f068 commit f8205f6

6 files changed

Lines changed: 17 additions & 12 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: 23
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta/warp-api-8b8de9abf59d848042cc4107118de305ef6dddb46a3783eb6b0d94457a4c8682.yml
3-
openapi_spec_hash: 6c50747f76de7e0bb66a5fdd07d851ac
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta/warp-api-0bc171e3cd0224936953898ce9b7eb35e1bf1cbf58a673fc80b32c90ce84bcd0.yml
3+
openapi_spec_hash: 6c7d5f294b0800e878729314f57a09f0
44
config_hash: 279b20eafe220bf54131676cc0b9cdd2

src/oz_agent_sdk/resources/agent/agent.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -302,8 +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, config.skill_spec, or config.skills. Handoff
306-
requests may omit prompt when conversation_id is set.
305+
specified via the skill field, config.skill_spec, or config.skills.
307306
308307
skill:
309308
Skill specification to use as the base prompt for the agent. Supported formats:
@@ -594,8 +593,7 @@ async def run(
594593
hierarchies.
595594
596595
prompt: The prompt/instruction for the agent to execute. Required unless a skill is
597-
specified via the skill field, config.skill_spec, or config.skills. Handoff
598-
requests may omit prompt when conversation_id is set.
596+
specified via the skill field, config.skill_spec, or config.skills.
599597
600598
skill:
601599
Skill specification to use as the base prompt for the agent. Supported formats:

src/oz_agent_sdk/resources/agent/runs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ def submit_followup(
301301
self,
302302
run_id: str,
303303
*,
304-
message: str | Omit = omit,
304+
message: str,
305305
mode: Literal["normal", "plan", "orchestrate"] | Omit = omit,
306306
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
307307
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -621,7 +621,7 @@ async def submit_followup(
621621
self,
622622
run_id: str,
623623
*,
624-
message: str | Omit = omit,
624+
message: str,
625625
mode: Literal["normal", "plan", "orchestrate"] | Omit = omit,
626626
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
627627
# The extra values given here take precedence over values defined on the client or passed to this method.

src/oz_agent_sdk/types/agent/run_submit_followup_params.py

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

33
from __future__ import annotations
44

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

77
__all__ = ["RunSubmitFollowupParams"]
88

99

1010
class RunSubmitFollowupParams(TypedDict, total=False):
11-
message: str
11+
message: Required[str]
1212
"""The follow-up message to send to the run."""
1313

1414
mode: Literal["normal", "plan", "orchestrate"]

src/oz_agent_sdk/types/agent_run_params.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +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, config.skill_spec, or config.skills. Handoff
59-
requests may omit prompt when conversation_id is set.
58+
specified via the skill field, config.skill_spec, or config.skills.
6059
"""
6160

6261
skill: str

tests/api_resources/agent/test_runs.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ def test_path_params_list_handoff_attachments(self, client: OzAPI) -> None:
209209
def test_method_submit_followup(self, client: OzAPI) -> None:
210210
run = client.agent.runs.submit_followup(
211211
run_id="runId",
212+
message="message",
212213
)
213214
assert_matches_type(object, run, path=["response"])
214215

@@ -227,6 +228,7 @@ def test_method_submit_followup_with_all_params(self, client: OzAPI) -> None:
227228
def test_raw_response_submit_followup(self, client: OzAPI) -> None:
228229
response = client.agent.runs.with_raw_response.submit_followup(
229230
run_id="runId",
231+
message="message",
230232
)
231233

232234
assert response.is_closed is True
@@ -239,6 +241,7 @@ def test_raw_response_submit_followup(self, client: OzAPI) -> None:
239241
def test_streaming_response_submit_followup(self, client: OzAPI) -> None:
240242
with client.agent.runs.with_streaming_response.submit_followup(
241243
run_id="runId",
244+
message="message",
242245
) as response:
243246
assert not response.is_closed
244247
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -254,6 +257,7 @@ def test_path_params_submit_followup(self, client: OzAPI) -> None:
254257
with pytest.raises(ValueError, match=r"Expected a non-empty value for `run_id` but received ''"):
255258
client.agent.runs.with_raw_response.submit_followup(
256259
run_id="",
260+
message="message",
257261
)
258262

259263

@@ -449,6 +453,7 @@ async def test_path_params_list_handoff_attachments(self, async_client: AsyncOzA
449453
async def test_method_submit_followup(self, async_client: AsyncOzAPI) -> None:
450454
run = await async_client.agent.runs.submit_followup(
451455
run_id="runId",
456+
message="message",
452457
)
453458
assert_matches_type(object, run, path=["response"])
454459

@@ -467,6 +472,7 @@ async def test_method_submit_followup_with_all_params(self, async_client: AsyncO
467472
async def test_raw_response_submit_followup(self, async_client: AsyncOzAPI) -> None:
468473
response = await async_client.agent.runs.with_raw_response.submit_followup(
469474
run_id="runId",
475+
message="message",
470476
)
471477

472478
assert response.is_closed is True
@@ -479,6 +485,7 @@ async def test_raw_response_submit_followup(self, async_client: AsyncOzAPI) -> N
479485
async def test_streaming_response_submit_followup(self, async_client: AsyncOzAPI) -> None:
480486
async with async_client.agent.runs.with_streaming_response.submit_followup(
481487
run_id="runId",
488+
message="message",
482489
) as response:
483490
assert not response.is_closed
484491
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -494,4 +501,5 @@ async def test_path_params_submit_followup(self, async_client: AsyncOzAPI) -> No
494501
with pytest.raises(ValueError, match=r"Expected a non-empty value for `run_id` but received ''"):
495502
await async_client.agent.runs.with_raw_response.submit_followup(
496503
run_id="",
504+
message="message",
497505
)

0 commit comments

Comments
 (0)