recall&build
AI ENGINEERING / 01Sign in to sync

OPENAI PATH · O2 · AGENTS SDK

Keep state. Control the handoff.

Add isolated sessions, clear specialist ownership and approval before actions.

Download lab

60 minutes · Python 3.12+ · Notebook + terminal · Local core needs no API key.

Start with a testable local contract.

Download and extract the lab on your laptop. Open lesson.ipynb or follow README.md. Use Python 3.12+. The local core uses fictional fixtures and does not call an API.

Work inside the extracted 09-openai-sdk-control folder. The starter tests intentionally fail until you implement the TODO functions in exercise.py.

Notebook and Windows setup

Open lesson.ipynb using your existing Jupyter environment, or install JupyterLab in the virtual environment.

TERMINAL
python -m pip install jupyterlab
python -m jupyterlab lesson.ipynb

Windows PowerShell activation:

TERMINAL
py -3.12 -m venv .venv
.venv\Scripts\Activate.ps1
TERMINAL
python3 -m venv .venv
source .venv/bin/activate
python -m unittest -v test_exercise
Agents SDK guide

Done when The starter tests run and you can explain the first TODO.

Sign in to save progress and private notes. The app does not execute or grade your local code.

YOUR EVIDENCE

What actually happened?

Only you can see these notes.

Go deeper at the source.

These are original companion exercises, not official OpenAI training. Sources and SDK versions were checked 2026-10-04. The download includes precise source references and the distinction between fixture tests and real API behavior.

Agents SDK guide

OpenAI Agents SDK for Python

Signed-in profiles and learning activity are visible to the app owner. Project notes stay private. Your profile & data