Messages
Represent individual messages in a conversation
You are viewing the Zep Open Source v0.x documentation. This version is no longer supported, and documentation is provided as a reference only.
The current documentation for Zep Community Edition is available here.
Messages
represent individual messages in a conversation. Messages are associated with Sessions
in a M:1 relationship.
Messages must be added to sessions using Memories
.
Get a Specific Message from a Session
To retrieve a specific message from a session, you can use the get_session_message
method. Here are examples in Python and TypeScript:
Python
TypeScript
Getting all Messages from a Session
Python
TypeScript
Update Session Message Metadata
Below are examples on how to update the metadata on a message. Currently, updating message content is not supported. You may, however, update a message’s metadata. The metadata should be provided in the following format: