• This function is used by memory classes to get a string representation of the chat message history, based on the message content and role.

    Parameters

    • messages: BaseMessage[]
    • humanPrefix: string = "Human"
    • aiPrefix: string = "AI"

    Returns string

Generated using TypeDoc