name: 测试工作流
description: |
这是一个测试工作流,用于测试工作流的执行流程。
checkStatus:
debug: true
connectivity: true
basicConfig:
startStep: 7da0d4a6-be66-448a-b60e-cba49b3a18f1
endStep: 0ec9a020-d498-4a64-b53c-d35fbd0c4a59
focusPoint:
x: 0.0
y: 0.0
onError:
use_llm: false
output_format: |
**当前工作流{{ flow.name }}执行发生错误!**
错误信息:{{ error.message }}
steps:
7da0d4a6-be66-448a-b60e-cba49b3a18f1:
node: api
name: 查询数据
description: 从API中查询测试数据
pos:
x: 100
y: 100
params:
enable_filling: true
url: https://api.example.com/test
method: get
content_type: application/json
timeout: 300
body: {}
query: {}
a01ea160-b026-420c-a8c0-7d9208409018:
node: llm
name: 生成回复
description: 使用大模型生成回复
pos:
x: 300
y: 100
params:
to_user: true
temperature: 0.7
step_history_size: 3
history_length: 0
system_prompt: 你是一个擅长Linux系统性能优化,且能够根据具体情况撰写分析报告的智能助手。
user_prompt: |
上下文:
{{ context }}
当前时间:
{{ time }}
主机信息:
{{ start.output.result.machines[0] }}
测试数据:{{ storage[-1].output.result.machines[0].data }}
使用自然语言解释这一信息,并展示为Markdown列表。
0ec9a020-d498-4a64-b53c-d35fbd0c4a59:
node: suggest
name: 问题推荐
description: 问题推荐
pos:
x: 500
y: 100
params:
to_user: true
num: 3
configs:
- flow_id: 4eb1dc31-23d2-42a3-9e8a-14e83460610b
question: 这是固定的推荐问题
edges:
- id: edge_00
edge_from: 7da0d4a6-be66-448a-b60e-cba49b3a18f1
edge_to: a01ea160-b026-420c-a8c0-7d9208409018
type: normal
- id: edge_01
edge_from: a01ea160-b026-420c-a8c0-7d9208409018
edge_to: 0ec9a020-d498-4a64-b53c-d35fbd0c4a59
type: normal