{# One turn of the ask panel (#324): `tkt ask --json`, rendered inertly. The answer and the conflicts are the model's text: escaped, shown as text (no Markdown, no HTML, no image, no link). The only links are the UI pages of the cited items and of the sources, which the service checked against the store. `data-turn` is what a follow-up carries; `data-failed` marks a turn whose LLM failed, which the panel offers to retry (#379) and never sends as the previous turn. #} {% set failed = not data.answer and not data.notFound and data.llm and data.llm.error %}

{{ data.question }}

{% if data.answer %}
{{ data.answer }}
{% elif data.notFound %}

Not in the store: the LLM picked no source for this question.

{% elif data.llm and data.llm.error %}

{{ data.llm.error }}. The sources without an answer.

{% else %}

No answer: no LLM ran. The search's sources below.

{% endif %} {% if data.conflicts %}

Conflicts

{% endif %} {% if cites %}

Cited

{% endif %} {% if sources %}
Sources ({{ sources | length }})
    {% for s in sources %}{% if s.url %}{{ s.label }}{% else %}{{ s.label }}{% endif %}{% if s.title %} {{ s.title }}{% endif %}{% endfor %}
{% endif %} {% if data.secretItems %}

Warning: {{ data.secretItems | join(', ') }} look like they hold a secret (a key, token or password); remove it from the store.

{% endif %} {% if dropped %}

{{ dropped }}

{% endif %} {% if note %}

{{ note }}

{% endif %} {% for line in sent %}

{{ line }}

{% endfor %} {% if steps %}
Per step
{% endif %}