addMemory

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

Writes memories as explicit facts, or consolidates them server-side via generate when enable_consolidation is set in customMetadata (the generate config keys in customMetadata then apply). Only each entry's text is persisted; per-entry author, timestamp, and customMetadata are not written (Python 2.0 maps them to revision labels and merged metadata).