map_ai_messages_in_session#

langchain_community.chat_loaders.utils.map_ai_messages_in_session(chat_sessions: ChatSession, sender: str) β†’ ChatSession[source]#

Convert messages from the specified β€˜sender’ to AI messages.

This is useful for fine-tuning the AI to adapt to your voice.

Parameters:
  • chat_sessions (ChatSession) –

  • sender (str) –

Return type:

ChatSession