v2.0.1 — AI API finalized, lease-based guards, canonical examples
This release finalizes the AI API and stabilizes SDK behavior for agents and long-running jobs.
Highlights
- Finalized AI client with high-level
run_and_wait()and low-level AI Lease API - Exactly-once local side-effects via AI leases (payments, emails, webhooks)
- Canonical AI examples (
examples/ai/) covering jobs, polling, results, and LangChain tools - Clear separation between automation (
check_lock) and AI usage (AI plans) - Improved documentation and README aligned with AI API v2.x
- Comprehensive tests for parsing, fail-open behavior, and LangChain integrations
Notes
- AI usage is charged once per key; polling is free
- Fail-open applies only to network/5xx errors (not auth, limits, validation, or rate limits)
Recommended for all users building AI agents or distributed workflows.