addMemory

fun addMemory(appName: String, userId: String, memories: List<MemoryEntry>, customMetadata: Map<String, Any?>? = null): CompletableFuture<Void?>

Calls MemoryService.addMemory. The future fails with UnsupportedOperationException if the service does not support direct memory writes.