BaseFutureMemoryService
Java-friendly base for implementing a MemoryService. The engine's methods are suspend; a Java subclass returns CompletableFutures instead. addEventsToMemoryAsync and addMemoryAsync are optional -- their default throws UnsupportedOperationException (as the engine does), so override them only if the service supports those writes. Return each future promptly and do any blocking work inside it, not before returning it.
Functions
Link copied to clipboard
Link copied to clipboard
Adds a session to the memory service.
Link copied to clipboard
suspend override fun searchMemory(appName: String, userId: String, query: String): SearchMemoryResponse
Searches for sessions that match the query asynchronously.