""" 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: """Return only HTML-specific guidelines; global prompt is built centrally.""" return ( "HTML FORMAT GUIDELINES:\n" "- Output a complete HTML5 document starting with .\n" "- Include ,
with and