Agent SDK reference - TypeScript changedagent-sdk/typescript
Nearest release: v2.1.293, published under 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 7 Oct 2026 18: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 7 Oct 2026 18:07 UTC.
Upstream edited
Recorded here
Lines+0added
Lines−2removed
From line
2
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits115to this page, all time
The whole hunk
from line 2, old and new numbered
/
This page is larger than the 256 KiB this site keeps, so one side of the diff below stops where the stored text does.
from line 2
22
33> Complete API reference for the TypeScript Agent SDK, including all functions, types, and interfaces.
44
5<script src="/docs/components/typescript-sdk-type-links.js" defer />
6
75## Installation
86
97```bash theme={null}
from line 5372
53745372* `idle`: Claude Code is waiting for your next prompt.
53755373* `requires_action`: the session is blocked on an answer to a request it sent your host, such as a permission prompt.
53765374
5377A turn's `idle` message and its `result` message can arrive in either order. To change whether `idle` waits for background work such as a background subagent or a [workflow](/docs/
5375A turn's `idle` message and its `result` message can arrive in either order. To change whether `idle` waits for background work such as a background subagent or a [workflow](/docs/en/workflows) run, see [`CLAUDE_CODE_BG_TASKS_REPORT_RUNNING`](/docs/e
No line in this hunk matches that.