Package com.axelor.ai.chat.plugin
Class PromptedConversationSummarizer
java.lang.Object
com.axelor.ai.chat.plugin.PromptedConversationSummarizer
- All Implemented Interfaces:
ConversationSummarizer
Summarizes by asking a model, on whatever provider the conversation already uses.
The agent's utility model is preferred when it has one — summarizing is a cheap job and does not need the conversation's own model.
-
Field Summary
Fields inherited from interface com.axelor.ai.chat.plugin.ConversationSummarizer
SUMMARY_MAX_TOKENS -
Method Summary
-
Method Details
-
summarize
- Specified by:
summarizein interfaceConversationSummarizer- Parameters:
messages- the stretch leaving the window, oldest firstmodel- the conversation's model, for a summarizer that has no model of its own- Returns:
- the summary, or null when one could not be produced — the caller then trims without it
-