github anthropics/claude-agent-sdk-python v0.1.29

latest releases: v0.1.50, v0.1.49, v0.1.48...
one month ago

New Features

  • New hook events: Added support for three new hook event types (#545):

    • Notification — for handling notification events with NotificationHookInput and NotificationHookSpecificOutput
    • SubagentStart — for handling subagent startup with SubagentStartHookInput and SubagentStartHookSpecificOutput
    • PermissionRequest — for handling permission requests with PermissionRequestHookInput and PermissionRequestHookSpecificOutput
  • Enhanced hook input/output types: Added missing fields to existing hook types (#545):

    • PreToolUseHookInput: added tool_use_id
    • PostToolUseHookInput: added tool_use_id
    • SubagentStopHookInput: added agent_id, agent_transcript_path, agent_type
    • PreToolUseHookSpecificOutput: added additionalContext
    • PostToolUseHookSpecificOutput: added updatedMCPToolOutput

Internal/Other Changes

  • Updated bundled Claude CLI to version 2.1.31

PyPI: https://pypi.org/project/claude-agent-sdk/0.1.29/

pip install claude-agent-sdk==0.1.29

Don't miss a new claude-agent-sdk-python release

NewReleases is sending notifications on new releases.