class_docstr: Represents a message in a LLM chat conversation.
  
  :param content: The text content of the message.
  :param role: The role of the entity sending the message.
  :param name: The name of the function being called (only applicable for role FUNCTION).
  :param meta: Additional metadata associated with the message.
docstr: Create a message from the assistant.
  
  :param content: The text content of the message.
  :param meta: Additional metadata associated with the message.
  :return: A new ChatMessage instance.
code: def from_assistant(
      cls, content: str, meta: Optional[Dict[str, Any]] = None
  ) -> "ChatMessage":
      """
      Create a message from the assistant.
  
      :param content: The text content of the message.
      :param meta: Additional metadata associated with the message.
      :return: A new ChatMessage instance.
      """
      return cls(content, ChatRole.ASSISTANT, None, meta or {})
  
file_path: haystack/haystack/dataclasses/chat_message.py
imports: from dataclasses import dataclass, field
  from enum import Enum
  from typing import Dict, Any, Optional
label_desc: Use image node_id 2 for calling the ChatMessage obj's underlying member method code with example usage: obj.from_assistant(cls, content, meta) and returns: cls