Skip to content

v0.2.153

Choose a tag to compare

@github-actions github-actions released this 15 Sep 20:38
· 12 commits to main since this release

New Features

  • snapshot option for system prompts: Added a snapshot field to SystemPromptPreset and a new SystemPromptCustom typed dict. When snapshot is 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 on append text. 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