{% if entry.system_message and entry.system_message is not none and entry.system_message != '' %}
System Message:
{{ process_text(entry.system_message, truncated=truncated)|e }}
{% endif %}
{% if entry.input is string %} Input Prompt: {% else %} Multi-Turn Input Prompt: {% endif %} {% if entry.objective and not entry.conversation and entry.objective is not none and entry.objective != '' %}
Objective:{{ entry.objective|e }}
{% endif %} {% if entry.conversation %} {{ process_conversation(entry.conversation, truncated=truncated) | safe }} {% elif entry.input is mapping %}
    {% for message in entry.input.conversation %}
  1. {{ message.role|upper }}: {{ process_text(message.content, truncated=truncated)|e }}
  2. {% endfor %}
{% elif entry.input is sequence and entry.input is not string %}
    {% for message in entry.input %}
  1. {{ process_text(message, truncated=truncated)|e }}
  2. {% endfor %}
{% else %}
{{ process_text(entry.input, truncated=truncated)|e }}
{% endif %}