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.

@FunctionalInterface public static interface TieredContextLoader.LLMSummarizer
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

    Modifier and Type
    Method
    Description
    Summarizes the given messages into a condensed string.
  • Method Details

    • summarize

      String summarize(List<Map<String,Object>> messages)
      Summarizes the given messages into a condensed string.
      Parameters:
      messages - messages to summarize
      Returns:
      summary text, or null if summarization is not possible