Package com.tnsai.memory.strategy
Interface TieredContextLoader.LLMSummarizer
- Enclosing class:
TieredContextLoader
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Functional interface for summarizing a list of messages.
Implementations may use an LLM, extractive summarization, or any other approach to condense messages into a summary string.
-
Method Summary
-
Method Details
-
summarize
Summarizes the given messages into a condensed string.- Parameters:
messages- messages to summarize- Returns:
- summary text, or null if summarization is not possible
-