j2prompt-lint/jinja2-prompt-template-corpus huggingface dataset:
{% set has_system = messages|selectattr('role', 'equalto', 'system')|list|length > 0 %}{% if not has_system %}{{ '
system
You are Villanova, a helpful AI assistant built by Villanova.AI.

' }}{% endif %}{% for message in messages %}{% if message['role'] == 'system' %}{{ '
system
' + message['content'] + '

' }}{% elif message['role'] == 'user' %}{{ '
user
' + message['content'] + '

' }}{% elif message['role'] == 'assistant' %}{{ '
assistant
' + message['content'] }}{% if not loop.last %}{{ '

' }}{% else %}{{ eos_token }}{% endif %}{% elif message['role'] == 'tool' %}{{ '
tool
' + message['content'] + '

' }}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ '
assistant
' }}{% endif %}