ChatMessagesX extension

Extensions on List<ChatMessage>.

on

Methods

toBufferString({String systemPrefix = SystemChatMessage.defaultPrefix, String humanPrefix = HumanChatMessage.defaultPrefix, String aiPrefix = AIChatMessage.defaultPrefix, String toolPrefix = ToolChatMessage.defaultPrefix}) String

Available on List<ChatMessage>, provided by the ChatMessagesX extension

This function is to get a string representation of the chat messages based on the message content and role.