Uses of Class
org.springframework.ai.session.compaction.ChatModelSummarizer.Builder
Packages that use ChatModelSummarizer.Builder
-
Uses of ChatModelSummarizer.Builder in org.springframework.ai.session.compaction
Methods in org.springframework.ai.session.compaction that return ChatModelSummarizer.BuilderModifier and TypeMethodDescriptionstatic ChatModelSummarizer.BuilderChatModelSummarizer.Builder.chatOptions(ChatOptions chatOptions) The options of the summarizing call, a smaller model for example; none by default.ChatModelSummarizer.Builder.eventFormatter(Function<SessionEvent, String> eventFormatter) How an event is rendered in the prompt;EventText.of(SessionEvent)by default.ChatModelSummarizer.Builder.onSummarizationFailure(Consumer<SummaryRequest> onSummarizationFailure) Called with the request when the model call fails or returns a null or blank summary, after the warning is logged.ChatModelSummarizer.Builder.overlapSize(int overlapSize) How many of the preserved events are quoted in the prompt for continuity; 2 by default,0for none.ChatModelSummarizer.Builder.shadowPrompt(String shadowPrompt) Replaces the synthetic user message that opens each summary turn;ChatModelSummarizer.DEFAULT_SHADOW_PROMPTby default.ChatModelSummarizer.Builder.systemPrompt(String systemPrompt) Replaces the default system prompt of the summarizing call.