abacusai.api_class.ai_chat
==========================

.. py:module:: abacusai.api_class.ai_chat


Classes
-------

.. autoapisummary::

   abacusai.api_class.ai_chat.HotkeyPrompt
   abacusai.api_class.ai_chat.AgentConversationMessage


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

.. py:class:: HotkeyPrompt

   Bases: :py:obj:`abacusai.api_class.abstract.ApiClass`


   A config class for a Data Science Co-Pilot Hotkey

   :param prompt: The prompt to send to Data Science Co-Pilot
   :type prompt: str
   :param title: A short, descriptive title for the prompt. If not provided, one will be automatically generated.
   :type title: str


   .. py:attribute:: prompt
      :type:  str


   .. py:attribute:: title
      :type:  str


   .. py:attribute:: disable_problem_type_context
      :type:  bool


   .. py:attribute:: ignore_history
      :type:  bool


.. py:class:: AgentConversationMessage

   Bases: :py:obj:`abacusai.api_class.abstract.ApiClass`


   Message format for agent conversation

   :param is_user: Whether the message is from the user.
   :type is_user: bool
   :param text: The message's text.
   :type text: str
   :param document_content: Document text in case of any document present.
   :type document_content: str


   .. py:attribute:: is_user
      :type:  bool


   .. py:attribute:: text
      :type:  str


   .. py:attribute:: document_content
      :type:  str


   .. py:method:: to_dict()

      Standardizes converting an ApiClass to dictionary.
      Keys of response dictionary are converted to camel case.
      This also validates the fields ( type, value, etc ) received in the dictionary.



