File size: 1,982 Bytes
df34274
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
{
  "schema_version": "2",
  "name": "Parallel Test",
  "runtime": { "default": "client" },
  "references": [
    {
      "id": "ref_input",
      "role": "reference",
      "label": "Prompt",
      "asset_type": "text",
      "inputs": [{ "id": "in", "label": "Text", "type": "text" }],
      "outputs": [{ "id": "out", "label": "Text", "type": "text" }],
      "data": { "out": "hello" },
      "x": 60, "y": 180, "width": 220, "height": 160
    }
  ],
  "operators": [
    {
      "id": "op_slow",
      "role": "operator",
      "kind": "fn",
      "fn": "slow_fn",
      "label": "slow_fn",
      "inputs": [{ "id": "in_text", "label": "text", "type": "text" }],
      "outputs": [{ "id": "out_0", "label": "output", "type": "text" }],
      "data": {},
      "x": 340, "y": 120, "width": 220, "height": 120
    },
    {
      "id": "op_fast",
      "role": "operator",
      "kind": "fn",
      "fn": "fast_fn",
      "label": "fast_fn",
      "inputs": [{ "id": "in_text", "label": "text", "type": "text" }],
      "outputs": [{ "id": "out_0", "label": "output", "type": "text" }],
      "data": {},
      "x": 620, "y": 120, "width": 220, "height": 120
    }
  ],
  "subjects": [
    {
      "id": "sub_result",
      "role": "subject",
      "label": "Result",
      "asset_type": "text",
      "inputs": [{ "id": "in", "label": "Text", "type": "text" }],
      "outputs": [{ "id": "out", "label": "Text", "type": "text" }],
      "data": {},
      "x": 900, "y": 180, "width": 220, "height": 160
    }
  ],
  "edges": [
    { "id": "e1", "from_node_id": "ref_input", "from_port_id": "out", "to_node_id": "op_slow", "to_port_id": "in_text", "type": "text" },
    { "id": "e2", "from_node_id": "op_slow", "from_port_id": "out_0", "to_node_id": "op_fast", "to_port_id": "in_text", "type": "text" },
    { "id": "e3", "from_node_id": "op_fast", "from_port_id": "out_0", "to_node_id": "sub_result", "to_port_id": "in", "type": "text" }
  ],
  "view": { "default": "canvas" }
}