class_docstr: Memory class to store the conversations
class_docstr_tok: ["Memory","class","to","store","the","conversations"]
docstr: Truncates the message if it is longer than max_length
docstr_tok: ["Truncates","the","message","if","it","is","longer","than","max_length"]
code: def _truncate(
      self, message: Union[str, int], max_length: int = 100
  ) -> str:
      """
      Truncates the message if it is longer than max_length
      """
      return (
          f"{message[:max_length]} ..."
          if len(str(message)) > max_length
          else message
      )
  
file_path: pandas-ai/pandasai/helpers/memory.py
imports: from typing import Union
label_desc: Use image node_id 6 for calling the Memory obj's underlying member method code with example usage: obj._truncate(message, max_length) and returns: unknown