• Extract the role from a message.

    Parameters

    • message: BaseMessage

      The message to extract the role from.

    Returns GroqRoleEnum

    The role of the message.