Skip to main content

Session memory

Scope: SessionRpc (session-level operations tied to a Session) For an overview of RPC and the list of all RPC pages, see RPC.

memory.importRecord (experimental)

memory()->importRecord() imports one memory that the user explicitly specified into the session’s cloud memory service. It does not infer anything from the input. Set scope to MemoryImportScope::User (the current user) or MemoryImportScope::Repository (the repository the session resolved).
subject is a short title, fact is the fact to store, reason is why to store it, and citations is the source that supports the fact. All of them are required. The return value is a SessionMemoryImportRecordResult, and status is MemoryImportStatus|string. Known values become enum cases, and unknown values stay as strings. The session’s credentials, repository, memory policy, permission checks, secret filtering and telemetry apply. Conflicts and service failures come back as results, and there is no fallback to a local or host store. Check the input so that you don’t send sensitive content. For importing multiple records from JSONL, see the server-level memories.import.
Last modified on November 25, 2026