Session state is the volatile, in-memory data structure that captures the real-time context of an agent's interaction with a user or environment. It includes the conversation history, intermediate reasoning steps, tool call outputs, and user preferences specific to that session. This ephemeral state is essential for maintaining coherence, enabling multi-turn dialogue, and providing personalized responses without requiring persistent storage for every transient detail. It is typically bounded by a session timeout or explicit termination event.
