Get session memory

GET

Returns a memory (latest summary, list of messages and facts) 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 facts

Response

This endpoint returns an object.
factslist of stringsOptional

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.

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

A dictionary containing metadata associated with the memory.

relevant_factslist of objectsOptional

Most relevant facts to the recent messages in the session.

summaryobjectOptional

The most recent summary before last nth message. (cloud only)

Errors