File size: 2,352 Bytes
b1476e2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
{
  "schema_version": "2",
  "name": "ZeroGPU Workflow Serialization Test",
  "runtime": { "default": "client" },
  "references": [
    {
      "id": "n_prompt",
      "label": "Prompt",
      "role": "reference",
      "asset_type": "text",
      "inputs": [{ "id": "in", "label": "Prompt", "type": "text" }],
      "outputs": [{ "id": "out", "label": "Prompt", "type": "text" }],
      "x": 80,
      "y": 120,
      "width": 220,
      "height": 163,
      "data": {}
    }
  ],
  "operators": [
    {
      "id": "n_generate",
      "label": "generate (GPU, 5s)",
      "role": "operator",
      "kind": "fn",
      "fn": "generate",
      "source": "generate",
      "runtime": "client",
      "inputs": [{ "id": "in_text", "label": "text", "type": "text" }],
      "outputs": [{ "id": "out_0", "label": "output", "type": "text" }],
      "x": 380,
      "y": 120,
      "width": 220,
      "height": 124,
      "data": {}
    },
    {
      "id": "n_visualize",
      "label": "visualize (CPU, 3s)",
      "role": "operator",
      "kind": "fn",
      "fn": "visualize",
      "source": "visualize",
      "runtime": "client",
      "inputs": [{ "id": "in_text", "label": "text", "type": "text" }],
      "outputs": [{ "id": "out_0", "label": "output", "type": "text" }],
      "x": 680,
      "y": 120,
      "width": 220,
      "height": 124,
      "data": {}
    }
  ],
  "subjects": [
    {
      "id": "n_result",
      "label": "Result",
      "role": "subject",
      "asset_type": "text",
      "inputs": [{ "id": "in", "label": "Result", "type": "text" }],
      "outputs": [{ "id": "out", "label": "Result", "type": "text" }],
      "x": 980,
      "y": 120,
      "width": 220,
      "height": 163,
      "data": { "in": null }
    }
  ],
  "edges": [
    {
      "id": "e1",
      "from_node_id": "n_prompt",
      "from_port_id": "out",
      "to_node_id": "n_generate",
      "to_port_id": "in_text",
      "type": "text"
    },
    {
      "id": "e2",
      "from_node_id": "n_generate",
      "from_port_id": "out_0",
      "to_node_id": "n_visualize",
      "to_port_id": "in_text",
      "type": "text"
    },
    {
      "id": "e3",
      "from_node_id": "n_visualize",
      "from_port_id": "out_0",
      "to_node_id": "n_result",
      "to_port_id": "in",
      "type": "text"
    }
  ],
  "view": { "default": "canvas" }
}