Class SessionRecallTools.Builder
java.lang.Object
org.springframework.ai.session.tool.SessionRecallTools.Builder
- Enclosing class:
- SessionRecallTools
Builds
SessionRecallTools.-
Method Summary
Modifier and TypeMethodDescriptionbuild()maxTextLength(int maxTextLength) The longest text a result carries, in characters; a longer message is cut to an excerpt around the keyword, so that a search does not put back into the prompt what a compaction took out.pageSize(int pageSize) The matches the tool returns on a page;EventQuery.DEFAULT_PAGE_SIZEby default, at mostEventQuery.MAX_PAGE_SIZE.
-
Method Details
-
pageSize
The matches the tool returns on a page;EventQuery.DEFAULT_PAGE_SIZEby default, at mostEventQuery.MAX_PAGE_SIZE. -
maxTextLength
The longest text a result carries, in characters; a longer message is cut to an excerpt around the keyword, so that a search does not put back into the prompt what a compaction took out.SessionRecallTools.DEFAULT_MAX_TEXT_LENGTHby default. -
build
-