Runnable examples demonstrating Cycles governance with the OpenAI Agents SDK.
pip install runcycles-openai-agents
export CYCLES_BASE_URL=http://localhost:7878
export CYCLES_API_KEY=cyc_live_...
export OPENAI_API_KEY=sk-...| Example | Description |
|---|---|
| basic_budget.py | LLM token budget enforcement — every LLM call is reserved and committed |
| tool_governance.py | Tool estimate mapping — higher-estimate tools consume more budget, read-only tools use zero estimate |
| multi_agent.py | Multi-agent handoff with shared budget and pre-run guardrail |