Agent SDK reference - Python changedagent-sdk/python
Nearest release: v2.1.327, published 2 hours after 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 17 Nov 2026 18:21 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 17 Nov 2026 18:37 UTC.
Upstream edited
Recorded here
Lines+2added
Lines−1removed
From line
3,068
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits85to this page, all time
The whole hunk
from line 3068, old and new numbered
/
from line 3068
30683068 "totalLines": int | None, # Optional total before head_limit and offset, in content mode
30693069 "appliedLimit": int | None, # Present when head_limit truncated the result
30703070 "appliedOffset": int | None, # Present when an offset was applied
3071 "timedOut": bool | None, # True when the search ran out of time, so results may be incomplete
30713072}
30723073```
30733074
30743075Grep returns this dict shape in each output mode. Which optional keys are present depends on `output_mode`.
30753076
3076`totalFiles` requires Claude Code v2.1.208 or later. `totalLines` requires Claude Code v2.1.210 or later.
3077`totalFiles` requires Claude Code v2.1.208 or later. `totalLines` requires Claude Code v2.1.210 or later. `timedOut` requires Claude Code v2.1.317 or later.
30773078
30783079### NotebookEdit
30793080
No line in this hunk matches that.