Skip to main content
All Python modules · Import and compatibility guidance

Exports

ADKSessionStorage

Deployment-owned ADK session backend configuration.
Fields (— means no declared default):

ADKSessionStorage.create_service

Create the native ADK session service for a compiled application.

InMemorySessionStore

Development store; inject a durable SessionStore in production.

InMemorySessionStore.start

Satisfy the application-owned store lifecycle without external I/O.

InMemorySessionStore.create

Create one process-local tenant-scoped session.

InMemorySessionStore.get

Read one process-local tenant-scoped session.

InMemorySessionStore.list

List an ordered keyset page without materializing unrelated users.

InMemorySessionStore.update

Merge a state delta into a process-local session.

InMemorySessionStore.delete

Delete one process-local session after its active lease exits.

InMemorySessionStore.acquire

Hold exclusive access to one process-local session.

InMemorySessionStore.close

Discard all process-local session state.

SessionLease

Exclusive session access held across one graph execution.

SessionLease.record

Return the current session snapshot held by this lease.

SessionLease.patch_state

Merge a state delta and return the updated session snapshot.

SessionLease.replace_state

Replace framework-owned state and return the updated session.

SessionLease.replace_application_data

Replace application-owned data and return the updated session.

SessionStore

Persistent session state with tenant scoping and execution leases. Production implementations should use set-based listing, durable writes, and a distributed lease. Durable mutations are also responsible for the repository’s privacy-safe OTEL audit contract after commit.

SessionStore.start

Initialize resources required by the session store.

SessionStore.create

Create one tenant-scoped session.

SessionStore.get

Read one tenant-scoped session when it exists.

SessionStore.list

Return an ordered, optionally paginated session list for one user.

SessionStore.update

Merge a state delta into an existing tenant-scoped session.

SessionStore.delete

Delete one tenant-scoped session and report whether it existed.

SessionStore.acquire

Acquire exclusive execution access to one tenant-scoped session.

SessionStore.close

Release resources owned by the session store.