Skip to content

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

  1. policy decides lite or deep
  2. handler prunes current_chat_history
  3. memo updates (when enabled)

Agent integration

SessionExtension injects current_chat_history before requests and records messages after requests.