:py:mod:`abacusai.chat_message`
===============================

.. py:module:: abacusai.chat_message


Module Contents
---------------

Classes
~~~~~~~

.. autoapisummary::

   abacusai.chat_message.ChatMessage




.. py:class:: ChatMessage(client, role=None, text=None, timestamp=None)

   Bases: :py:obj:`abacusai.return_class.AbstractApiClass`

   A single chat message with Abacus Chat.

   :param client: An authenticated API Client instance
   :type client: ApiClient
   :param role: The role of the message sender
   :type role: str
   :param text: A list of text segments for the message
   :type text: list
   :param timestamp: The timestamp at which the message was sent
   :type timestamp: str

   .. py:method:: __repr__()

      Return repr(self).


   .. py:method:: to_dict()

      Get a dict representation of the parameters in this class

      :returns: The dict value representation of the class parameters
      :rtype: dict



