import asyncio
from app.agents.base_agent import BaseAgent
from app.models.schemas import SubReview, RagStatus


class LegalAgent(BaseAgent):
    """
    Legal Agent - STUB implementation.

    Returns mock Green status. Full legal review requires manual verification.
    """

    name = "Legal Agent"

    async def analyze(self, file_data: bytes, file_type: str) -> SubReview:
        """
        Stub implementation that returns mock Green status.

        Args:
            file_data: Raw bytes of the file (not used in stub)
            file_type: MIME type of the file (not used in stub)

        Returns:
            SubReview with Green status and stub notice
        """
        # Simulate some processing time for realistic UX
        await asyncio.sleep(0.5)

        return SubReview(
            ragStatus=RagStatus.GREEN,
            feedback="[STUB] Legal compliance check passed. This is a placeholder response - the Legal Agent has not been implemented for this POC. Full legal review, including financial promotion detection and regulatory compliance, requires the complete implementation.",
            issues=[],
            isFinancialPromotion=False,
            financialPromotionReason=""
        )
