dagflow/SKILL.md
2026-03-13 17:47:58 +08:00

25 lines
1016 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
name: workflow-builder
description: 根据用户输入创建工作流
---
# workflow-builder
为用户输入的任务创建工作流, 生成dagflow能使用的工作流并将工作流插入到数据库中
## 流程引擎
流程引擎具体说明请看[README.md](README.md)
## 查找所有现有流程
执行下面的命令
```
CALL: {"function": "get_exists_workflows"}
```
## 新建流程
将用户输入拆解为流程引擎添加流程的json数据然后调用以下函数
```
CALL{ "function": "add_new_workflow", "params":{"name":流程名字,"description": 用户输入的"dsl":YAML格式的符合上述流程规范的流程定义}
```
## 查找或新建流程
首先查找所有流程,用户输入和查询结果一起组成:”输入输入:用户实际输入,
现有流程查询所有流程返回的数据选择可以实现的模型id 可以多个也可以为NONE表示没有找到合适的流程“ 交给大模型选择, 如果返回结果一到多个流程id