Skip to content
Blog
Tag

“sessions”

Google ADK: Building an Omnichannel Memory System Across Web, Mobile, and Voice Agents

Google ADK: Building an Omnichannel Memory System Across Web, Mobile, and Voice Agents

Design one memory layer serving web chat, mobile push, and live voice agents in ADK — sessions, state prefixes, MemoryService ingestion, and channel-specific trade-offs.

December 4, 2026 AI Assistant
Google ADK: Bridging Redis as a Distributed Caching Layer for ADK Sessions

Google ADK: Bridging Redis as a Distributed Caching Layer for ADK Sessions

Put Redis in front of ADK SessionService to cut session-read latency across replicas. A tutorial with a read-through cache wrapper, TTL tuning, and invalidation on append_event.

December 4, 2026 AI Assistant
Google ADK: State Migration Strategies When Upgrading Agent Data Schemas

Google ADK: State Migration Strategies When Upgrading Agent Data Schemas

Version, dual-read, and backfill ADK session state safely. Covers migrate-on-read callbacks, EventActions deltas, and the adk migrate session CLI for v0→v1 databases.

December 4, 2026 AI Assistant
DatabaseSessionService: Persisting Conversations to PostgreSQL and Cloud SQL

DatabaseSessionService: Persisting Conversations to PostgreSQL and Cloud SQL

Swap InMemorySessionService for DatabaseSessionService and conversations survive every redeploy — with the right async driver, two-tiered locking for multi-replica deployments, and the v1.22.0 session schema migration.

December 3, 2026 AI Assistant
Cross-Session Long-Term Memory: Storing Facts and Preferences Across User Turns

Cross-Session Long-Term Memory: Storing Facts and Preferences Across User Turns

Give your ADK agent a memory that outlives the chat: the MemoryService write and read paths, the three implementations compared, and the after_agent_callback pattern that remembers conversations automatically.

December 3, 2026 AI Assistant
Implementing a User Forget-Me Tool for GDPR/CCPA Compliance in ADK

Implementing a User Forget-Me Tool for GDPR/CCPA Compliance in ADK

Right to erasure in an agent app means deleting sessions, artifacts, user-scoped state, and any memory backend copies — with an audit trail. Here is the erase flow built on list_sessions, delete_session, artifact deletion, and honest limits of ADK's MemoryService.

December 3, 2026 AI Assistant
Multi-User Shared Sessions: Collaborative Multi-Party Agent Workspaces

Multi-User Shared Sessions: Collaborative Multi-Party Agent Workspaces

ADK models a session as one user's thread with the agent — there is no built-in multi-party session. This post is honest about that and builds three workable collaboration patterns, with permission boundaries, auditability, and the temp: scope trap spelled out.

December 3, 2026 AI Assistant
Replaying Historical Sessions for Auditing and Offline Debugging

Replaying Historical Sessions for Auditing and Offline Debugging

A session is an ordered event log — replay it to rebuild state at any point, generate audit transcripts, and bisect bad invocations, with Runner.rewind_async as the interactive counterpart.

December 3, 2026 AI Assistant
Storing Conversation Attachments and Blobs: Cloud Storage Session Linking

Storing Conversation Attachments and Blobs: Cloud Storage Session Linking

Put uploads and generated files in ADK artifacts backed by GcsArtifactService — versioned, session- or user-scoped, referenced from state instead of stuffed into it.

December 3, 2026 AI Assistant
Session Expiration and TTL Management in High-Traffic Production Apps

Session Expiration and TTL Management in High-Traffic Production Apps

ADK core has no built-in per-session TTL — this post shows the production patterns you own instead: scheduled delete_session sweeps, DB-level retention jobs, archival to GCS/BigQuery, and graceful SessionNotFoundError handling.

December 3, 2026 AI Assistant
Managing Session Lifecycle: Creation, Retrieval, Archival, and Deletion

Managing Session Lifecycle: Creation, Retrieval, Archival, and Deletion

A practical tour of the ADK session lifecycle — the five SessionService operations, how the Runner drives each turn, SessionNotFoundError recovery, and patterns for listing, archiving, and deleting conversations.

December 3, 2026 AI Assistant
User Preference Profiling: Automatically Extracting Entity Attributes to State

User Preference Profiling: Automatically Extracting Entity Attributes to State

Use output_key and EventActions.state_delta to extract user preferences into user:-scoped state, read them back with get_user_state, and personalize every future session without re-prompting.

December 3, 2026 AI Assistant
VertexAiSessionService: Fully-Managed Enterprise Session Storage

VertexAiSessionService: Fully-Managed Enterprise Session Storage

Run ADK conversations on Google Cloud's managed Agent Platform: what VertexAiSessionService requires, why app_name must be the Reasoning Engine resource, and how to work around its get_user_state gap.

December 3, 2026 AI Assistant
InMemorySessionService: Quick Prototyping and Ephemeral Multi-Turn State

InMemorySessionService: Quick Prototyping and Ephemeral Multi-Turn State

What a SessionService is, how to set up InMemorySessionService for multi-turn conversations in local development, its data-loss caveats, how to test against it, and when to graduate to DatabaseSessionService or VertexAiSessionService.

December 2, 2026 AI Assistant
State vs Memory vs Sessions: Deconstructing Persistence in ADK

State vs Memory vs Sessions: Deconstructing Persistence in ADK

A conceptual map of ADK persistence: sessions as conversation containers, state as a scoped key-value scratchpad, memory as cross-session knowledge, and artifacts for bulk data — with a decision table for when to use each.

December 2, 2026 AI Assistant
Managing Multi-Tenant ADK Instances: Isolating App Names and User Scopes

Managing Multi-Tenant ADK Instances: Isolating App Names and User Scopes

How ADK's (app_name, user_id, session_id) triple becomes a real tenancy boundary — scoping sessions, state, artifacts, and services so one tenant can never read another's data.

November 25, 2026 AI Assistant
Understanding the ADK Anatomy: Agents, Runners, Sessions, Events, and Tools

Understanding the ADK Anatomy: Agents, Runners, Sessions, Events, and Tools

A guided tour of ADK's runtime anatomy: LlmAgent, Runner, Session, Event and Tools, plus the yield/pause/resume event loop that ties them together.

November 24, 2026 AI Assistant
Threading Model of the OpenAI Agents SDK: Sessions, Resumptions, and Re-Runs

Threading Model of the OpenAI Agents SDK: Sessions, Resumptions, and Re-Runs

How the OpenAI Agents SDK threads conversation state: sessions, interrupted-run resumptions, compaction, and the SQLite trust boundary.

October 18, 2026 AI Assistant