Releases: anthropics/claude-agent-sdk-python
Releases · anthropics/claude-agent-sdk-python
v0.1.48
Bug Fixes
- Fine-grained tool streaming: Fixed
include_partial_messages=Truenot deliveringinput_json_deltaevents by enabling theCLAUDE_CODE_ENABLE_FINE_GRAINED_TOOL_STREAMINGenvironment variable in the subprocess. This regression affected versions 0.1.36 through 0.1.47 for users without the server-side feature flag (#644)
Internal/Other Changes
- Updated bundled Claude CLI to version 2.1.71
PyPI: https://pypi.org/project/claude-agent-sdk/0.1.48/
pip install claude-agent-sdk==0.1.48v0.1.47
Internal/Other Changes
- Updated bundled Claude CLI to version 2.1.70
PyPI: https://pypi.org/project/claude-agent-sdk/0.1.47/
pip install claude-agent-sdk==0.1.47v0.1.46
New Features
- Session history functions: Added
list_sessions()andget_session_messages()top-level functions for retrieving past session data (#622) - MCP control methods: Added
add_mcp_server(),remove_mcp_server(), and typedMcpServerStatusfor runtime MCP server management (#620) - Typed task messages: Added
TaskStarted,TaskProgress, andTaskNotificationmessage subclasses for better type safety when handling task-related events (#621) - ResultMessage stop_reason: Added
stop_reasonfield toResultMessagefor inspecting why a conversation turn ended (#619) - Hook input enhancements: Added
agent_idandagent_typefields to tool-lifecycle hook inputs (PreToolUseHookInput,PostToolUseHookInput,PostToolUseFailureHookInput) (#628)
Bug Fixes
- String prompt MCP initialization: Fixed an issue where passing a string prompt would close stdin before MCP server initialization completed, causing MCP servers to fail to register (#630)
Internal/Other Changes
- Updated bundled Claude CLI to version 2.1.69
PyPI: https://pypi.org/project/claude-agent-sdk/0.1.46/
pip install claude-agent-sdk==0.1.46v0.1.45
Internal/Other Changes
- Updated bundled Claude CLI to version 2.1.63
PyPI: https://pypi.org/project/claude-agent-sdk/0.1.45/
pip install claude-agent-sdk==0.1.45v0.1.44
Internal/Other Changes
- Updated bundled Claude CLI to version 2.1.59
PyPI: https://pypi.org/project/claude-agent-sdk/0.1.44/
pip install claude-agent-sdk==0.1.44v0.1.43
Internal/Other Changes
- Updated bundled Claude CLI to version 2.1.56
PyPI: https://pypi.org/project/claude-agent-sdk/0.1.43/
pip install claude-agent-sdk==0.1.43v0.1.42
Internal/Other Changes
- Updated bundled Claude CLI to version 2.1.55
PyPI: https://pypi.org/project/claude-agent-sdk/0.1.42/
pip install claude-agent-sdk==0.1.42v0.1.41
Internal/Other Changes
- Updated bundled Claude CLI to version 2.1.52
PyPI: https://pypi.org/project/claude-agent-sdk/0.1.41/
pip install claude-agent-sdk==0.1.41v0.1.40
Bug Fixes
- Unknown message type handling: Fixed an issue where unrecognized CLI message types (e.g.,
rate_limit_event) would crash the session by raisingMessageParseError. Unknown message types are now silently skipped, making the SDK forward-compatible with future CLI message types (#598)
Internal/Other Changes
- Updated bundled Claude CLI to version 2.1.51
PyPI: https://pypi.org/project/claude-agent-sdk/0.1.40/
pip install claude-agent-sdk==0.1.40v0.1.39
Internal/Other Changes
- Updated bundled Claude CLI to version 2.1.49
PyPI: https://pypi.org/project/claude-agent-sdk/0.1.39/
pip install claude-agent-sdk==0.1.39