{% extends "base.html" %} {% block title %}{{ scenario.name|default:"Agent 审核工作台" }}{% endblock %} {% block content %} {% if error %}
{{ error }}
{% endif %} {% if scenario %}

任务输入与资料范围

左侧突出受控输入:先描述审核目标,再限定本轮使用的文档范围。

{% csrf_token %}
{{ form.message.label_tag }} {{ form.message }} {% if form.message.errors %}

{{ form.message.errors|join:" " }}

{% endif %}
{{ form.document_ids.label_tag }}

不勾选时默认使用全部已入库文档。

{% for checkbox in form.document_ids %} {% empty %}
当前场景还没有已入库文档,系统将仅依赖工具和模型能力生成结果。
{% endfor %}
{% if form.document_ids.errors %}

{{ form.document_ids.errors|join:" " }}

{% endif %}

快捷示例

  • 检查当前资料是否存在缺失项
  • 抽取说明书中的关键字段
  • 比较两份文档中的产品名称是否一致

结果

{% if result %}
  • 模型:{{ result.model_name }}
  • 状态:{{ result.status }}
  • 耗时:{{ result.latency_ms }} ms
主回答
{{ result.answer|linebreaksbr }}
{% else %}
提交任务后,这里会展示 Agent 的执行状态、主回答和过程摘要。
{% endif %}
{% if result %}

证据引用与工具调用

引用片段与工具调用用于支撑结果可解释性。

{% if result.references %}

引用片段

    {% for reference in result.references %}
  • {{ reference.source }}
    {{ reference.content|default:"无正文内容"|linebreaksbr }}
  • {% endfor %}
{% else %}
当前回答没有引用知识库片段。
{% endif %} {% if result.tool_calls %}

工具调用

    {% for tool_call in result.tool_calls %}
  • {{ tool_call.tool_name }}

    执行状态:{{ tool_call.success }}

    {% if tool_call.error %}

    {{ tool_call.error }}

    {% endif %}
    {{ tool_call.result }}
  • {% endfor %}
{% else %}
当前场景没有声明工具,或本次执行无需调用工具。
{% endif %}
{% if result.error %}

错误信息

{{ result.error }}
{% endif %} {% endif %}

结构化审核结果

右侧结果舱用于展示缺失项、冲突项、字段池结果或风险清单。

{% if result %} {% for key, value in result.structured_output.items %} {% endfor %}
结构化结果
{{ key }} {% if key == "answer" or key == "summary" or key == "reply" %} {{ value|linebreaksbr }} {% else %}
{{ value }}
{% endif %}
{% else %}
执行任务后,这里会展示结构化审核结果和回填准备信息。
{% endif %}

引用与审计

  • 可查看引用片段、工具调用和本次审计日志。
{% if audit_log %} {% endif %}
{% endif %} {% endblock %}