Follow Discord
Sweep 03 Nov 2026 · 22:27Z Build v2.1.318 536 read Stable v2.1.311 Latest v2.1.318 Next v2.1.318 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · claude-code

Agent SDK reference - Python changedagent-sdk/python

Nearest release: v2.1.318, published an hour before upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Upstream edited this page at 3 Nov 2026 23:05 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 3 Nov 2026 23:07 UTC.

Upstream edited
Recorded here
Lines+6added
Lines−1removed
From line 2,157 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits68to this page, all time

The whole hunk

from line 2157, old and new numbered
/
lines
from line 2157
21572157 None # Timeout in seconds. When omitted, the per-event default applies:
21582158 # 600 for most events, 30 for UserPromptSubmit
21592159 )
2160 on_failure: Literal["continue", "block"] | None = (
2161 None # "block" blocks the action when a callback fails
2162 )
21602163```
2164 
2165To decide what `on_failure` covers, see [Block the action when a callback fails](https://code.claude.com/docs/en/agent-sdk/hooks.md#block-the-action-when-a-callback-fails).
21612166 
21622167### `HookInput`
21632168 
Feedback