feat: 步骤6提交审核改用智能体执行
- 新增步骤6任务模板(config/agent_submit_template.txt) - 步骤6调用智能体hz4th_editor执行提交操作 - 智能体根据产品类别选择对应API接口提交数据 - 页面新增步骤6模板编辑面板,支持查看/编辑/保存/预览 - 修正步骤5标题为'填充字段'(去掉'并提交') - 新增API: GET/POST /api/process/submit-template
This commit is contained in:
+31
-3
@@ -81,7 +81,7 @@
|
||||
<!-- 步骤5填充字段模板区域 -->
|
||||
<div class="panel template-section">
|
||||
<div class="panel-header">
|
||||
<h2><i class="ri-edit-box-line"></i> 步骤5:填充字段并提交 - 智能体任务模板</h2>
|
||||
<h2><i class="ri-edit-box-line"></i> 步骤5:填充字段 - 智能体任务模板</h2>
|
||||
<div class="template-actions">
|
||||
<button onclick="previewFillFieldsTemplate()" class="btn btn-secondary btn-sm">
|
||||
<i class="ri-eye-line"></i> 预览
|
||||
@@ -93,19 +93,47 @@
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div class="template-info">
|
||||
<p><strong>说明:</strong>此模板用于步骤5「填充字段并提交审核」中调用智能体 <code>hz4th_editor</code> 的任务文本。</p>
|
||||
<p><strong>说明:</strong>此模板用于步骤5「填充字段」中调用智能体 <code>hz4th_editor</code> 的任务文本。</p>
|
||||
<p><strong>可用变量:</strong>
|
||||
<code>{{product_name}}</code> 产品名称、
|
||||
<code>{{category}}</code> 类别、
|
||||
<code>{{subcategory}}</code> 子类别、
|
||||
<code>{{relevant_content_ids}}</code> 上一步筛选的相关内容数据ID
|
||||
</p>
|
||||
<p><strong>任务目标:</strong>智能体根据API文档获取字段定义,整理产品参数,并通过API提交到ParamHub审核系统。</p>
|
||||
<p><strong>任务目标:</strong>智能体根据API文档获取字段定义,整理产品参数,并进行格式检查。</p>
|
||||
</div>
|
||||
<textarea id="fill-fields-template-editor" class="template-editor" rows="15" placeholder="加载模板中..."></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 步骤6提交审核模板区域 -->
|
||||
<div class="panel template-section">
|
||||
<div class="panel-header">
|
||||
<h2><i class="ri-upload-cloud-line"></i> 步骤6:提交审核 - 智能体任务模板</h2>
|
||||
<div class="template-actions">
|
||||
<button onclick="previewSubmitTemplate()" class="btn btn-secondary btn-sm">
|
||||
<i class="ri-eye-line"></i> 预览
|
||||
</button>
|
||||
<button onclick="saveSubmitTemplate()" class="btn btn-primary btn-sm">
|
||||
<i class="ri-save-line"></i> 保存模板
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div class="template-info">
|
||||
<p><strong>说明:</strong>此模板用于步骤6「提交审核」中调用智能体 <code>hz4th_editor</code> 的任务文本。</p>
|
||||
<p><strong>可用变量:</strong>
|
||||
<code>{{product_name}}</code> 产品名称、
|
||||
<code>{{category}}</code> 类别、
|
||||
<code>{{subcategory}}</code> 子类别、
|
||||
<code>{{product_data}}</code> 上一步生成的产品数据(JSON格式)
|
||||
</p>
|
||||
<p><strong>任务目标:</strong>智能体将产品数据提交到ParamHub审核系统,获取review_id。</p>
|
||||
</div>
|
||||
<textarea id="submit-template-editor" class="template-editor" rows="15" placeholder="加载模板中..."></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 预览模态框 -->
|
||||
<div id="template-preview-modal" class="modal">
|
||||
<div class="modal-content large">
|
||||
|
||||
Reference in New Issue
Block a user