> ## Documentation Index
> Fetch the complete documentation index at: https://docs.veadk.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Short-Term Sessions

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:

```java theme={null}
Runner runner = new Runner(agent, "memory_demo");
runner.run("user_1", "session_1", "My name is Ming.");
runner.run("user_1", "session_1", "What is my name?");
```

## 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.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.