mirror of
https://github.com/anthropics/claude-code-sdk-python.git
synced 2025-12-23 09:19:52 +00:00
Add support for limiting API costs using the max_budget_usd option, mirroring the TypeScript SDK functionality. When the budget is exceeded, query execution stops and returns a result with subtype 'error_max_budget_usd'. - Add max_budget_usd field to ClaudeAgentOptions - Pass --max-budget-usd flag to Claude Code CLI - Add test coverage for budget limit behavior 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| plugins/demo-plugin | ||
| agents.py | ||
| hooks.py | ||
| include_partial_messages.py | ||
| max_budget_usd.py | ||
| mcp_calculator.py | ||
| plugin_example.py | ||
| quick_start.py | ||
| setting_sources.py | ||
| stderr_callback_example.py | ||
| streaming_mode.py | ||
| streaming_mode_ipython.py | ||
| streaming_mode_trio.py | ||
| system_prompt.py | ||
| tool_permission_callback.py | ||