Package com.tnsai.session
Class SearchableFileSessionStore
java.lang.Object
com.tnsai.session.FileSessionStore
com.tnsai.session.SearchableFileSessionStore
- All Implemented Interfaces:
SearchableSessionStore,SessionStore
File-based session store with search capabilities.
Extends FileSessionStore with full-text search and query support.
- Author:
- TnsAI Team
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.tnsai.session.SearchableSessionStore
SearchableSessionStore.SessionStats -
Constructor Summary
ConstructorsConstructorDescriptionSearchableFileSessionStore(String basePath) Creates a searchable file session store. -
Method Summary
Modifier and TypeMethodDescriptionfindByToolUsage(String toolName) Searches for sessions containing a specific tool call.findSimilar(String sessionId, int limit) Gets sessions similar to the given session.getStats()Gets statistics about sessions.search(SessionQuery query) Searches sessions with a query.Methods inherited from class com.tnsai.session.FileSessionStore
clear, count, delete, evictExpired, exists, findByAgent, findByDate, findByDateRange, findByOutcome, findByProject, findByTag, findRecent, listSessionIds, load, saveMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.tnsai.session.SearchableSessionStore
searchMethods inherited from interface com.tnsai.session.SessionStore
clear, count, delete, exists, findByAgent, findByDate, findByDateRange, findByOutcome, findByProject, findByTag, findRecent, listSessionIds, load, save
-
Constructor Details
-
SearchableFileSessionStore
Creates a searchable file session store.- Parameters:
basePath- the base directory path
-
-
Method Details
-
search
Description copied from interface:SearchableSessionStoreSearches sessions with a query.- Specified by:
searchin interfaceSearchableSessionStore- Parameters:
query- the search query- Returns:
- list of search results, sorted by relevance
-
findSimilar
Description copied from interface:SearchableSessionStoreGets sessions similar to the given session.- Specified by:
findSimilarin interfaceSearchableSessionStore- Parameters:
sessionId- the session to find similar sessions forlimit- maximum results- Returns:
- list of similar sessions
-
findByToolUsage
Description copied from interface:SearchableSessionStoreSearches for sessions containing a specific tool call.- Specified by:
findByToolUsagein interfaceSearchableSessionStore- Parameters:
toolName- the tool name- Returns:
- list of matching sessions
-
getStats
Description copied from interface:SearchableSessionStoreGets statistics about sessions.- Specified by:
getStatsin interfaceSearchableSessionStore- Returns:
- session statistics
-