Runnable Examples#
These pages map to the v1.2 example/01_hello_agent.py through example/10_provider_variation.py ladder. Each script introduces one concept and keeps the public OpenRath surface in focus.
The v1.2 examples move from the smallest agent call to sessions, sandboxes, tools, streaming, compression, memory, and provider variation.#
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 |
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.