Hosting the Agent SDK changedagent-sdk/hosting
Nearest release: v2.1.273, published 2 hours before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Recorded here
Lines+3added
Lines−3removed
From line
131
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits18to this page, all time
The whole hunk
from line 131, old and new numbered
/
from line 131
131131
132132 declare const userInput: string;
133133 declare const sessionId: string; // looked up from your database by user
134 declare const sessionStore: SessionStore; // S3, Redis, Postgres, or your own adapter
134 declare const sessionStore: SessionStore; // an object store, key-value store, database, or your own adapter
135135
136136 for await (const message of query({
137137 prompt: userInput,
from line 147
147147
148148 user_input: str = ...
149149 session_id: str = ... # looked up from your database by user
150 session_store: SessionStore = ... # S3, Redis, Postgres, or your own adapter
150 session_store: SessionStore = ... # an object store, key-value store, database, or your own adapter
151151
152152
153153 async def main():
from line 212
212212
213213### Session and state persistence
214214
215Default local disk is lost on restart, scale-down, or a move to a different node. For any session a user expects to resume, mirror the transcript to durable storage with a [`SessionStore` adapter](/docs/en/agent-sdk/session-storage). See [Reference implementations](/docs/en/agent-sdk/session-storage#reference-implementations) for S3, Redis, and Postgres adapters and a conformance suite for your own.
215Default local disk is lost on restart, scale-down, or a move to a different node. For any session a user expects to resume, mirror the transcript to durable storage with a [`SessionStore` adapter](/docs/en/agent-sdk/session-storage). See [Reference implementations](/docs/en/agent-sdk/session-storage#reference-implementations) for example adapters for an object store, a key-value store, and a database, and a conformance suite for your own.
216216
217217Three things to know about how `SessionStore` behaves:
218218
No line in this hunk matches that.