Skip to content

Commit c8b44e5

Browse files
feat: Add harness enum to openAPI spec
1 parent 71d7204 commit c8b44e5

File tree

5 files changed

+26
-17
lines changed

5 files changed

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

src/oz_agent_sdk/types/ambient_agent_config.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
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
45

56
from pydantic import Field as FieldInfo
67

@@ -13,11 +14,15 @@
1314
class Harness(BaseModel):
1415
"""
1516
Specifies which execution harness to use for the agent run.
16-
Default (nil/empty) uses Warp's built-in Oz harness.
17+
Default (nil/empty) uses Warp's built-in harness.
1718
"""
1819

19-
type: Optional[str] = None
20-
"""The harness type identifier (e.g. "claude")."""
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+
"""
2126

2227

2328
class AmbientAgentConfig(BaseModel):
@@ -38,7 +43,7 @@ class AmbientAgentConfig(BaseModel):
3843
harness: Optional[Harness] = None
3944
"""
4045
Specifies which execution harness to use for the agent run. Default (nil/empty)
41-
uses Warp's built-in Oz harness.
46+
uses Warp's built-in harness.
4247
"""
4348

4449
idle_timeout_minutes: Optional[int] = None

src/oz_agent_sdk/types/ambient_agent_config_param.py

Lines changed: 9 additions & 5 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 TypedDict
6+
from typing_extensions import Literal, TypedDict
77

88
from .mcp_server_config_param import McpServerConfigParam
99

@@ -13,11 +13,15 @@
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 Oz harness.
16+
Default (nil/empty) uses Warp's built-in harness.
1717
"""
1818

19-
type: str
20-
"""The harness type identifier (e.g. "claude")."""
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+
"""
2125

2226

2327
class AmbientAgentConfigParam(TypedDict, total=False):
@@ -38,7 +42,7 @@ class AmbientAgentConfigParam(TypedDict, total=False):
3842
harness: Harness
3943
"""
4044
Specifies which execution harness to use for the agent run. Default (nil/empty)
41-
uses Warp's built-in Oz harness.
45+
uses Warp's built-in harness.
4246
"""
4347

4448
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": "type"},
43+
"harness": {"type": "oz"},
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": "type"},
159+
"harness": {"type": "oz"},
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": "type"},
402+
"harness": {"type": "oz"},
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": "type"},
518+
"harness": {"type": "oz"},
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": "type"},
126+
"harness": {"type": "oz"},
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": "type"},
283+
"harness": {"type": "oz"},
284284
"idle_timeout_minutes": 1,
285285
"mcp_servers": {
286286
"foo": {

0 commit comments

Comments
 (0)