医疗智能体 EIHEALTH-创建流程:请求示例

时间:2024-07-13 11:27:03

请求示例

创建流程,流程的名称为demo-workflow,版本为1.0.0。

https://eihealth.cn-north-4.myhuaweicloud.com/v1/{project_id}/eihealth-projects/{eihealth_project_id}/workflows

{
  "name" : "demo-workflow",
  "version" : "1.0.0",
  "summary" : "summary",
  "description" : "description",
  "labels" : [ "labelA", "labelB" ],
  "timeout" : 1440,
  "output_dir" : "/workflow",
  "tasks" : [ {
    "task_name" : "app1-1",
    "app_id" : "baabcb56-5bb6-11eb-8a0d-fa163e3ddba1",
    "display_name" : "步骤1",
    "output_dir" : "/task",
    "resources" : {
      "cpu_type" : "X86",
      "cpu" : "1C",
      "memory" : "1G",
      "gpu_type" : "GPU",
      "gpu" : 0
    },
    "location" : {
      "x" : 100,
      "y" : 100
    },
    "inputs" : [ {
      "name" : "dir-parameter",
      "values" : [ "/test" ]
    } ]
  } ]
}
support.huaweicloud.com/api-eihealth/CreateWorkflow.html