Add memory to the specified session.

POST

Add memory to the specified session.

Path parameters

sessionIdstringRequired

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

Request

This endpoint expects an object.
messageslist of objectsRequired

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

fact_instructionstringOptional

Additional instruction for generating the facts. Zep Cloud Only, will be ignored on Community Edition.

return_contextbooleanOptional

Optionally return memory context relevant to the most recent messages.

summary_instructionstringOptional

Additional instruction for generating the summary. Zep Cloud Only, will be ignored on Community Edition.

Response

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

contextstringOptional

Errors

Built with