What's changed
- Added the
Interrupthook event andInterruptHookInputtype - Added
utilization_preciseto theget_usageresponse's rate-limit windows andmodel_scopedrows: the same percentage to one decimal place, when the server sends it - Changed the Agent tool's
tool_use_resultsocontentno longer opens with the list of tools a subagent called - Changed Read's PDF page results: read the images from
tool_result, or in aPostToolUsehook the call waits for, not fromfile.outputDirafterwards - Updated to parity with Claude Code v2.1.335
Update
npm install @anthropic-ai/claude-agent-sdk@0.3.335
# or
yarn add @anthropic-ai/claude-agent-sdk@0.3.335
# or
pnpm add @anthropic-ai/claude-agent-sdk@0.3.335
# or
bun add @anthropic-ai/claude-agent-sdk@0.3.335