Add Memory to Session

Add memory to the specified session.

Path parameters

sessionIdstringRequired

The ID of the session to which memory should be added.

Headers

AuthorizationstringRequired

Header authentication of the form Api-Key <token>

Request

This endpoint expects an object.
messageslist of objectsRequired

A list of message objects, where each message contains a role and content.

fact_instructionstringOptional

Deprecated

ignore_roleslist of enumsOptional

Optional list of role types to ignore when adding messages to graph memory. The message itself will still be added retained and used as context for messages that are added to a user’s graph.

return_contextbooleanOptional

Optionally return memory context relevant to the most recent messages.

summary_instructionstringOptional

Deprecated

Response

An object, optionally containing memory context retrieved for the last message

contextstringOptional

Errors