Skip to main content
Short-term sessions store event history for the same user and conversation. VeADK Java wraps session services with ShortTermMemory and uses it in Runner to resolve or create sessions.

Multi-Turn Usage

Reuse the same userId and sessionId across turns:

Context Window

Short-term sessions can be combined with context window and tool-result compression policies to avoid oversized history or tool output.

Production Notes

In-memory storage is suitable for examples. Production deployments should use stable session storage and define lifecycle, cleanup, and user-isolation policies.
Last modified on October 20, 2026