functiongraph__CreateWorkflow
Create and configure a FunctionGraph workflow with nodes, functions, retries, triggers, and execution mode to automate serverless function orchestration.
Instructions
[FUNCTIONGRAPH] 创建函数流
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"constants": "<constants>",
"functions": "<functions>",
"name": "<name>",
"project_id": "<project_id>",
"retries": "<retries>",
"start": "<start>",
"states": "<states>"
},
"name": "functiongraph__CreateWorkflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | 函数流模式,当前支持两种模式 | NORMAL |
| name | Yes | 函数流名称 | |
| start | Yes | 流程开始节点ID | |
| states | Yes | 函数流节点清单,定义参考SleepState和OperationState | |
| retries | Yes | 重试策略清单 | |
| triggers | No | 触发器列表 | |
| constants | Yes | 函数流中的常量 | |
| functions | Yes | 函数列表 | |
| project_id | Yes | 租户project_id | |
| description | No | 函数流描述 | |
| express_config | No | 快速函数流模式配置,当mode为EXPRESS时需要设置 | |
| enterprise_project_id | No | 企业项目ID | |
| enable_stream_response | No | 是否返回流数据 |