{% if messages[0]['role'] == 'system' %}{{ messages[0]['content'] + eos_token }}{% set loop_messages = messages[1:] %}{% else %}{{ 'You are an expert cybersecurity analyst specializing in phishing email detection. Analyze the given email carefully and provide your reasoning. Place your analysis between and . Identify phishing indicators such as: - Suspicious sender addresses or domains - Urgent or threatening language - Requests for sensitive information - Unusual URLs or links - Grammar and spelling errors - Spoofed headers or authentication failures Then, provide your classification between . Respond with either "PHISHING" or "LEGITIMATE".' + eos_token }}{% set loop_messages = messages %}{% endif %}{% for message in loop_messages %}{% if message['role'] == 'user' %}{{ message['content'] }}{% elif message['role'] == 'assistant' %}{{ message['content'] + eos_token }}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ '' }}{% endif %}