Agent SDK reference - Python changedagent-sdk/python
Nearest release: v2.1.329, published 4 hours 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 19 Nov 2026 23:04 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 19 Nov 2026 23:07 UTC.
Upstream edited
Recorded here
Lines+2added
Lines−2removed
From line
1,172
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 1172, old and new numbered
/
from line 1172
11721172 "default", # Standard permission behavior
11731173 "acceptEdits", # Auto-accept file edits
11741174 "plan", # Planning mode - Claude explores and plans
1175 "dontAsk", # Deny anything not pre-approved instead of prompting
1175 "dontAsk", # Deny calls that would otherwise prompt
11761176 "bypassPermissions", # Bypass permission checks; explicit ask rules still prompt (use with caution)
11771177 "auto", # A model classifier reviews actions such as shell commands and network requests
11781178]
from line 2624
26242624 ],
26252625 "resolvedModel": str | None, # Model the subagent started on
26262626 "modelsUsed": list[str] | None, # Models used in order, with consecutive repeats collapsed
2627 "totalToolUseCount": int, # Number of tool calls the agent made
2627 "totalToolUseCount": int, # Number of tool calls the agent made, excluding SubagentHandback calls
26282628 "totalDurationMs": int, # Execution duration in milliseconds
26292629 "totalTokens": int, # Token count from the final API request, not the whole run
26302630 "usage": { # Token usage statistics
No line in this hunk matches that.