CompletableFutureMemoryService
Java-friendly wrapper around a MemoryService that it owns. Each method calls the suspend method of the same name and returns a CompletableFuture of its result, so Java callers never pass a Continuation. Canceling a future cancels its call, and close cancels every call in flight, then closes the service if it is AutoCloseable.
Functions
Calls MemoryService.addEventsToMemory. The future fails with UnsupportedOperationException if the service does not support event deltas.
Calls MemoryService.addMemory. The future fails with UnsupportedOperationException if the service does not support direct memory writes.
The wrapped memory service, for code that has dropped into Kotlin.
Cancels calls in flight, then closes the service if it is AutoCloseable. Every later call returns a canceled future.
Calls MemoryService.searchMemory.