智信-agent
  1. 工作流
智信-agent
  • 文件分析
    • 文件解析接口
      POST
    • 文本分段测试接口
      POST
    • 二进制文件
      POST
  • 知识库管理
    • 知识库初始化
      POST
    • 知识库召回测试
      POST
    • 知识库查询
      POST
    • 知识库文件添加
      POST
  • 工作流
    • AI生成prompt
      POST
    • 工作流运行
      POST
    • 单节点运行
      POST
    • 工作流保存接口
      POST
  • MCP管理
    • 建立MCP服务器
      POST
    • MCP服务器工具的添加
      POST
    • MCP服务器工具的删除
      POST
    • MCP服务器工具的修改
      POST
    • 修改服务器名称和描述
      POST
    • 关闭MCP服务器
      POST
    • 查看所有的工具
      POST
    • 查询当前活跃的mcp服务器信息
      GET
    • 使用指定工具
      POST
  • 数据库开发
    • 数据库内部接口
      • 接口整合
      • 自然语言及SQL执行
      • schma查询
      • 单表的字段描述查询
      • all
    • 数据库工作流运行
      • 数据库工作流保存
      • 数据库单节点运行
  • mineru
    POST
  1. 工作流

AI生成prompt

开发中
开发环境
http://172.29.50.10:2333
开发环境
http://172.29.50.10:2333
POST
/zhixin_agent/workflows/rule-generate

请求参数

Body 参数application/json
instruction
string 
必需
model_config
object 
必需
provider
string 
必需
name
string 
必需
mode
string 
必需
completion_params
object 
必需
user_id
string 
必需
使用该user_id获取默认的模型以及资源
no_variable
boolean 
默认就是用true
必需
示例
{
    "instruction": "将会议内容提炼总结,包括讨论主题、关键要点和待办事项",
    "model_config": {
        "provider": "langgenius/tongyi/tongyi",
        "name": "deepseek-r1-distill-qwen-14b",
        "mode": "chat",
        "completion_params": {
            "temperature": 0.7
        }
    },
    "user_id": "20250526hongxmguochuang",
    "no_variable": true
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://172.29.50.10:2333/zhixin_agent/workflows/rule-generate' \
--header 'Content-Type: application/json' \
--data-raw '{
    "instruction": "将会议内容提炼总结,包括讨论主题、关键要点和待办事项",
    "model_config": {
        "provider": "langgenius/tongyi/tongyi",
        "name": "deepseek-r1-distill-qwen-14b",
        "mode": "chat",
        "completion_params": {
            "temperature": 0.7
        }
    },
    "user_id": "20250526hongxmguochuang",
    "no_variable": true
}'

返回响应

🟢200成功
application/json
Body
prompt
string 
必需
variables
array[string]
必需
opening_statement
string 
必需
error
string 
必需
示例
{
    "prompt": "string",
    "variables": [
        "string"
    ],
    "opening_statement": "string",
    "error": "string"
}
修改于 2025-05-27 06:40:04
上一页
知识库文件添加
下一页
工作流运行
Built with