claude-code-sdk-python/examples
Ashwin Bhat dbb153b1f6
Some checks are pending
Lint / lint (push) Waiting to run
Test / test (3.10) (push) Waiting to run
Test / test (3.11) (push) Waiting to run
Test / test (3.12) (push) Waiting to run
Test / test (3.13) (push) Waiting to run
Test / test-e2e (3.10) (push) Blocked by required conditions
Test / test-e2e (3.11) (push) Blocked by required conditions
Test / test-e2e (3.12) (push) Blocked by required conditions
Test / test-e2e (3.13) (push) Blocked by required conditions
Test / test-examples (3.10) (push) Blocked by required conditions
Test / test-examples (3.11) (push) Blocked by required conditions
Test / test-examples (3.12) (push) Blocked by required conditions
Test / test-examples (3.13) (push) Blocked by required conditions
feat: refactor system_prompt to support preset and append options (#183)
Replace separate system_prompt and append_system_prompt fields with a
single system_prompt field that accepts:
- string: custom system prompt
- {"preset": "claude_code"}: use default Claude Code prompt
- {"preset": "claude_code", "append": "..."}: default prompt with
additions
- None/undefined: vanilla Claude with no system prompt

This matches the TypeScript SDK API design and provides more flexible
system prompt configuration.

🤖 Generated with [Claude Code](https://claude.ai/code)

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-09-26 12:59:27 -07:00
..
agents.py feat: add agents and setting sources support (#182) 2025-09-26 12:52:46 -07:00
hooks.py Hooks: Clean up types and implement example (#153) 2025-09-08 13:45:21 -07:00
include_partial_messages.py Add support for streaming partial messages via include_partial_messages option (#168) 2025-09-17 16:32:21 -07:00
mcp_calculator.py Update changelog, readme, and examples for custom tools and hooks (#162) 2025-09-12 08:14:34 -07:00
quick_start.py cost_usd -> total_cost_usd in example 2025-06-25 15:18:52 -04:00
setting_sources.py feat: add agents and setting sources support (#182) 2025-09-26 12:52:46 -07:00
streaming_mode.py Remove max thinking tokens (#144) 2025-09-12 02:22:01 -07:00
streaming_mode_ipython.py feat: Add in-process SDK MCP server support (#142) 2025-09-03 08:29:32 -07:00
streaming_mode_trio.py Make streaming implementation trio-compatible (#84) 2025-07-22 23:31:42 -07:00
system_prompt.py feat: refactor system_prompt to support preset and append options (#183) 2025-09-26 12:59:27 -07:00
tool_permission_callback.py Add custom tool callbacks and e2e tests (#157) 2025-09-08 08:51:40 -07:00