# Ticket: Multi-Turn Conversation Handling ## Ticket Information - **ID**: TICKET-027 - **Title**: Multi-Turn Conversation Handling - **Type**: Feature - **Priority**: High - **Status**: Backlog - **Track**: LLM Infra - **Milestone**: Milestone 2 - Voice Chat MVP - **Created**: 2024-01-XX ## Description Implement multi-turn conversation handling: - Per-session context management - Summarized memory integration - Define how many turns to keep in context - Session storage and retrieval ## Acceptance Criteria - [ ] Session context management implemented - [ ] Turn history stored per session - [ ] Context window management (N turns) - [ ] Memory integration working - [ ] Session cleanup/expiration ## Technical Details Implementation: - Session ID tracking - Context buffer (last N messages) - Memory retrieval and injection - Summarization for old context - Storage: in-memory or DB ## Dependencies - TICKET-021 or TICKET-022 (LLM server) - TICKET-040 (memory design) - helpful but not required initially ## Related Files - `home-voice-agent/conversation/` (to be created) ## Notes Needs at least a stub MCP/tool interface. Can start with simple in-memory sessions.