Runnable Examples#
These pages map to the v1-compatible example/01_hello_agent.py through
example/12_compile.py ladder retained in OpenRath v2.0.0. Each script
introduces one concept and keeps the public OpenRath surface in focus.
The examples move from the smallest agent call to sessions, sandboxes, tools, streaming, memory, dynamic routing, and static resource inspection.
Ladder#
# |
Page |
Script |
Needs key? |
|---|---|---|---|
01 |
|
yes |
|
02 |
|
no |
|
03 |
|
yes |
|
04 |
|
yes |
|
05 |
|
yes |
|
06 |
|
no |
|
07 |
|
yes |
|
08 |
|
yes |
|
09 |
|
no for remember/recall |
|
10 |
|
yes |
|
11 |
|
yes |
|
12 |
|
no |
Setup#
Run examples from the OpenRath repository root:
python example/02_session_lineage.py
Examples that call a real LLM read provider settings from environment variables or ~/.openrath/config.json:
export OPENAI_API_KEY=...
export OPENAI_BASE_URL=...
export OPENAI_DEFAULT_MODEL=...
The former large demos (trading_agents, engineering_agents, research_transformer) are no longer the main tutorial path. Treat them as migration/reference material if they exist in an older branch.