Skip to content

Commit 8aafbea

Browse files
feat(api): manual updates
1 parent 4f7eb53 commit 8aafbea

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+438
-440
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 12
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta%2Fwarp-api-c99d72d8d845f1eeabf7a716949a12408df952a2a0ca2b97df570da3a7c8bb49.yml
33
openapi_spec_hash: 8a503cbccc8a5741554282327a557114
4-
config_hash: 38a89a860ee0f5ef4f2cb10d010e4e8f
4+
config_hash: 433e7a5579323a048aa173a0ace06bfc

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ $ pip install -r requirements-dev.lock
3636

3737
Most of the SDK is generated code. Modifications to code will be persisted between generations, but may
3838
result in merge conflicts between manual patches and changes from the generator. The generator will never
39-
modify the contents of the `src/warp_agent_sdk/lib/` and `examples/` directories.
39+
modify the contents of the `src/oz_agent_sdk/lib/` and `examples/` directories.
4040

4141
## Adding and running examples
4242

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright 2026 Warp API
189+
Copyright 2026 Oz API
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

README.md

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# Warp API Python API library
1+
# Oz API Python API library
22

33
<!-- prettier-ignore -->
44
[![PyPI version](https://img.shields.io/pypi/v/oz-agent-sdk.svg?label=pypi%20(stable))](https://pypi.org/project/oz-agent-sdk/)
55

6-
The Warp API Python library provides convenient access to the Warp API REST API from any Python 3.9+
6+
The Oz API Python library provides convenient access to the Oz API REST API from any Python 3.9+
77
application. The library includes type definitions for all request params and response fields,
88
and offers both synchronous and asynchronous clients powered by [httpx](https://github.com/encode/httpx).
99

@@ -26,9 +26,9 @@ The full API of this library can be found in [api.md](api.md).
2626

2727
```python
2828
import os
29-
from warp_agent_sdk import WarpAPI
29+
from oz_agent_sdk import OzAPI
3030

31-
client = WarpAPI(
31+
client = OzAPI(
3232
api_key=os.environ.get("WARP_API_KEY"), # This is the default and can be omitted
3333
)
3434

@@ -103,14 +103,14 @@ so that your API Key is not stored in source control.
103103

104104
## Async usage
105105

106-
Simply import `AsyncWarpAPI` instead of `WarpAPI` and use `await` with each API call:
106+
Simply import `AsyncOzAPI` instead of `OzAPI` and use `await` with each API call:
107107

108108
```python
109109
import os
110110
import asyncio
111-
from warp_agent_sdk import AsyncWarpAPI
111+
from oz_agent_sdk import AsyncOzAPI
112112

113-
client = AsyncWarpAPI(
113+
client = AsyncOzAPI(
114114
api_key=os.environ.get("WARP_API_KEY"), # This is the default and can be omitted
115115
)
116116

@@ -143,12 +143,12 @@ Then you can enable it by instantiating the client with `http_client=DefaultAioH
143143
```python
144144
import os
145145
import asyncio
146-
from warp_agent_sdk import DefaultAioHttpClient
147-
from warp_agent_sdk import AsyncWarpAPI
146+
from oz_agent_sdk import DefaultAioHttpClient
147+
from oz_agent_sdk import AsyncOzAPI
148148

149149

150150
async def main() -> None:
151-
async with AsyncWarpAPI(
151+
async with AsyncOzAPI(
152152
api_key=os.environ.get("WARP_API_KEY"), # This is the default and can be omitted
153153
http_client=DefaultAioHttpClient(),
154154
) as client:
@@ -175,9 +175,9 @@ Typed requests and responses provide autocomplete and documentation within your
175175
Nested parameters are dictionaries, typed using `TypedDict`, for example:
176176

177177
```python
178-
from warp_agent_sdk import WarpAPI
178+
from oz_agent_sdk import OzAPI
179179

180-
client = WarpAPI()
180+
client = OzAPI()
181181

182182
response = client.agent.run(
183183
config={},
@@ -187,29 +187,29 @@ print(response.config)
187187

188188
## Handling errors
189189

190-
When the library is unable to connect to the API (for example, due to network connection problems or a timeout), a subclass of `warp_agent_sdk.APIConnectionError` is raised.
190+
When the library is unable to connect to the API (for example, due to network connection problems or a timeout), a subclass of `oz_agent_sdk.APIConnectionError` is raised.
191191

192192
When the API returns a non-success status code (that is, 4xx or 5xx
193-
response), a subclass of `warp_agent_sdk.APIStatusError` is raised, containing `status_code` and `response` properties.
193+
response), a subclass of `oz_agent_sdk.APIStatusError` is raised, containing `status_code` and `response` properties.
194194

195-
All errors inherit from `warp_agent_sdk.APIError`.
195+
All errors inherit from `oz_agent_sdk.APIError`.
196196

197197
```python
198-
import warp_agent_sdk
199-
from warp_agent_sdk import WarpAPI
198+
import oz_agent_sdk
199+
from oz_agent_sdk import OzAPI
200200

201-
client = WarpAPI()
201+
client = OzAPI()
202202

203203
try:
204204
client.agent.run(
205205
prompt="Fix the bug in auth.go",
206206
)
207-
except warp_agent_sdk.APIConnectionError as e:
207+
except oz_agent_sdk.APIConnectionError as e:
208208
print("The server could not be reached")
209209
print(e.__cause__) # an underlying Exception, likely raised within httpx.
210-
except warp_agent_sdk.RateLimitError as e:
210+
except oz_agent_sdk.RateLimitError as e:
211211
print("A 429 status code was received; we should back off a bit.")
212-
except warp_agent_sdk.APIStatusError as e:
212+
except oz_agent_sdk.APIStatusError as e:
213213
print("Another non-200-range status code was received")
214214
print(e.status_code)
215215
print(e.response)
@@ -237,10 +237,10 @@ Connection errors (for example, due to a network connectivity problem), 408 Requ
237237
You can use the `max_retries` option to configure or disable retry settings:
238238

239239
```python
240-
from warp_agent_sdk import WarpAPI
240+
from oz_agent_sdk import OzAPI
241241

242242
# Configure the default for all requests:
243-
client = WarpAPI(
243+
client = OzAPI(
244244
# default is 2
245245
max_retries=0,
246246
)
@@ -257,16 +257,16 @@ By default requests time out after 1 minute. You can configure this with a `time
257257
which accepts a float or an [`httpx.Timeout`](https://www.python-httpx.org/advanced/timeouts/#fine-tuning-the-configuration) object:
258258

259259
```python
260-
from warp_agent_sdk import WarpAPI
260+
from oz_agent_sdk import OzAPI
261261

262262
# Configure the default for all requests:
263-
client = WarpAPI(
263+
client = OzAPI(
264264
# 20 seconds (default is 1 minute)
265265
timeout=20.0,
266266
)
267267

268268
# More granular control:
269-
client = WarpAPI(
269+
client = OzAPI(
270270
timeout=httpx.Timeout(60.0, read=5.0, write=10.0, connect=2.0),
271271
)
272272

@@ -286,10 +286,10 @@ Note that requests that time out are [retried twice by default](#retries).
286286

287287
We use the standard library [`logging`](https://docs.python.org/3/library/logging.html) module.
288288

289-
You can enable logging by setting the environment variable `WARP_API_LOG` to `info`.
289+
You can enable logging by setting the environment variable `OZ_API_LOG` to `info`.
290290

291291
```shell
292-
$ export WARP_API_LOG=info
292+
$ export OZ_API_LOG=info
293293
```
294294

295295
Or to `debug` for more verbose logging.
@@ -311,9 +311,9 @@ if response.my_field is None:
311311
The "raw" Response object can be accessed by prefixing `.with_raw_response.` to any HTTP method call, e.g.,
312312

313313
```py
314-
from warp_agent_sdk import WarpAPI
314+
from oz_agent_sdk import OzAPI
315315

316-
client = WarpAPI()
316+
client = OzAPI()
317317
response = client.agent.with_raw_response.run(
318318
prompt="Fix the bug in auth.go",
319319
)
@@ -323,9 +323,9 @@ agent = response.parse() # get the object that `agent.run()` would have returne
323323
print(agent.run_id)
324324
```
325325

326-
These methods return an [`APIResponse`](https://github.com/warpdotdev/oz-sdk-python/tree/main/src/warp_agent_sdk/_response.py) object.
326+
These methods return an [`APIResponse`](https://github.com/warpdotdev/oz-sdk-python/tree/main/src/oz_agent_sdk/_response.py) object.
327327

328-
The async client returns an [`AsyncAPIResponse`](https://github.com/warpdotdev/oz-sdk-python/tree/main/src/warp_agent_sdk/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
328+
The async client returns an [`AsyncAPIResponse`](https://github.com/warpdotdev/oz-sdk-python/tree/main/src/oz_agent_sdk/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
329329

330330
#### `.with_streaming_response`
331331

@@ -389,10 +389,10 @@ You can directly override the [httpx client](https://www.python-httpx.org/api/#c
389389

390390
```python
391391
import httpx
392-
from warp_agent_sdk import WarpAPI, DefaultHttpxClient
392+
from oz_agent_sdk import OzAPI, DefaultHttpxClient
393393

394-
client = WarpAPI(
395-
# Or use the `WARP_API_BASE_URL` env var
394+
client = OzAPI(
395+
# Or use the `OZ_API_BASE_URL` env var
396396
base_url="http://my.test.server.example.com:8083",
397397
http_client=DefaultHttpxClient(
398398
proxy="http://my.test.proxy.example.com",
@@ -412,9 +412,9 @@ client.with_options(http_client=DefaultHttpxClient(...))
412412
By default the library closes underlying HTTP connections whenever the client is [garbage collected](https://docs.python.org/3/reference/datamodel.html#object.__del__). You can manually close the client using the `.close()` method if desired, or with a context manager that closes when exiting.
413413

414414
```py
415-
from warp_agent_sdk import WarpAPI
415+
from oz_agent_sdk import OzAPI
416416

417-
with WarpAPI() as client:
417+
with OzAPI() as client:
418418
# make requests here
419419
...
420420

@@ -440,8 +440,8 @@ If you've upgraded to the latest version but aren't seeing any new features you
440440
You can determine the version that is being used at runtime with:
441441

442442
```py
443-
import warp_agent_sdk
444-
print(warp_agent_sdk.__version__)
443+
import oz_agent_sdk
444+
print(oz_agent_sdk.__version__)
445445
```
446446

447447
## Requirements

SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ before making any information public.
1616
## Reporting Non-SDK Related Security Issues
1717

1818
If you encounter security issues that are not directly related to SDKs but pertain to the services
19-
or products provided by Warp API, please follow the respective company's security reporting guidelines.
19+
or products provided by Oz API, please follow the respective company's security reporting guidelines.
2020

2121
---
2222

api.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Types:
44

55
```python
6-
from warp_agent_sdk.types import (
6+
from oz_agent_sdk.types import (
77
AgentSkill,
88
AmbientAgentConfig,
99
CloudEnvironmentConfig,
@@ -16,15 +16,15 @@ from warp_agent_sdk.types import (
1616

1717
Methods:
1818

19-
- <code title="get /agent">client.agent.<a href="./src/warp_agent_sdk/resources/agent/agent.py">list</a>(\*\*<a href="src/warp_agent_sdk/types/agent_list_params.py">params</a>) -> <a href="./src/warp_agent_sdk/types/agent_list_response.py">AgentListResponse</a></code>
20-
- <code title="post /agent/run">client.agent.<a href="./src/warp_agent_sdk/resources/agent/agent.py">run</a>(\*\*<a href="src/warp_agent_sdk/types/agent_run_params.py">params</a>) -> <a href="./src/warp_agent_sdk/types/agent_run_response.py">AgentRunResponse</a></code>
19+
- <code title="get /agent">client.agent.<a href="./src/oz_agent_sdk/resources/agent/agent.py">list</a>(\*\*<a href="src/oz_agent_sdk/types/agent_list_params.py">params</a>) -> <a href="./src/oz_agent_sdk/types/agent_list_response.py">AgentListResponse</a></code>
20+
- <code title="post /agent/run">client.agent.<a href="./src/oz_agent_sdk/resources/agent/agent.py">run</a>(\*\*<a href="src/oz_agent_sdk/types/agent_run_params.py">params</a>) -> <a href="./src/oz_agent_sdk/types/agent_run_response.py">AgentRunResponse</a></code>
2121

2222
## Runs
2323

2424
Types:
2525

2626
```python
27-
from warp_agent_sdk.types.agent import (
27+
from oz_agent_sdk.types.agent import (
2828
ArtifactItem,
2929
RunItem,
3030
RunSourceType,
@@ -36,16 +36,16 @@ from warp_agent_sdk.types.agent import (
3636

3737
Methods:
3838

39-
- <code title="get /agent/runs/{runId}">client.agent.runs.<a href="./src/warp_agent_sdk/resources/agent/runs.py">retrieve</a>(run_id) -> <a href="./src/warp_agent_sdk/types/agent/run_item.py">RunItem</a></code>
40-
- <code title="get /agent/runs">client.agent.runs.<a href="./src/warp_agent_sdk/resources/agent/runs.py">list</a>(\*\*<a href="src/warp_agent_sdk/types/agent/run_list_params.py">params</a>) -> <a href="./src/warp_agent_sdk/types/agent/run_list_response.py">RunListResponse</a></code>
41-
- <code title="post /agent/runs/{runId}/cancel">client.agent.runs.<a href="./src/warp_agent_sdk/resources/agent/runs.py">cancel</a>(run_id) -> str</code>
39+
- <code title="get /agent/runs/{runId}">client.agent.runs.<a href="./src/oz_agent_sdk/resources/agent/runs.py">retrieve</a>(run_id) -> <a href="./src/oz_agent_sdk/types/agent/run_item.py">RunItem</a></code>
40+
- <code title="get /agent/runs">client.agent.runs.<a href="./src/oz_agent_sdk/resources/agent/runs.py">list</a>(\*\*<a href="src/oz_agent_sdk/types/agent/run_list_params.py">params</a>) -> <a href="./src/oz_agent_sdk/types/agent/run_list_response.py">RunListResponse</a></code>
41+
- <code title="post /agent/runs/{runId}/cancel">client.agent.runs.<a href="./src/oz_agent_sdk/resources/agent/runs.py">cancel</a>(run_id) -> str</code>
4242

4343
## Schedules
4444

4545
Types:
4646

4747
```python
48-
from warp_agent_sdk.types.agent import (
48+
from oz_agent_sdk.types.agent import (
4949
ScheduledAgentItem,
5050
ScheduleListResponse,
5151
ScheduleDeleteResponse,
@@ -54,10 +54,10 @@ from warp_agent_sdk.types.agent import (
5454

5555
Methods:
5656

57-
- <code title="post /agent/schedules">client.agent.schedules.<a href="./src/warp_agent_sdk/resources/agent/schedules.py">create</a>(\*\*<a href="src/warp_agent_sdk/types/agent/schedule_create_params.py">params</a>) -> <a href="./src/warp_agent_sdk/types/agent/scheduled_agent_item.py">ScheduledAgentItem</a></code>
58-
- <code title="get /agent/schedules/{scheduleId}">client.agent.schedules.<a href="./src/warp_agent_sdk/resources/agent/schedules.py">retrieve</a>(schedule_id) -> <a href="./src/warp_agent_sdk/types/agent/scheduled_agent_item.py">ScheduledAgentItem</a></code>
59-
- <code title="put /agent/schedules/{scheduleId}">client.agent.schedules.<a href="./src/warp_agent_sdk/resources/agent/schedules.py">update</a>(schedule_id, \*\*<a href="src/warp_agent_sdk/types/agent/schedule_update_params.py">params</a>) -> <a href="./src/warp_agent_sdk/types/agent/scheduled_agent_item.py">ScheduledAgentItem</a></code>
60-
- <code title="get /agent/schedules">client.agent.schedules.<a href="./src/warp_agent_sdk/resources/agent/schedules.py">list</a>() -> <a href="./src/warp_agent_sdk/types/agent/schedule_list_response.py">ScheduleListResponse</a></code>
61-
- <code title="delete /agent/schedules/{scheduleId}">client.agent.schedules.<a href="./src/warp_agent_sdk/resources/agent/schedules.py">delete</a>(schedule_id) -> <a href="./src/warp_agent_sdk/types/agent/schedule_delete_response.py">ScheduleDeleteResponse</a></code>
62-
- <code title="post /agent/schedules/{scheduleId}/pause">client.agent.schedules.<a href="./src/warp_agent_sdk/resources/agent/schedules.py">pause</a>(schedule_id) -> <a href="./src/warp_agent_sdk/types/agent/scheduled_agent_item.py">ScheduledAgentItem</a></code>
63-
- <code title="post /agent/schedules/{scheduleId}/resume">client.agent.schedules.<a href="./src/warp_agent_sdk/resources/agent/schedules.py">resume</a>(schedule_id) -> <a href="./src/warp_agent_sdk/types/agent/scheduled_agent_item.py">ScheduledAgentItem</a></code>
57+
- <code title="post /agent/schedules">client.agent.schedules.<a href="./src/oz_agent_sdk/resources/agent/schedules.py">create</a>(\*\*<a href="src/oz_agent_sdk/types/agent/schedule_create_params.py">params</a>) -> <a href="./src/oz_agent_sdk/types/agent/scheduled_agent_item.py">ScheduledAgentItem</a></code>
58+
- <code title="get /agent/schedules/{scheduleId}">client.agent.schedules.<a href="./src/oz_agent_sdk/resources/agent/schedules.py">retrieve</a>(schedule_id) -> <a href="./src/oz_agent_sdk/types/agent/scheduled_agent_item.py">ScheduledAgentItem</a></code>
59+
- <code title="put /agent/schedules/{scheduleId}">client.agent.schedules.<a href="./src/oz_agent_sdk/resources/agent/schedules.py">update</a>(schedule_id, \*\*<a href="src/oz_agent_sdk/types/agent/schedule_update_params.py">params</a>) -> <a href="./src/oz_agent_sdk/types/agent/scheduled_agent_item.py">ScheduledAgentItem</a></code>
60+
- <code title="get /agent/schedules">client.agent.schedules.<a href="./src/oz_agent_sdk/resources/agent/schedules.py">list</a>() -> <a href="./src/oz_agent_sdk/types/agent/schedule_list_response.py">ScheduleListResponse</a></code>
61+
- <code title="delete /agent/schedules/{scheduleId}">client.agent.schedules.<a href="./src/oz_agent_sdk/resources/agent/schedules.py">delete</a>(schedule_id) -> <a href="./src/oz_agent_sdk/types/agent/schedule_delete_response.py">ScheduleDeleteResponse</a></code>
62+
- <code title="post /agent/schedules/{scheduleId}/pause">client.agent.schedules.<a href="./src/oz_agent_sdk/resources/agent/schedules.py">pause</a>(schedule_id) -> <a href="./src/oz_agent_sdk/types/agent/scheduled_agent_item.py">ScheduledAgentItem</a></code>
63+
- <code title="post /agent/schedules/{scheduleId}/resume">client.agent.schedules.<a href="./src/oz_agent_sdk/resources/agent/schedules.py">resume</a>(schedule_id) -> <a href="./src/oz_agent_sdk/types/agent/scheduled_agent_item.py">ScheduledAgentItem</a></code>

pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[project]
22
name = "oz-agent-sdk"
33
version = "0.5.0"
4-
description = "The official Python library for the warp-api API"
4+
description = "The official Python library for the oz-api API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"
77
authors = [
8-
{ name = "Warp API", email = "" },
8+
{ name = "Oz API", email = "" },
99
]
1010

1111
dependencies = [
@@ -86,7 +86,7 @@ include = [
8686
]
8787

8888
[tool.hatch.build.targets.wheel]
89-
packages = ["src/warp_agent_sdk"]
89+
packages = ["src/oz_agent_sdk"]
9090

9191
[tool.hatch.build.targets.sdist]
9292
# Basically everything except hidden files/directories (such as .github, .devcontainers, .python-version, etc)
@@ -154,7 +154,7 @@ show_error_codes = true
154154
#
155155
# We also exclude our `tests` as mypy doesn't always infer
156156
# types correctly and Pyright will still catch any type errors.
157-
exclude = ['src/warp_agent_sdk/_files.py', '_dev/.*.py', 'tests/.*']
157+
exclude = ['src/oz_agent_sdk/_files.py', '_dev/.*.py', 'tests/.*']
158158

159159
strict_equality = true
160160
implicit_reexport = true
@@ -246,7 +246,7 @@ length-sort = true
246246
length-sort-straight = true
247247
combine-as-imports = true
248248
extra-standard-library = ["typing_extensions"]
249-
known-first-party = ["warp_agent_sdk", "tests"]
249+
known-first-party = ["oz_agent_sdk", "tests"]
250250

251251
[tool.ruff.lint.per-file-ignores]
252252
"bin/**.py" = ["T201", "T203"]

release-please-config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,6 @@
6161
],
6262
"release-type": "python",
6363
"extra-files": [
64-
"src/warp_agent_sdk/_version.py"
64+
"src/oz_agent_sdk/_version.py"
6565
]
6666
}

scripts/lint

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ echo "==> Running mypy"
1919
uv run mypy .
2020

2121
echo "==> Making sure it imports"
22-
uv run python -c 'import warp_agent_sdk'
22+
uv run python -c 'import oz_agent_sdk'

0 commit comments

Comments
 (0)