Documentation ¶ Overview ¶ Example: cap total session spend with WithMaxBudgetUSD. The SDK observes usage_update notifications, tracks cumulative cost, and calls Session.Cancel when the budget is exceeded. Run with `go run ./examples/max_budget_usd`. Source Files ¶ View all Source files main.go Click to show internal directories. Click to hide internal directories.