• Returns the "brain" of the chat_bot. The brain accepts an input string and returns an output string The functionality of the bot is specified by the system message, which is passed as a string

    Parameters

    • chat_bot_system_msg: string

      A string specifying the desired system message

    Returns RunnableWithMessageHistory<any, AIMessageChunk>