Skip to content

Commit 02f788a

Browse files
feat: Fix the harness type in the openAPI spec
1 parent deabf09 commit 02f788a

3 files changed

Lines changed: 20 additions & 7 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: 14
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta%2Fwarp-api-753a2c218019502904eeefce9318e46c152ddf6fe4556e232a3a5fc6931f9b80.yml
3-
openapi_spec_hash: 8d9a460280c5943425e79300f79296c9
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/resources/agent/agent.ts

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,10 @@ export interface AmbientAgentConfig {
185185
environment_id?: string;
186186

187187
/**
188-
* Agent harness to use for the agent run. Default (empty) uses Warp's built-in Oz
189-
* harness.
188+
* Specifies which execution harness to use for the agent run. Default (nil/empty)
189+
* uses Warp's built-in Oz harness.
190190
*/
191-
harness?: string;
191+
harness?: AmbientAgentConfig.Harness;
192192

193193
/**
194194
* Number of minutes to keep the agent environment alive after task completion. If
@@ -230,6 +230,19 @@ export interface AmbientAgentConfig {
230230
worker_host?: string;
231231
}
232232

233+
export namespace AmbientAgentConfig {
234+
/**
235+
* Specifies which execution harness to use for the agent run. Default (nil/empty)
236+
* uses Warp's built-in Oz harness.
237+
*/
238+
export interface Harness {
239+
/**
240+
* The harness type identifier (e.g. "claude").
241+
*/
242+
type?: string;
243+
}
244+
}
245+
233246
/**
234247
* AWS IAM role assumption settings
235248
*/

tests/api-resources/agent/schedules.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ describe('resource schedules', () => {
3232
base_prompt: 'base_prompt',
3333
computer_use_enabled: true,
3434
environment_id: 'environment_id',
35-
harness: 'harness',
35+
harness: { type: 'type' },
3636
idle_timeout_minutes: 1,
3737
mcp_servers: {
3838
foo: {
@@ -93,7 +93,7 @@ describe('resource schedules', () => {
9393
base_prompt: 'base_prompt',
9494
computer_use_enabled: true,
9595
environment_id: 'environment_id',
96-
harness: 'harness',
96+
harness: { type: 'type' },
9797
idle_timeout_minutes: 1,
9898
mcp_servers: {
9999
foo: {

0 commit comments

Comments
 (0)