""" HTML renderer for report generation. """ from .base_renderer import BaseRenderer from typing import Dict, Any, Tuple, List class HtmlRenderer(BaseRenderer): """Renders content to HTML format with format-specific extraction.""" @classmethod def get_supported_formats(cls) -> List[str]: """Return supported HTML formats.""" return ['html', 'htm'] @classmethod def get_format_aliases(cls) -> List[str]: """Return format aliases.""" return ['web', 'webpage'] @classmethod def get_priority(cls) -> int: """Return priority for HTML renderer.""" return 100 def getExtractionPrompt(self, user_prompt: str, title: str) -> str: """Get HTML-specific extraction prompt.""" return f""" {user_prompt} Generate a comprehensive HTML report with the title: "{title}" HTML STRUCTURE REQUIREMENTS: - Create a complete, self-contained HTML document - Start with: - Include: ,
(with and