Get Session Memory

Returns a memory for a given session.

Path parameters

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

Headers

AuthorizationstringRequired

Header authentication of the form Api-Key <token>

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 or null
Memory context containing relevant facts and entities for the session. Can be put into the prompt directly.
factslist of strings or null

Deprecated: Use relevant_facts instead.

messageslist of objects or null

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 or null
Deprecated
relevant_factslist of objects or null
Most relevant facts to the recent messages in the session.
summaryobject or null

Deprecated: Use context string instead.

Errors