Skip to content

Commit 88de4e2

Browse files
feat(api): api update
1 parent 7634c23 commit 88de4e2

8 files changed

Lines changed: 8 additions & 221 deletions

File tree

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 23
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta/warp-api-e752e75a35d88b84870729ef94b0c32783172983420cbff1b204ca14375553f7.yml
3-
openapi_spec_hash: 34787afc1e1c84a643431a0f0eb352ae
4-
config_hash: 5a6e285f6e3a958a887b31b972a3f49c
1+
configured_endpoints: 22
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta/warp-api-c58f2ee13e97acdf607650e199cb1377d2767c6bd6183b5f1212fa2666bb5f04.yml
3+
openapi_spec_hash: 19295b9e19b2ab3093087d9b11a6095f
4+
config_hash: f52e7636f248f25c4ea0b086e7326816

api.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ Methods:
9494
- <code title="put /agent/identities/{uid}">client.agent.agent.<a href="./src/oz_agent_sdk/resources/agent/agent_.py">update</a>(uid, \*\*<a href="src/oz_agent_sdk/types/agent/agent_update_params.py">params</a>) -> <a href="./src/oz_agent_sdk/types/agent/agent_response.py">AgentResponse</a></code>
9595
- <code title="get /agent/identities">client.agent.agent.<a href="./src/oz_agent_sdk/resources/agent/agent_.py">list</a>() -> <a href="./src/oz_agent_sdk/types/agent/list_agent_identities_response.py">ListAgentIdentitiesResponse</a></code>
9696
- <code title="delete /agent/identities/{uid}">client.agent.agent.<a href="./src/oz_agent_sdk/resources/agent/agent_.py">delete</a>(uid) -> None</code>
97-
- <code title="get /agent/identities/{uid}">client.agent.agent.<a href="./src/oz_agent_sdk/resources/agent/agent_.py">get</a>(uid) -> <a href="./src/oz_agent_sdk/types/agent/agent_response.py">AgentResponse</a></code>
9897

9998
## Sessions
10099

src/oz_agent_sdk/resources/agent/agent_.py

