Class SessionNotesPlugin

java.lang.Object
com.axelor.ai.chat.plugin.SessionNotesPlugin
All Implemented Interfaces:
ChatPlugin

public class SessionNotesPlugin extends Object implements ChatPlugin
Incrementally builds structured session notes during a conversation. Instead of waiting until compaction to summarize, this plugin updates a structured summary every few turns so that a high-quality summary is always available when needed.

Notes are stored on the AiChat entity and consumed by ContextWindowPlugin as a pre-built summary during compaction, avoiding the need for a rushed one-shot summarization.

  • Method Details

    • priority

      public int priority()
      Description copied from interface: ChatPlugin
      Execution priority. Lower values run first. Default is 100.
      Specified by:
      priority in interface ChatPlugin
    • onComplete

      public void onComplete(ChatRequest request)
      Description copied from interface: ChatPlugin
      Called after the loop completes successfully.
      Specified by:
      onComplete in interface ChatPlugin