Uses of Record Class
org.springframework.ai.session.compaction.CompactionWindow
Packages that use CompactionWindow
-
Uses of CompactionWindow in org.springframework.ai.session.compaction
Fields in org.springframework.ai.session.compaction declared as CompactionWindowModifier and TypeFieldDescriptionstatic final CompactionWindowWindowCompactionStrategy.DEFAULT_WINDOWThe window of a strategy built without one: the last 20 events.Methods in org.springframework.ai.session.compaction that return CompactionWindowModifier and TypeMethodDescriptionWindowCompactionStrategy.getWindow()The rule this strategy cuts by.static CompactionWindowCompactionWindow.lastEvents(int n) Keeps the lastnconversation events.static CompactionWindowCompactionWindow.lastTurns(int n) Keeps the lastnturns: a user message and everything up to the next one.static CompactionWindowCompactionWindow.tokenBudget(int maxTokens) Keeps what fits inmaxTokens, counted from the newest event back: the pinned events come off the budget first, and the kept window is a contiguous suffix.Methods in org.springframework.ai.session.compaction with parameters of type CompactionWindowModifier and TypeMethodDescriptionWindowCompactionStrategy.Builder.window(CompactionWindow window) The rule to cut by;WindowCompactionStrategy.DEFAULT_WINDOWby default.