What is a Session in Parlant
developA session represents a continuous, structured interaction between an agent and a customer. Unlike many frameworks that assume a rigid turn-by-turn model (Message $\rightarrow$ Reply), Parlant uses a Modern Interaction Model that supports real-world conversational patterns, such as:
- Multiple customer messages sent before an agent responds.
- Agent-initiated follow-ups or status updates (e.g., putting a customer on hold).
- Asynchronous events like tool calls and status indicators.
Sessions encapsulate the entire conversation history, including message history, status indicators, frontend events, and tool results. This built-in history serves as the agent's 'memory', allowing it to remain aware of the full context to apply instructions and generate appropriate responses.