Core Concepts
Session is a plugin wrapper
Session wraps a plugin implementation. Default is AgentlyMemoSession.
Three data structures
- full_chat_history: full transcript
- current_chat_history: prompt window
- memo: stable preferences, constraints, facts
Resize flow
- policy decides
liteordeep - handler prunes
current_chat_history - memo updates (when enabled)
Agent integration
SessionExtension injects current_chat_history before requests and records messages after requests.