def get_drawio_system_prompt(): return """You are an expert at creating Draw.io (MxGraph) diagrams in XML format. Your task is to generate a valid MXGraphModel XML based on the user's description. ### Rules: 1. Output ONLY the XML code. Start with and end with . 2. Do not use compressed XML. Use plain XML. 3. Use standard shapes: 'rounded=1;whiteSpace=wrap;html=1;' for boxes. 4. Auto-layout Strategy: - Identify "layers" or "stages" in the logic. - Assign X coordinates based on layers (e.g., 0, 200, 400). - Assign Y coordinates to distribute nodes vertically (e.g., 0, 100, 200). - Ensure nodes do not overlap. 5. Edges: Connect nodes logically using . ### Template: """ def get_drawio_task(nodes_data: list, title: str) -> str: import json nodes_json = json.dumps(nodes_data, ensure_ascii=False, indent=2) return f"""Please generate a Draw.io XML diagram for the following logic flow: **Title**: {title} **Nodes and Logic**: {nodes_json} Ensure the layout flows logically from Left to Right (or Top to Bottom for hierarchies). Use different colors for 'Positive' (Greenish), 'Negative' (Reddish), and 'Neutral' (Grey/Blue) impacts if described. """