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: Check if the message is from a specific role.
  
  :param role: The role to check against.
  :return: True if the message is from the specified role, False otherwise.
code: def is_from(self, role: ChatRole) -> bool:
      """
      Check if the message is from a specific role.
  
      :param role: The role to check against.
      :return: True if the message is from the specified role, False otherwise.
      """
      return self.role == role
  
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 1 for calling the ChatMessage obj's underlying member method code with example usage: obj.is_from(role) and returns: unknown