Class SessionAdvisors.Builder
java.lang.Object
org.springframework.ai.session.advisor.SessionAdvisors.Builder
- Enclosing class:
- SessionAdvisors
-
Method Summary
Modifier and TypeMethodDescriptionasyncCompaction(boolean asyncCompaction) Whether compaction runs after the call returns, on the scheduler; seeSessionTurnAdvisor.Builder.asyncCompaction(boolean).build()The advisors, in their order: the turn, then the memory.compaction(CompactionTrigger trigger, CompactionStrategy strategy) Compacts the session once a turn has ended, when the trigger fires.memory(Consumer<SessionMemoryAdvisor.Builder> memory) Customizes theSessionMemoryAdvisor, its filters for example.scheduler(reactor.core.scheduler.Scheduler scheduler) The scheduler the session writes of a streamed call run on.
-
Method Details
-
scheduler
The scheduler the session writes of a streamed call run on. -
compaction
Compacts the session once a turn has ended, when the trigger fires. -
asyncCompaction
Whether compaction runs after the call returns, on the scheduler; seeSessionTurnAdvisor.Builder.asyncCompaction(boolean). -
memory
Customizes theSessionMemoryAdvisor, its filters for example. Customizers run in the order they are added, after the shared settings, so they can override them. -
build
The advisors, in their order: the turn, then the memory.
-