class_docstr: Agent class to improve the conversational experience in PandasAI
class_docstr_tok: ["Agent","class","to","improve","the","conversational","experience","in","PandasAI"]
docstr: Add message to the memory. This is useful when you want to add a message
  to the memory without calling the chat function (for example, when you
  need to add a message from the agent).
docstr_tok: ["Add","message","to","the","memory",".","This","is","useful","when","you","want","to","add","a","message","to","the","memory","without","calling","the","chat","function","(","for","example",",","when","you","need","to","add","a","message","from","the","agent",")","."]
code: def add_message(self, message, is_user=False):
      """
      Add message to the memory. This is useful when you want to add a message
      to the memory without calling the chat function (for example, when you
      need to add a message from the agent).
      """
      self._lake._memory.add(message, is_user=is_user)
  
imports: import json
  from typing import Union, List, Optional
  from ..helpers.df_info import DataFrameType
  from ..helpers.logger import Logger
  from ..helpers.memory import Memory
  from ..prompts.base import AbstractPrompt
  from ..prompts.clarification_questions_prompt import ClarificationQuestionPrompt
  from ..prompts.explain_prompt import ExplainPrompt
  from ..prompts.rephase_query_prompt import RephraseQueryPrompt
  from ..prompts.check_if_relevant_to_conversation import CheckIfRelevantToConversationPrompt
  from ..schemas.df_config import Config
  from ..skills import Skill
  from ..smart_datalake import SmartDatalake
label_desc: Use image node_id 5 for calling the Agent obj's underlying member method code with example usage: obj.add_message(message, is_user) without return types