Mirrored from https://github.com/Camo67/OCIU-npo.git
Synced Nov 21, 07:15 UTC
fix/ociu-hero-navigation-20261109
| 1 | from backend.agents.base import BaseAgent |
| 2 | from backend.services.model_router import TaskComplexity |
| 3 | from backend.services.ollama_client import ollama_client |
| 4 | import os |
| 5 | |
| 6 | class WebDesignerAgent(BaseAgent): |
| 7 | def __init__(self): |
| 8 | super().__init__("WebDesigner", TaskComplexity.HEAVY) |
| 9 | |
| 10 | async def run(self, prompt: str) -> dict: |
| 11 | full_prompt = f"Design a Next.js + Tailwind CSS component for: {prompt}. Return ONLY the code." |
| 12 | result = await self.generate_response(full_prompt) |
| 13 | |
| 14 | self.log_to_vault(f"web_design_{hash(prompt) % 10000}", result) |
| 15 | |
| 16 | return {"output": result, "model_used": self.get_model()} |
| 17 | |
| 18 | web_designer_agent = WebDesignerAgent() |