← Cookbook

✅ runnablePython ✓TypeScript ✓

Recipe 14 — Implement L2 (SUGGEST) AI agent autonomy

Status: ✅ runnable SDK surface: client.ai.set_autonomy_tier(tier="L2", scope=...) Server endpoint: POST /v1/ai/autonomy TZ reference: TZ-2 §29.5 (autonomy ladder L0-L3)

Sets the AI assistant's autonomy tier to L2 SUGGEST for the rebalance action: the AI proposes changes (rebalance a strategy, adjust risk breakers) but the user must approve each suggestion before it executes. Compare L0 (OFF) / L1 (OBSERVE) / L2 (SUGGEST) / L3 (AUTONOMOUS).

PYTHONPATH=packages/sdk-py/src python cookbook/recipes/14-l2-suggest-autonomy/python_example.py
npx tsx cookbook/recipes/14-l2-suggest-autonomy/typescript_example.ts

Source: cookbook/recipes/14-l2-suggest-autonomy/README.md