from langchain_core.messages import AIMessage from utils.inference import call_model import re def run(state): architecture = state["architecture"] user_prompt = state["messages"][0].content prompt = f""" You are a senior front-end engineer. Based on the user prompt and architecture, generate a beautiful, fully responsive HTML page with embedded CSS. User Prompt: "{user_prompt}" UI Design Plan: {architecture} 🎨 Design Requirements: - Full HTML page starting with - Use semantic HTML5 tags: