Returns a memory (latest summary, list of messages and facts) for a given session
The ID of the session for which to retrieve memory.
The number of most recent memory entries to retrieve.
The minimum rating by which to filter facts
Memory context containing relevant facts and entities for the session. Can be put into the prompt directly.
Most recent list of facts derived from the session. (cloud only) Deprecated: Facts will be deprecated in future releases and relevant_facts should be used instead.
A list of message objects, where each message contains a role and content. Only last_n messages will be returned
A dictionary containing metadata associated with the memory.
Most relevant facts to the recent messages in the session.
The most recent summary before last nth message. (cloud only)