Lines changed: 4 additions & 106 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ def create(
5050
self,
5151
*,
5252
name: str,
53-
base_model: Optional[str] | Omit = omit,
5453
description: Optional[str] | Omit = omit,
5554
secrets: Iterable[agent_create_params.Secret] | Omit = omit,
5655
skills: SequenceNotStr[str] | Omit = omit,
@@ -69,8 +68,6 @@ def create(
6968
Args:
7069
name: A name for the agent
7170
72-
base_model: Optional base model for runs executed by this agent.
73-
7471
description: Optional description of the agent
7572
7673
secrets: Optional list of secrets associated with the agent. Duplicate names within a
@@ -97,7 +94,6 @@ def create(
9794
body=maybe_transform(
9895
{
9996
"name": name,
100-
"base_model": base_model,
10197
"description": description,
10298
"secrets": secrets,
10399
"skills": skills,
@@ -114,7 +110,6 @@ def update(
114110
self,
115111
uid: str,
116112
*,
117-
base_model: Optional[str] | Omit = omit,
118113
description: Optional[str] | Omit = omit,
119114
name: str | Omit = omit,
120115
secrets: Optional[Iterable[agent_update_params.Secret]] | Omit = omit,
@@ -129,12 +124,9 @@ def update(
129124
"""Update an existing agent.
130125
131126
Args:
132-
base_model: Replacement base model.
133-
134-
Omit or pass `null` to leave unchanged, or pass an empty
135-
string to clear.
127+
description: Replacement description.
136128
137-
description: Replacement description. Omit or pass `null` to leave unchanged, or use an empty
129+
Omit or pass `null` to leave unchanged, or use an empty
138130
value to clear.
139131
140132
name: The new name for the agent
@@ -159,7 +151,6 @@ def update(
159151
path_template("/agent/identities/{uid}", uid=uid),
160152
body=maybe_transform(
161153
{
162-
"base_model": base_model,
163154
"description": description,
164155
"name": name,
165156
"secrets": secrets,
@@ -231,42 +222,6 @@ def delete(
231222
cast_to=NoneType,
232223
)
233224

234-
def get(
235-
self,
236-
uid: str,
237-
*,
238-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
239-
# The extra values given here take precedence over values defined on the client or passed to this method.
240-
extra_headers: Headers | None = None,
241-
extra_query: Query | None = None,
242-
extra_body: Body | None = None,
243-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
244-
) -> AgentResponse:
245-
"""Retrieve a single agent by its unique identifier.
246-
247-
The response includes an
248-
`available` flag indicating whether the agent is within the team's plan limit
249-
and may be used for runs.
250-
251-
Args:
252-
extra_headers: Send extra headers
253-
254-
extra_query: Add additional query parameters to the request
255-
256-
extra_body: Add additional JSON properties to the request
257-
258-
timeout: Override the client-level default timeout for this request, in seconds
259-
"""
260-
if not uid:
261-
raise ValueError(f"Expected a non-empty value for `uid` but received {uid!r}")
262-
return self._get(
263-
path_template("/agent/identities/{uid}", uid=uid),
264-
options=make_request_options(
265-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
266-
),
267-
cast_to=AgentResponse,
268-
)
269-
270225

271226
class AsyncAgentResource(AsyncAPIResource):
272227
"""Operations for running and managing cloud agents"""
@@ -294,7 +249,6 @@ async def create(
294249
self,
295250
*,
296251
name: str,
297-
base_model: Optional[str] | Omit = omit,
298252
description: Optional[str] | Omit = omit,
299253
secrets: Iterable[agent_create_params.Secret] | Omit = omit,
300254
skills: SequenceNotStr[str] | Omit = omit,
@@ -313,8 +267,6 @@ async def create(
313267
Args:
314268
name: A name for the agent
315269
316-
base_model: Optional base model for runs executed by this agent.
317-
318270
description: Optional description of the agent
319271
320272
secrets: Optional list of secrets associated with the agent. Duplicate names within a
@@ -341,7 +293,6 @@ async def create(
341293
body=await async_maybe_transform(
342294
{
343295
"name": name,
344-
"base_model": base_model,
345296
"description": description,
346297
"secrets": secrets,
347298
"skills": skills,
@@ -358,7 +309,6 @@ async def update(
358309
self,
359310
uid: str,
360311
*,
361-
base_model: Optional[str] | Omit = omit,
362312
description: Optional[str] | Omit = omit,
363313
name: str | Omit = omit,
364314
secrets: Optional[Iterable[agent_update_params.Secret]] | Omit = omit,
@@ -373,12 +323,9 @@ async def update(
373323
"""Update an existing agent.
374324
375325
Args:
376-
base_model: Replacement base model.
377-
378-
Omit or pass `null` to leave unchanged, or pass an empty
379-
string to clear.
326+
description: Replacement description.
380327
381-
description: Replacement description. Omit or pass `null` to leave unchanged, or use an empty
328+
Omit or pass `null` to leave unchanged, or use an empty
382329
value to clear.
383330
384331
name: The new name for the agent
@@ -403,7 +350,6 @@ async def update(
403350
path_template("/agent/identities/{uid}", uid=uid),
404351
body=await async_maybe_transform(
405352
{
406-
"base_model": base_model,
407353
"description": description,
408354
"name": name,
409355
"secrets": secrets,
@@ -475,42 +421,6 @@ async def delete(
475421
cast_to=NoneType,
476422
)
477423

478-
async def get(
479-
self,
480-
uid: str,
481-
*,
482-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
483-
# The extra values given here take precedence over values defined on the client or passed to this method.
484-
extra_headers: Headers | None = None,
485-
extra_query: Query | None = None,
486-
extra_body: Body | None = None,
487-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
488-
) -> AgentResponse:
489-
"""Retrieve a single agent by its unique identifier.
490-
491-
The response includes an
492-
`available` flag indicating whether the agent is within the team's plan limit
493-
and may be used for runs.
494-
495-
Args:
496-
extra_headers: Send extra headers
497-
498-
extra_query: Add additional query parameters to the request
499-
500-
extra_body: Add additional JSON properties to the request
501-
502-
timeout: Override the client-level default timeout for this request, in seconds
503-
"""
504-
if not uid:
505-
raise ValueError(f"Expected a non-empty value for `uid` but received {uid!r}")
506-
return await self._get(
507-
path_template("/agent/identities/{uid}", uid=uid),
508-
options=make_request_options(
509-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
510-
),
511-
cast_to=AgentResponse,
512-
)
513-
514424

515425
class AgentResourceWithRawResponse:
516426
def __init__(self, agent: AgentResource) -> None:
@@ -528,9 +438,6 @@ def __init__(self, agent: AgentResource) -> None:
528438
self.delete = to_raw_response_wrapper(
529439
agent.delete,
530440
)
531-
self.get = to_raw_response_wrapper(
532-
agent.get,
533-
)
534441

535442

536443
class AsyncAgentResourceWithRawResponse:
@@ -549,9 +456,6 @@ def __init__(self, agent: AsyncAgentResource) -> None:
549456
self.delete = async_to_raw_response_wrapper(
550457
agent.delete,
551458
)
552-
self.get = async_to_raw_response_wrapper(
553-
agent.get,
554-
)
555459

556460

557461
class AgentResourceWithStreamingResponse:
@@ -570,9 +474,6 @@ def __init__(self, agent: AgentResource) -> None:
570474
self.delete = to_streamed_response_wrapper(
571475
agent.delete,
572476
)
573-
self.get = to_streamed_response_wrapper(
574-
agent.get,
575-
)
576477

577478

578479
class AsyncAgentResourceWithStreamingResponse:
@@ -591,6 +492,3 @@ def __init__(self, agent: AsyncAgentResource) -> None:
591492
self.delete = async_to_streamed_response_wrapper(
592493
agent.delete,
593494
)
594-
self.get = async_to_streamed_response_wrapper(
595-
agent.get,
596-
)

src/oz_agent_sdk/types/agent/agent_create_params.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ class AgentCreateParams(TypedDict, total=False):
1414
name: Required[str]
1515
"""A name for the agent"""
1616

17-
base_model: Optional[str]
18-
"""Optional base model for runs executed by this agent."""
19-
2017
description: Optional[str]
2118
"""Optional description of the agent"""
2219

src/oz_agent_sdk/types/agent/agent_response.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,5 @@ class AgentResponse(BaseModel):
3737
uid: str
3838
"""Unique identifier for the agent"""
3939

40-
base_model: Optional[str] = None
41-
"""Base model for runs executed by this agent.
42-
43-
The precedence order for model resolution is:
44-
45-
1. The model specified on the run itself
46-
2. The agent's base model
47-
3. The team's default model
48-
"""
49-
5040
description: Optional[str] = None
5141
"""Optional description of the agent"""

src/oz_agent_sdk/types/agent/agent_update_params.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,6 @@
1111

1212

1313
class AgentUpdateParams(TypedDict, total=False):
14-
base_model: Optional[str]
15-
"""Replacement base model.
16-
17-
Omit or pass `null` to leave unchanged, or pass an empty string to clear.
18-
"""
19-
2014
description: Optional[str]
2115
"""Replacement description.
2216

src/oz_agent_sdk/types/agent/run_item.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@ class RequestUsage(BaseModel):
4444
inference_cost: Optional[float] = None
4545
"""Cost of LLM inference for the run"""
4646

47-
platform_cost: Optional[float] = None
48-
"""Cost of platform usage for the run"""
49-
5047

5148
class Schedule(BaseModel):
5249
"""

0 commit comments

Comments
 (0)