Agent SDK reference - Python changedagent-sdk/python
Nearest release: v2.1.335, published 9 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 2 Dec 2026 12:24 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 2 Dec 2026 12:37 UTC.
Upstream edited
Recorded here
Lines+2added
Lines−2removed
From line
1,850
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits93to this page, all time
The whole hunk
from line 1850, old and new numbered
/
from line 1850
18501850
18511851| Field | Type | Description |
18521852| :- | :- | :- |
1853| `new_conversation_id` | `str` | Opaque identifier for the fresh conversation. Not the `session_id` of subsequent messages; read that from the next message |
1853| `new_conversation_id` | `str` | Opaque identifier for the fresh conversation, separate from the new `session_id` |
18541854| `uuid` | `str` | Unique message identifier |
1855| `session_id` | `str` | ID of the session that was reset. Messages after the reset carry a new `session_id` |
1855| `session_id` | `str` | ID of the session that was reset. Read the new `session_id` from the `ResultMessage` of the `/clear` turn |
18561856
18571857### `TaskStartedMessage`
18581858
No line in this hunk matches that.