New Features
snapshotoption for system prompts: Added asnapshotfield toSystemPromptPresetand a newSystemPromptCustomtyped dict. Whensnapshotis True, the session keeps the system prompt recorded on its first request, improving prompt-caching behavior across resumed sessions. When False, the prompt is rebuilt on every request, useful for iterating onappendtext. Requires CLI 2.1.257+ (#1268)
Internal/Other Changes
- Updated bundled Claude CLI to version 2.1.273
PyPI: https://pypi.org/project/claude-agent-sdk/0.2.153/
pip install claude-agent-sdk==0.2.153