def _generate_message(content: str, images: list[str] | None) -> dict:
        """Generate a message for the model.

        Args:
            content (str): Text content of the message
            images (list[str] | None): List of image paths to include in message

        Returns:
            dict: Formatted message dictionary with role and content
        """
        message: dict[str, str | list[dict]] = {"role": "user"}
        _content: list[dict[str, str]] = [{"type": "text", "text": content}]
        if images is not None:
            _content.extend([{"type": "image"} for _ in images])
        message["content"] = _content
        return message
Generate a message for the model.

        Args:
            content (str): Text content of the message
            images (list[str] | None): List of image paths to include in message

        Returns:
            dict: Formatted message dictionary with role and content
        
src/anomalib/models/image/vlm_ad/backends/huggingface.py