feat: 步骤5填充字段改用智能体执行
- 新增步骤5任务模板(config/agent_fill_fields_template.txt) - 步骤5调用智能体hz4th_editor执行: 1. 获取API文档了解对应类别字段定义 2. 从内容库获取相关内容数据 3. 整理产品参数 4. 通过API提交到ParamHub审核系统 - /process页面新增步骤5模板编辑面板 - 步骤6改为确认提交结果(备用本地提交) - 新增API: GET/POST /api/process/fill-fields-template
This commit is contained in:
+30
-2
@@ -52,7 +52,7 @@
|
||||
<!-- 智能体任务模板区域 -->
|
||||
<div class="panel template-section">
|
||||
<div class="panel-header">
|
||||
<h2><i class="ri-robot-line"></i> 智能体任务文本模板(步骤4:提取产品数据)</h2>
|
||||
<h2><i class="ri-robot-line"></i> 步骤4:提取产品数据 - 智能体任务模板</h2>
|
||||
<div class="template-actions">
|
||||
<button onclick="previewTemplate()" class="btn btn-secondary btn-sm">
|
||||
<i class="ri-eye-line"></i> 预览
|
||||
@@ -74,7 +74,35 @@
|
||||
</p>
|
||||
<p><strong>调用命令:</strong><code>openclaw agent --agent hz4th_editor --message "[填充后的任务文本]"</code></p>
|
||||
</div>
|
||||
<textarea id="agent-template-editor" class="template-editor" rows="20" placeholder="加载模板中..."></textarea>
|
||||
<textarea id="agent-template-editor" class="template-editor" rows="15" placeholder="加载模板中..."></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 步骤5填充字段模板区域 -->
|
||||
<div class="panel template-section">
|
||||
<div class="panel-header">
|
||||
<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> 预览
|
||||
</button>
|
||||
<button onclick="saveFillFieldsTemplate()" 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>此模板用于步骤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>
|
||||
</div>
|
||||
<textarea id="fill-fields-template-editor" class="template-editor" rows="15" placeholder="加载模板中..."></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user