Get Session Memory

GET

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

contextstringOptional

Memory context containing relevant facts and entities for the session. Can be put into the prompt directly.

factslist of stringsOptional

Most recent list of facts derived from the session. Deprecated: Use relevant_facts instead.

messageslist of objectsOptional

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

metadatamap from strings to anyOptional

Deprecated

relevant_factslist of objectsOptional

Most relevant facts to the recent messages in the session.

summaryobjectOptional

Deprecated: Use context string instead.

Errors

Built with