python-sdk: public Codex API, thread/turn controls, and UX examples#13954
Closed
shaqayeq-oai wants to merge 2 commits intomainfrom
Closed
python-sdk: public Codex API, thread/turn controls, and UX examples#13954shaqayeq-oai wants to merge 2 commits intomainfrom
shaqayeq-oai wants to merge 2 commits intomainfrom
Conversation
03e34cb to
f79e780
Compare
## Summary Foundation PR only (base for PR #3). This PR contains the SDK runtime foundation and generated artifacts: - pinned runtime binary in `sdk/python/bin/` (`codex` or `codex.exe` by platform) - single maintenance script: `sdk/python/scripts/update_sdk_artifacts.py` - generated protocol/types artifacts under: - `sdk/python/src/codex_app_server/generated/protocol_types.py` - `sdk/python/src/codex_app_server/generated/schema_types.py` - `sdk/python/src/codex_app_server/generated/v2_all/*` - generation-contract test wiring (`tests/test_contract_generation.py`) ## Release asset behavior `update_sdk_artifacts.py` now: - selects latest release by channel (`--channel stable|alpha`) - resolves the correct asset for current OS/arch - extracts platform binary (`codex` on macOS/Linux, `codex.exe` on Windows) - keeps runtime on single pinned binary source in `sdk/python/bin/` ## Scope boundary - ✅ PR #2 = binary + generation pipeline + generated types foundation - ❌ PR #2 does **not** include examples/integration logic polish (that is PR #3) ## Validation - Ran: `python scripts/update_sdk_artifacts.py --channel stable` - Regenerated and committed resulting generated artifacts - Local tests pass on branch
f79e780 to
db89d8d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Logic/UX PR stacked on top of #2.
This PR contains runtime-facing SDK logic and developer experience work:
Codex, async wrappers, minimal surface, typed helpers)sync.py+async.py)tests/test_real_app_server_integration.py)sdk/python/notebooks/sdk_walkthrough.ipynbScope boundary
Validation run
pytestpassesRUN_REAL_CODEX_TESTS=1 pytest tests/test_real_app_server_integration.pypassesBase
python-sdk-types-foundation(PR (cleanup) add link to https://cookbook.openai.com for apply_patch and minor tidy up #2)