Agent SDK reference - TypeScript changedagent-sdk/typescript
Nearest release: v2.1.326, published 5 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 16 Nov 2026 23:57 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 00:07 UTC.
Upstream edited
Recorded here
Lines+1added
Lines−1removed
From line
1,740
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits147to this page, all time
The whole hunk
from line 1740, 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 1740
17401740`SDKAssistantMessageError` is one of: `'authentication_failed'`, `'oauth_org_not_allowed'`, `'account_on_hold'`, `'billing_error'`, `'rate_limit'`, `'overloaded'`, `'invalid_request'`, `'model_not_found'`, `'server_error'`, `'max_output_tokens'`, `'cloud_credential_error'`, or `'unknown'`. Four of these values mean more than their names say:
17411741
17421742* `'model_not_found'`: the selected model doesn't exist or isn't available to your account or deployment
1743* `'overloaded'`: the API returned a 529 because the server is at capacity, as opposed to `'rate_limit'`, which is a 429 against your quota
1743* `'overloaded'`: appears on [`api_retry` events](https://code.claude.com/docs/en/headless#handle-api-retries) when the API returns a 529 because the server is at capacity. When an HTTP 529 ends the turn, the assistant message carries `'server_error'`. A 429 against your quota is `'rate_limit'`
17441744* `'account_on_hold'`: [your account is on hold](https://code.claude.com/docs/en/errors.md#your-account-is-on-hold)
17451745* `'cloud_credential_error'`: Claude Code couldn't obtain usable AWS or Google Cloud credentials on the machine it runs on, so no request reached the cloud provider. The usual cause is a cloud sign-in that expired or was never completed on that machine, though a briefly unreachable credential service reports the same value. See [Could not load AWS or Google Cloud credentials](https://code.claude.com/docs/en/errors.md#could-not-load-aws-or-google-cloud-credentials). Requires TypeScript Agent SDK v0.3.267 or later, which bundles Claude Code v2.1.267
17461746
from line 4727
47274727};
47284728```
47294729
4730Returns the contents of the requested MCP resource.
4731
4732### EnterWorktree
4733
4734**Tool name:** `EnterWorktree`
4735
4736```typescript theme={null}
4737type EnterWorktreeOutput = {
4738 worktreePath: string;
4739
4730Returns the contents of the
No line in this hunk matches that.