Transforms an array of BaseMessage instances into an array of StoredMessage instances. It does this by calling the toDict method on each BaseMessage, which returns a StoredMessage. This function is used to prepare chat messages for storage.
BaseMessage
StoredMessage
toDict
Generated using TypeDoc
Transforms an array of
BaseMessage
instances into an array ofStoredMessage
instances. It does this by calling thetoDict
method on eachBaseMessage
, which returns aStoredMessage
. This function is used to prepare chat messages for storage.