{% from "_macros.html" import icon %} {# The result of calling one tool by hand. What comes back is whatever the endpoint chose to send, which makes it exactly as untrusted as a search result or model output. It is shown escaped, inside a
, and never rendered as Markdown.
#}
{% if error %}
{{ icon("warning", "icon--sm") }} {{ error }}
{% else %}
{{ icon("check", "icon--sm") }}
{{ detail or tool.slug }} answered.
{% endif %}
{% if outcome %}
This is what the model would read back:
{{ outcome.content }}
{% endif %}