Narrow Python SDK root exports

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Ahmed Ibrahim
2026-05-09 10:35:44 +03:00
parent 8b8e868140
commit 692c08faf9
7 changed files with 126 additions and 55 deletions

View File

@@ -3,8 +3,9 @@
Experimental Python SDK for `codex app-server` JSON-RPC v2 over stdio, with a small default surface optimized for real scripts and apps.
The generated wire-model layer is sourced from the pinned `openai-codex-cli-bin`
runtime package and exposed as Pydantic models with snake_case Python fields
that serialize back to the app-servers camelCase wire format.
runtime package. The package root exports the supported ergonomic SDK surface
plus selected public value types; generated transport modules are shipped for
runtime use but are not the supported public API.
## Install
@@ -110,4 +111,4 @@ This supports the CI release flow:
- Use context managers (`with Codex() as codex:`) to ensure shutdown.
- Prefer `thread.run("...")` for the common case. Use `thread.turn(...)` when
you need streaming, steering, or interrupt control.
- For transient overload, use `codex_app_server.retry.retry_on_overload`.
- For transient overload, import `retry_on_overload` from `codex_app_server`.