15. Hands-on runs: verify mechanisms first, then connect a real model
All companion files live in this tutorial’s siblingdemos/ directory. Local teaching demos only use the Python standard library and Node’s built-in modules. Python 3.11+ is required; this run actually used 3.14.7.
15.1 What this session actually verified
The App Server probe exited early inside a restricted sandbox on the first try. After being allowed to retry outside the sandbox, it initialized successfully. The probe process has ended and did not leave a background agent task behind.
15.2 Real App Server probe
thread/start or turn/start. If you want to write your own client, generate the current protocol version first:
15.3 Real model API examples
ConfigureOPENAI_API_KEY in a private local environment variable. Do not put it in a tutorial or Git. This article does not read or use your API key. Once you have confirmed model and account support, you can run:
ws:
gpt-6-astra from the screenshots, without silently downgrading to another model. Run each mode separately to avoid violating combination constraints such as async/PTC or steering/auto compaction. The online examples were not actually run this session. Quota, network, and API evolution can affect execution. If an unsupported field appears, check the official docs and model permissions first, and do not guess field names.