Package com.axelor.ai.chat.plugin
Class SessionNotesPlugin
java.lang.Object
com.axelor.ai.chat.plugin.SessionNotesPlugin
- All Implemented Interfaces:
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 Summary
Modifier and TypeMethodDescriptionvoidonComplete(ChatRequest request) Called after the loop completes successfully.intpriority()Execution priority.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.axelor.ai.chat.ChatPlugin
decorateProvider, decorateToolExecutor, decorateWriter, estimateInjectedTokens, onError, onMessage, onRequest
-
Method Details
-
priority
public int priority()Description copied from interface:ChatPluginExecution priority. Lower values run first. Default is 100.- Specified by:
priorityin interfaceChatPlugin
-
onComplete
Description copied from interface:ChatPluginCalled after the loop completes successfully.- Specified by:
onCompletein interfaceChatPlugin
-