{% from 'components/page-heading.html' import page_heading %} {{ page_heading(t.prompts, t.prompts_subtitle) }} {% if errors.get('prompts') %} {{ read_error(errors.prompts, t.prompts) }} {% elif not data.prompts %}

{{ t.prompt_empty }}

{{ t.prompt_empty_body }}

{% else %}
{% for prompt in data.prompts %}

{{ prompt.prompt_key }}

{{ t.prompt_status }}: {{ prompt.status }}
{{ t.prompt_mode }}: {{ t.prompt_custom if prompt.mode == 'custom' else t.prompt_auto }}
{{ t.prompt_revision }}
{{ prompt.artifact.revision if prompt.artifact else t.prompt_auto }}
{{ t.prompt_demonstrations }}
{{ prompt.effective.demonstrations|length if prompt.effective else 0 }}
{% if prompt.effective %}

{{ t.prompt_instructions }}

{{ prompt.effective.instructions }}
{% elif prompt.builtin %}

{{ t.prompt_instructions }}

{{ prompt.builtin.instructions }}
{% endif %}
{% endfor %}
{% endif %}