Function mapChatMessagesToStoredMessages

  • 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.

    Parameters

    Returns StoredMessage[]

Generated using TypeDoc