Skip to content

Commit 4b777eb

Browse files
feat(api): api update
1 parent c8b44e5 commit 4b777eb

File tree

5 files changed

+17
-26
lines changed

5 files changed

+17
-26
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-7283a1794d3c59ddc27241892d1b962ee01c1bc5c0d9a456ff716c3d5e2420a7.yml
3-
openapi_spec_hash: b8754eda5e237d0938d6b808fe33bf9b
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta%2Fwarp-api-e281c64ee44d0db13ba9ce62d3a61e8b17fcd1fad9bffb5c3b0e3dfb2b5e66e1.yml
3+
openapi_spec_hash: 6bd667f546147c5fac3bffe34522ba2f
44
config_hash: 1888db8b2f33dc16874aea51a90e78f7

src/oz_agent_sdk/types/ambient_agent_config.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
from typing import Dict, Optional
4-
from typing_extensions import Literal
54

65
from pydantic import Field as FieldInfo
76

@@ -14,15 +13,11 @@
1413
class Harness(BaseModel):
1514
"""
1615
Specifies which execution harness to use for the agent run.
17-
Default (nil/empty) uses Warp's built-in harness.
16+
Default (nil/empty) uses Warp's built-in Oz harness.
1817
"""
1918

20-
type: Optional[Literal["oz", "claude"]] = None
21-
"""The harness type identifier.
22-
23-
- oz: Warp's built-in harness (default)
24-
- claude: Claude Code harness
25-
"""
19+
type: Optional[str] = None
20+
"""The harness type identifier (e.g. "claude")."""
2621

2722

2823
class AmbientAgentConfig(BaseModel):
@@ -43,7 +38,7 @@ class AmbientAgentConfig(BaseModel):
4338
harness: Optional[Harness] = None
4439
"""
4540
Specifies which execution harness to use for the agent run. Default (nil/empty)
46-
uses Warp's built-in harness.
41+
uses Warp's built-in Oz harness.
4742
"""
4843

4944
idle_timeout_minutes: Optional[int] = None

src/oz_agent_sdk/types/ambient_agent_config_param.py

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

55
from typing import Dict
6-
from typing_extensions import Literal, TypedDict
6+
from typing_extensions import TypedDict
77

88
from .mcp_server_config_param import McpServerConfigParam
99

@@ -13,15 +13,11 @@
1313
class Harness(TypedDict, total=False):
1414
"""
1515
Specifies which execution harness to use for the agent run.
16-
Default (nil/empty) uses Warp's built-in harness.
16+
Default (nil/empty) uses Warp's built-in Oz harness.
1717
"""
1818

19-
type: Literal["oz", "claude"]
20-
"""The harness type identifier.
21-
22-
- oz: Warp's built-in harness (default)
23-
- claude: Claude Code harness
24-
"""
19+
type: str
20+
"""The harness type identifier (e.g. "claude")."""
2521

2622

2723
class AmbientAgentConfigParam(TypedDict, total=False):
@@ -42,7 +38,7 @@ class AmbientAgentConfigParam(TypedDict, total=False):
4238
harness: Harness
4339
"""
4440
Specifies which execution harness to use for the agent run. Default (nil/empty)
45-
uses Warp's built-in harness.
41+
uses Warp's built-in Oz harness.
4642
"""
4743

4844
idle_timeout_minutes: int

tests/api_resources/agent/test_schedules.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def test_method_create_with_all_params(self, client: OzAPI) -> None:
4040
"base_prompt": "base_prompt",
4141
"computer_use_enabled": True,
4242
"environment_id": "environment_id",
43-
"harness": {"type": "oz"},
43+
"harness": {"type": "type"},
4444
"idle_timeout_minutes": 1,
4545
"mcp_servers": {
4646
"foo": {
@@ -156,7 +156,7 @@ def test_method_update_with_all_params(self, client: OzAPI) -> None:
156156
"base_prompt": "base_prompt",
157157
"computer_use_enabled": True,
158158
"environment_id": "environment_id",
159-
"harness": {"type": "oz"},
159+
"harness": {"type": "type"},
160160
"idle_timeout_minutes": 1,
161161
"mcp_servers": {
162162
"foo": {
@@ -399,7 +399,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOzAPI) ->
399399
"base_prompt": "base_prompt",
400400
"computer_use_enabled": True,
401401
"environment_id": "environment_id",
402-
"harness": {"type": "oz"},
402+
"harness": {"type": "type"},
403403
"idle_timeout_minutes": 1,
404404
"mcp_servers": {
405405
"foo": {
@@ -515,7 +515,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncOzAPI) ->
515515
"base_prompt": "base_prompt",
516516
"computer_use_enabled": True,
517517
"environment_id": "environment_id",
518-
"harness": {"type": "oz"},
518+
"harness": {"type": "type"},
519519
"idle_timeout_minutes": 1,
520520
"mcp_servers": {
521521
"foo": {

tests/api_resources/test_agent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def test_method_run_with_all_params(self, client: OzAPI) -> None:
123123
"base_prompt": "base_prompt",
124124
"computer_use_enabled": True,
125125
"environment_id": "environment_id",
126-
"harness": {"type": "oz"},
126+
"harness": {"type": "type"},
127127
"idle_timeout_minutes": 1,
128128
"mcp_servers": {
129129
"foo": {
@@ -280,7 +280,7 @@ async def test_method_run_with_all_params(self, async_client: AsyncOzAPI) -> Non
280280
"base_prompt": "base_prompt",
281281
"computer_use_enabled": True,
282282
"environment_id": "environment_id",
283-
"harness": {"type": "oz"},
283+
"harness": {"type": "type"},
284284
"idle_timeout_minutes": 1,
285285
"mcp_servers": {
286286
"foo": {

0 commit comments

Comments
 (0)