Skip to content

Commit 0976362

Browse files
feat(api): api update
1 parent 8cd06f6 commit 0976362

6 files changed

Lines changed: 9 additions & 155 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-b424065a28582cd6c6ae1d95047d165a86b3028d09551701159f455a007d73f7.yml
3-
openapi_spec_hash: e7f90f2ac181c44aeee58c3070bc0bba
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta/warp-api-b719dd35d7850ee303cdebf54fa3dfddb492a6f578344c2060cfae013b61541c.yml
3+
openapi_spec_hash: 4c21e0d940ef5fc42767be5380571c5d
44
config_hash: 236823a4936c76818117c16aa5c188df

src/oz_agent_sdk/resources/agent/agent_.py

Lines changed: 4 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,8 @@ def create(
5050
self,
5151
*,
5252
name: str,
53-
base_harness: Optional[str] | Omit = omit,
5453
base_model: Optional[str] | Omit = omit,
5554
description: Optional[str] | Omit = omit,
56-
harness_auth_secrets: agent_create_params.HarnessAuthSecrets | Omit = omit,
5755
inference_providers: agent_create_params.InferenceProviders | Omit = omit,
5856
memory_stores: Iterable[agent_create_params.MemoryStore] | Omit = omit,
5957
prompt: Optional[str] | Omit = omit,
@@ -74,15 +72,10 @@ def create(
7472
Args:
7573
name: A name for the agent
7674
77-
base_harness: Optional default harness for runs executed by this agent.
78-
7975
base_model: Optional base model for runs executed by this agent.
8076
8177
description: Optional description of the agent
8278
83-
harness_auth_secrets: Authentication secrets for third-party harnesses. Only the secret for the
84-
harness specified gets injected into the environment.
85-
8679
inference_providers: Inference provider settings used for LLM calls.
8780
8881
memory_stores: Optional list of memory stores to attach to the agent. Each store must be
@@ -115,10 +108,8 @@ def create(
115108
body=maybe_transform(
116109
{
117110
"name": name,
118-
"base_harness": base_harness,
119111
"base_model": base_model,
120112
"description": description,
121-
"harness_auth_secrets": harness_auth_secrets,
122113
"inference_providers": inference_providers,
123114
"memory_stores": memory_stores,
124115
"prompt": prompt,
@@ -137,10 +128,8 @@ def update(
137128
self,
138129
uid: str,
139130
*,
140-
base_harness: Optional[str] | Omit = omit,
141131
base_model: Optional[str] | Omit = omit,
142132
description: Optional[str] | Omit = omit,
143-
harness_auth_secrets: Optional[agent_update_params.HarnessAuthSecrets] | Omit = omit,
144133
inference_providers: Optional[agent_update_params.InferenceProviders] | Omit = omit,
145134
memory_stores: Optional[Iterable[agent_update_params.MemoryStore]] | Omit = omit,
146135
name: str | Omit = omit,
@@ -157,20 +146,14 @@ def update(
157146
"""Update an existing agent.
158147
159148
Args:
160-
base_harness: Replacement default harness.
149+
base_model: Replacement base model.
161150
162-
Omit or pass `null` to leave unchanged, or pass an
163-
empty string to clear.
164-
165-
base_model: Replacement base model. Omit or pass `null` to leave unchanged, or pass an empty
151+
Omit or pass `null` to leave unchanged, or pass an empty
166152
string to clear.
167153
168154
description: Replacement description. Omit or pass `null` to leave unchanged, or use an empty
169155
value to clear.
170156
171-
harness_auth_secrets: Authentication secrets for third-party harnesses. Only the secret for the
172-
harness specified gets injected into the environment.
173-
174157
inference_providers: Inference provider settings used for LLM calls.
175158
176159
memory_stores: Replacement list of memory stores. Omit to leave unchanged, pass an empty array
@@ -201,10 +184,8 @@ def update(
201184
path_template("/agent/identities/{uid}", uid=uid),
202185
body=maybe_transform(
203186
{
204-
"base_harness": base_harness,
205187
"base_model": base_model,
206188
"description": description,
207-
"harness_auth_secrets": harness_auth_secrets,
208189
"inference_providers": inference_providers,
209190
"memory_stores": memory_stores,
210191
"name": name,
@@ -341,10 +322,8 @@ async def create(
341322
self,
342323
*,
343324
name: str,
344-
base_harness: Optional[str] | Omit = omit,
345325
base_model: Optional[str] | Omit = omit,
346326
description: Optional[str] | Omit = omit,
347-
harness_auth_secrets: agent_create_params.HarnessAuthSecrets | Omit = omit,
348327
inference_providers: agent_create_params.InferenceProviders | Omit = omit,
349328
memory_stores: Iterable[agent_create_params.MemoryStore] | Omit = omit,
350329
prompt: Optional[str] | Omit = omit,
@@ -365,15 +344,10 @@ async def create(
365344
Args:
366345
name: A name for the agent
367346
368-
base_harness: Optional default harness for runs executed by this agent.
369-
370347
base_model: Optional base model for runs executed by this agent.
371348
372349
description: Optional description of the agent
373350
374-
harness_auth_secrets: Authentication secrets for third-party harnesses. Only the secret for the
375-
harness specified gets injected into the environment.
376-
377351
inference_providers: Inference provider settings used for LLM calls.
378352
379353
memory_stores: Optional list of memory stores to attach to the agent. Each store must be
@@ -406,10 +380,8 @@ async def create(
406380
body=await async_maybe_transform(
407381
{
408382
"name": name,
409-
"base_harness": base_harness,
410383
"base_model": base_model,
411384
"description": description,
412-
"harness_auth_secrets": harness_auth_secrets,
413385
"inference_providers": inference_providers,
414386
"memory_stores": memory_stores,
415387
"prompt": prompt,
@@ -428,10 +400,8 @@ async def update(
428400
self,
429401
uid: str,
430402
*,
431-
base_harness: Optional[str] | Omit = omit,
432403
base_model: Optional[str] | Omit = omit,
433404
description: Optional[str] | Omit = omit,
434-
harness_auth_secrets: Optional[agent_update_params.HarnessAuthSecrets] | Omit = omit,
435405
inference_providers: Optional[agent_update_params.InferenceProviders] | Omit = omit,
436406
memory_stores: Optional[Iterable[agent_update_params.MemoryStore]] | Omit = omit,
437407
name: str | Omit = omit,
@@ -448,20 +418,14 @@ async def update(
448418
"""Update an existing agent.
449419
450420
Args:
451-
base_harness: Replacement default harness.
421+
base_model: Replacement base model.
452422
453-
Omit or pass `null` to leave unchanged, or pass an
454-
empty string to clear.
455-
456-
base_model: Replacement base model. Omit or pass `null` to leave unchanged, or pass an empty
423+
Omit or pass `null` to leave unchanged, or pass an empty
457424
string to clear.
458425
459426
description: Replacement description. Omit or pass `null` to leave unchanged, or use an empty
460427
value to clear.
461428
462-
harness_auth_secrets: Authentication secrets for third-party harnesses. Only the secret for the
463-
harness specified gets injected into the environment.
464-
465429
inference_providers: Inference provider settings used for LLM calls.
466430
467431
memory_stores: Replacement list of memory stores. Omit to leave unchanged, pass an empty array
@@ -492,10 +456,8 @@ async def update(
492456
path_template("/agent/identities/{uid}", uid=uid),
493457
body=await async_maybe_transform(
494458
{
495-
"base_harness": base_harness,
496459
"base_model": base_model,
497460
"description": description,
498-
"harness_auth_secrets": harness_auth_secrets,
499461
"inference_providers": inference_providers,
500462
"memory_stores": memory_stores,
501463
"name": name,

src/oz_agent_sdk/types/agent/agent_create_params.py

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -7,35 +7,19 @@
77

88
from ..._types import SequenceNotStr
99

10-
__all__ = [
11-
"AgentCreateParams",
12-
"HarnessAuthSecrets",
13-
"InferenceProviders",
14-
"InferenceProvidersAws",
15-
"MemoryStore",
16-
"Secret",
17-
]
10+
__all__ = ["AgentCreateParams", "InferenceProviders", "InferenceProvidersAws", "MemoryStore", "Secret"]
1811

1912

2013
class AgentCreateParams(TypedDict, total=False):
2114
name: Required[str]
2215
"""A name for the agent"""
2316

24-
base_harness: Optional[str]
25-
"""Optional default harness for runs executed by this agent."""
26-
2717
base_model: Optional[str]
2818
"""Optional base model for runs executed by this agent."""
2919

3020
description: Optional[str]
3121
"""Optional description of the agent"""
3222

33-
harness_auth_secrets: HarnessAuthSecrets
34-
"""
35-
Authentication secrets for third-party harnesses. Only the secret for the
36-
harness specified gets injected into the environment.
37-
"""
38-
3923
inference_providers: InferenceProviders
4024
"""Inference provider settings used for LLM calls."""
4125

@@ -66,20 +50,6 @@ class AgentCreateParams(TypedDict, total=False):
6650
"""
6751

6852

69-
class HarnessAuthSecrets(TypedDict, total=False):
70-
"""
71-
Authentication secrets for third-party harnesses.
72-
Only the secret for the harness specified gets injected into the environment.
73-
"""
74-
75-
claude_auth_secret_name: str
76-
"""
77-
Name of a managed secret for Claude Code harness authentication. The secret must
78-
exist within the caller's personal or team scope. Only applicable when harness
79-
type is "claude".
80-
"""
81-
82-
8353
class InferenceProvidersAws(TypedDict, total=False):
8454
"""
8555
Configures AWS Bedrock as the LLM inference provider for this

src/oz_agent_sdk/types/agent/agent_response.py

Lines changed: 1 addition & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,7 @@
66

77
from ..._models import BaseModel
88

9-
__all__ = [
10-
"AgentResponse",
11-
"MemoryStore",
12-
"Secret",
13-
"HarnessAuthSecrets",
14-
"InferenceProviders",
15-
"InferenceProvidersAws",
16-
]
9+
__all__ = ["AgentResponse", "MemoryStore", "Secret", "InferenceProviders", "InferenceProvidersAws"]
1710

1811

1912
class MemoryStore(BaseModel):
@@ -36,20 +29,6 @@ class Secret(BaseModel):
3629
"""Name of the managed secret."""
3730

3831

39-
class HarnessAuthSecrets(BaseModel):
40-
"""
41-
Authentication secrets for third-party harnesses.
42-
Only the secret for the harness specified gets injected into the environment.
43-
"""
44-
45-
claude_auth_secret_name: Optional[str] = None
46-
"""
47-
Name of a managed secret for Claude Code harness authentication. The secret must
48-
exist within the caller's personal or team scope. Only applicable when harness
49-
type is "claude".
50-
"""
51-
52-
5332
class InferenceProvidersAws(BaseModel):
5433
"""
5534
Configures AWS Bedrock as the LLM inference provider for this
@@ -98,16 +77,6 @@ class AgentResponse(BaseModel):
9877
uid: str
9978
"""Unique identifier for the agent"""
10079

101-
base_harness: Optional[str] = None
102-
"""Default harness for runs executed by this agent.
103-
104-
The precedence order for harness resolution is:
105-
106-
1. The harness specified on the run itself
107-
2. The agent's base harness
108-
3. Oz
109-
"""
110-
11180
base_model: Optional[str] = None
11281
"""Base model for runs executed by this agent.
11382
@@ -121,12 +90,6 @@ class AgentResponse(BaseModel):
12190
description: Optional[str] = None
12291
"""Optional description of the agent"""
12392

124-
harness_auth_secrets: Optional[HarnessAuthSecrets] = None
125-
"""
126-
Authentication secrets for third-party harnesses. Only the secret for the
127-
harness specified gets injected into the environment.
128-
"""
129-
13093
inference_providers: Optional[InferenceProviders] = None
13194
"""Inference provider settings used for LLM calls."""
13295

src/oz_agent_sdk/types/agent/agent_update_params.py

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,10 @@
77

88
from ..._types import SequenceNotStr
99

10-
__all__ = [
11-
"AgentUpdateParams",
12-
"HarnessAuthSecrets",
13-
"InferenceProviders",
14-
"InferenceProvidersAws",
15-
"MemoryStore",
16-
"Secret",
17-
]
10+
__all__ = ["AgentUpdateParams", "InferenceProviders", "InferenceProvidersAws", "MemoryStore", "Secret"]
1811

1912

2013
class AgentUpdateParams(TypedDict, total=False):
21-
base_harness: Optional[str]
22-
"""Replacement default harness.
23-
24-
Omit or pass `null` to leave unchanged, or pass an empty string to clear.
25-
"""
26-
2714
base_model: Optional[str]
2815
"""Replacement base model.
2916
@@ -36,12 +23,6 @@ class AgentUpdateParams(TypedDict, total=False):
3623
Omit or pass `null` to leave unchanged, or use an empty value to clear.
3724
"""
3825

39-
harness_auth_secrets: Optional[HarnessAuthSecrets]
40-
"""
41-
Authentication secrets for third-party harnesses. Only the secret for the
42-
harness specified gets injected into the environment.
43-
"""
44-
4526
inference_providers: Optional[InferenceProviders]
4627
"""Inference provider settings used for LLM calls."""
4728

@@ -76,20 +57,6 @@ class AgentUpdateParams(TypedDict, total=False):
7657
"""
7758

7859

79-
class HarnessAuthSecrets(TypedDict, total=False):
80-
"""
81-
Authentication secrets for third-party harnesses.
82-
Only the secret for the harness specified gets injected into the environment.
83-
"""
84-
85-
claude_auth_secret_name: str
86-
"""
87-
Name of a managed secret for Claude Code harness authentication. The secret must
88-
exist within the caller's personal or team scope. Only applicable when harness
89-
type is "claude".
90-
"""
91-
92-
9360
class InferenceProvidersAws(TypedDict, total=False):
9461
"""
9562
Configures AWS Bedrock as the LLM inference provider for this

0 commit comments

Comments
 (0)