Uses of Interface
org.springframework.ai.session.compaction.CompactionStrategy
Packages that use CompactionStrategy
Package
Description
-
Uses of CompactionStrategy in org.springframework.ai.session
Methods in org.springframework.ai.session with parameters of type CompactionStrategyModifier and TypeMethodDescriptionDefaultSessionService.compact(String sessionId, CompactionTrigger trigger, CompactionStrategy strategy) SessionService.compact(String sessionId, CompactionTrigger trigger, CompactionStrategy strategy) Evaluates the trigger on the active view and, when it fires, runs the strategy and records its result: oneEventType.COMPACTIONboundary event followed by the summary events, in one version-checked append. -
Uses of CompactionStrategy in org.springframework.ai.session.advisor
Methods in org.springframework.ai.session.advisor with parameters of type CompactionStrategyModifier and TypeMethodDescriptionSessionAdvisors.Builder.compaction(CompactionTrigger trigger, CompactionStrategy strategy) Compacts the session once a turn has ended, when the trigger fires.SessionTurnAdvisor.Builder.compactionStrategy(CompactionStrategy strategy) How to compact; set together withSessionTurnAdvisor.Builder.compactionTrigger. -
Uses of CompactionStrategy in org.springframework.ai.session.compaction
Classes in org.springframework.ai.session.compaction that implement CompactionStrategyModifier and TypeClassDescriptionfinal classKeeps the recent conversation in the view and covers the rest: the one compaction strategy, configured by aCompactionWindow, the last events, the last turns or a token budget, and optionally aCompactionSummarizerthat condenses what leaves the view into a summary turn.