python-sdk: split stream and control examples (2026-03-16)

- make 03_turn_stream_events a clean streaming example with curated event output
- add 14_turn_controls as a separate steer and interrupt demo with concise summaries
- update the notebook and runtime-backed example assertions to match the new example shapes

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Shaqayeq
2026-03-16 22:51:52 -07:00
parent bb551e0342
commit 199b74248b
7 changed files with 252 additions and 47 deletions

View File

@@ -60,7 +60,7 @@ python examples/01_quickstart_constructor/async.py
- `02_turn_run/`
- inspect full turn output fields
- `03_turn_stream_events/`
- stream and print raw notifications
- stream a turn with a small curated event view
- `04_models_and_metadata/`
- read server metadata and model list
- `05_existing_thread/`
@@ -81,3 +81,5 @@ python examples/01_quickstart_constructor/async.py
- one turn using most optional `turn(...)` params (sync + async)
- `13_model_select_and_turn_params/`
- list models, pick highest model + highest supported reasoning effort, run turns, print message and usage
- `14_turn_controls/`
- separate best-effort `steer()` and `interrupt()` demos with concise summaries