File size: 1,617 Bytes
176823e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
{
  "$schema": "https://raw.githubusercontent.com/modelscope/modelscope-studio/main/frontend/Flow/schema.json",
  "nodes": [
    {
      "max": 1,
      "min": 1,
      "addable": false,
      "show_toolbar": false,
      "name": "start",
      "title": "Start",
      "ports": {
        "source": ["right"],
        "target": []
      }
    },
    {
      "icon": "https://img.alicdn.com/imgextra/i4/O1CN01fvt4it25rEZU4Gjso_!!6000000007579-2-tps-128-128.png",
      "name": "agent",
      "title": "Agent Node",
      "description": "Agent Flow Node",
      "ports": {
        "target": ["left"],
        "source": []
      },
      "attrs": [
        {
          "name": "prompt",
          "title": "Agent Prompt",
          "type": "textarea",
          "required": {
            "message": "Agent Prompt is required"
          }
        },
        {
          "name": "tool",
          "title": "Tools",
          "type": "select",
          "props": {
            "mode": "multiple",
            "options": [
              { "label": "Wanx Image Generation", "value": "image_gen" },
              { "label": "Code Interpreter", "value": "code_interpreter" },
              { "label": "Web Browsing", "value": "web_browser" }
            ]
          }
        },
        {
          "name": "condition",
          "title": "Jump Condition",
          "list": {
            "min": 1,
            "ports": {
              "source": ["right"]
            }
          },
          "accordion": false
        }
      ],
      "template": {
        "attrs": {
          "condition": [""]
        }
      }
    }
  ]
}