Get Session Memory

Returns a memory for a given session.

Path parameters

sessionIdstringRequired
The ID of the session for which to retrieve memory.

Query parameters

lastnintegerOptional
The number of most recent memory entries to retrieve.
minRatingdoubleOptional
The minimum rating by which to filter relevant facts.

Response

OK
contextstring
Memory context containing relevant facts and entities for the session. Can be put into the prompt directly.
factslist of strings

Deprecated: Use relevant_facts instead.

messageslist of objects

A list of message objects, where each message contains a role and content. Only last_n messages will be returned

metadatamap from strings to any
Deprecated
relevant_factslist of objects
Most relevant facts to the recent messages in the session.
summaryobject

Deprecated: Use context string instead.

Errors

404
Not Found Error
500
Internal Server Error