chatbot-lex-design-builder 2.0.27 → 2.0.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -9,22 +9,36 @@ function exportToFlows(data) {
|
|
|
9
9
|
definition: {
|
|
10
10
|
connections: [],
|
|
11
11
|
nodes: [],
|
|
12
|
-
}
|
|
12
|
+
},
|
|
13
13
|
};
|
|
14
|
-
graph.nodes.forEach(node => {
|
|
14
|
+
graph.nodes.forEach((node) => {
|
|
15
15
|
(0, ts_pattern_1.match)(node)
|
|
16
|
-
.with({ type: _1.NodeType.inputNode }, (node) => {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
.with({ type: _1.NodeType.
|
|
20
|
-
|
|
16
|
+
.with({ type: _1.NodeType.inputNode }, (node) => {
|
|
17
|
+
buildflowInputNode(node, graph, awsFlow);
|
|
18
|
+
})
|
|
19
|
+
.with({ type: _1.NodeType.outputNode }, (node) => {
|
|
20
|
+
buildflowOutputNode(node, graph, awsFlow);
|
|
21
|
+
})
|
|
22
|
+
.with({ type: _1.NodeType.agentNode }, (node) => {
|
|
23
|
+
buildAgentNode(node, graph, awsFlow);
|
|
24
|
+
})
|
|
25
|
+
.with({ type: _1.NodeType.collectorNode }, (node) => {
|
|
26
|
+
buildCollectorNode(node, graph, awsFlow);
|
|
27
|
+
})
|
|
28
|
+
.with({ type: _1.NodeType.conditionNode }, (node) => {
|
|
29
|
+
buildConditionNode(node, graph, awsFlow);
|
|
30
|
+
})
|
|
21
31
|
// .with({ type: NodeType.doWhileLoopNode }, (node) => { buildDoWhileLoopNode(node, graph, awsFlow) })
|
|
22
|
-
.with({ type: _1.NodeType.iteratorNode }, (node) => {
|
|
32
|
+
.with({ type: _1.NodeType.iteratorNode }, (node) => {
|
|
33
|
+
buildIteratorNode(node, graph, awsFlow);
|
|
34
|
+
})
|
|
23
35
|
// .with({ type: NodeType.knowledgeBaseNode }, (node) => { buildKnowledgeBaseNode(node, graph, awsFlow) })
|
|
24
36
|
// .with({ type: NodeType.lamdaFunctionNode }, (node) => { buildLamdaFunctionNode(node, graph, awsFlow) })
|
|
25
37
|
// .with({ type: NodeType.s3RetrievalNode }, (node) => { buildS3RetrievalNode(node, graph, awsFlow) })
|
|
26
38
|
// .with({ type: NodeType.s3StorageNode }, (node) => { buildS3StorageNode(node, graph, awsFlow) })
|
|
27
|
-
.with({ type: _1.NodeType.promptNode }, (node) => {
|
|
39
|
+
.with({ type: _1.NodeType.promptNode }, (node) => {
|
|
40
|
+
buildPromptNode(node, graph, awsFlow);
|
|
41
|
+
})
|
|
28
42
|
// .with({ type: NodeType.lexNode }, (node) => { buildLexNode(node, graph, awsFlow) })
|
|
29
43
|
// .with({ type: NodeType.inlineNode }, (node) => { buildInlineNode(node, graph, awsFlow) })
|
|
30
44
|
.run();
|
|
@@ -35,54 +49,54 @@ function exportToFlows(data) {
|
|
|
35
49
|
function buildflowInputNode(node, graph, awsFlow) {
|
|
36
50
|
const details = {
|
|
37
51
|
configuration: {
|
|
38
|
-
input: {}
|
|
52
|
+
input: {},
|
|
39
53
|
},
|
|
40
54
|
layout: {
|
|
41
55
|
position: {
|
|
42
56
|
x: -96,
|
|
43
|
-
y: 278
|
|
44
|
-
}
|
|
57
|
+
y: 278,
|
|
58
|
+
},
|
|
45
59
|
},
|
|
46
|
-
name: node.data.
|
|
47
|
-
outputs: getOutputs(node.data.
|
|
48
|
-
type: "Input"
|
|
60
|
+
name: node.data.name,
|
|
61
|
+
outputs: getOutputs(node.data.outputs || []),
|
|
62
|
+
type: "Input",
|
|
49
63
|
};
|
|
50
64
|
awsFlow.definition.nodes.push(details);
|
|
51
65
|
}
|
|
52
66
|
function buildflowOutputNode(node, graph, awsFlow) {
|
|
53
67
|
const details = {
|
|
54
68
|
configuration: {
|
|
55
|
-
output: {}
|
|
69
|
+
output: {},
|
|
56
70
|
},
|
|
57
71
|
inputs: getInputs(node.data.inputs || []),
|
|
58
72
|
layout: {
|
|
59
73
|
position: {
|
|
60
74
|
x: 1408,
|
|
61
|
-
y: 264
|
|
62
|
-
}
|
|
75
|
+
y: 264,
|
|
76
|
+
},
|
|
63
77
|
},
|
|
64
78
|
name: node.data.name,
|
|
65
|
-
type: "Output"
|
|
79
|
+
type: "Output",
|
|
66
80
|
};
|
|
67
81
|
awsFlow.definition.nodes.push(details);
|
|
68
82
|
}
|
|
69
83
|
function buildAgentNode(node, graph, awsFlow) {
|
|
70
84
|
const details = {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
}
|
|
85
|
+
configuration: {
|
|
86
|
+
agent: {
|
|
87
|
+
agentAliasArn: "arn:aws:bedrock:us-east-1:918581748790:agent-alias/HHQ4PTQ9VQ/1CBJV06AHP",
|
|
88
|
+
},
|
|
75
89
|
},
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
}
|
|
90
|
+
inputs: getInputs(node.data.inputs || []),
|
|
91
|
+
layout: {
|
|
92
|
+
position: {
|
|
93
|
+
x: 1083,
|
|
94
|
+
y: 1226,
|
|
95
|
+
},
|
|
82
96
|
},
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
97
|
+
name: node.data.name,
|
|
98
|
+
outputs: getOutputs(node.data.inputs || []),
|
|
99
|
+
type: "Agent",
|
|
86
100
|
};
|
|
87
101
|
awsFlow.definition.nodes.push(details);
|
|
88
102
|
}
|
|
@@ -94,60 +108,60 @@ function buildPromptNode(node, graph, awsFlow) {
|
|
|
94
108
|
sourceConfiguration: {
|
|
95
109
|
inline: {
|
|
96
110
|
additionalModelRequestFields: {
|
|
97
|
-
top_k: 250
|
|
111
|
+
top_k: 250,
|
|
98
112
|
},
|
|
99
113
|
inferenceConfiguration: {
|
|
100
114
|
text: {
|
|
101
115
|
maxTokens: 300,
|
|
102
|
-
stopSequences: [
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
temperature: 1
|
|
106
|
-
}
|
|
116
|
+
stopSequences: ["\n\nHuman:"],
|
|
117
|
+
temperature: 1,
|
|
118
|
+
},
|
|
107
119
|
},
|
|
108
120
|
modelId: "arn:aws:bedrock:us-east-1:918581748790:inference-profile/us.anthropic.claude-haiku-4-5-20251001-v1:0",
|
|
109
121
|
templateConfiguration: {
|
|
110
122
|
text: {
|
|
111
|
-
inputVariables: ((_a = node.data.inputs) === null || _a === void 0 ? void 0 : _a.map(i => ({
|
|
112
|
-
name: i.name
|
|
123
|
+
inputVariables: ((_a = node.data.inputs) === null || _a === void 0 ? void 0 : _a.map((i) => ({
|
|
124
|
+
name: i.name,
|
|
113
125
|
}))) || [],
|
|
114
|
-
text: node.data.sourceConfiguration.type === "inline"
|
|
115
|
-
|
|
126
|
+
text: node.data.sourceConfiguration.type === "inline"
|
|
127
|
+
? node.data.sourceConfiguration.text
|
|
128
|
+
: "",
|
|
129
|
+
},
|
|
116
130
|
},
|
|
117
|
-
templateType: "TEXT"
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
}
|
|
131
|
+
templateType: "TEXT",
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
},
|
|
121
135
|
},
|
|
122
136
|
inputs: getInputs(node.data.inputs || []),
|
|
123
137
|
layout: {
|
|
124
138
|
position: {
|
|
125
139
|
x: 1047,
|
|
126
|
-
y: 244
|
|
127
|
-
}
|
|
140
|
+
y: 244,
|
|
141
|
+
},
|
|
128
142
|
},
|
|
129
143
|
name: node.data.name,
|
|
130
|
-
outputs: getOutputs(node.data.
|
|
131
|
-
type: "Prompt"
|
|
144
|
+
outputs: getOutputs(node.data.outputs || []),
|
|
145
|
+
type: "Prompt",
|
|
132
146
|
};
|
|
133
147
|
awsFlow.definition.nodes.push(details);
|
|
134
148
|
}
|
|
135
149
|
function buildConditionNode(node, graph, awsFlow) {
|
|
136
150
|
const details = {
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
}
|
|
151
|
+
configuration: {
|
|
152
|
+
condition: {
|
|
153
|
+
conditions: getConditions(node.data.conditions || []),
|
|
154
|
+
},
|
|
141
155
|
},
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
}
|
|
156
|
+
inputs: getInputs(node.data.inputs || []),
|
|
157
|
+
layout: {
|
|
158
|
+
position: {
|
|
159
|
+
x: 585,
|
|
160
|
+
y: 209,
|
|
161
|
+
},
|
|
148
162
|
},
|
|
149
|
-
|
|
150
|
-
|
|
163
|
+
name: node.data.name,
|
|
164
|
+
type: "Condition",
|
|
151
165
|
};
|
|
152
166
|
awsFlow.definition.nodes.push(details);
|
|
153
167
|
}
|
|
@@ -224,59 +238,60 @@ function buildConditionNode(node, graph, awsFlow) {
|
|
|
224
238
|
// }
|
|
225
239
|
function buildCollectorNode(node, graph, awsFlow) {
|
|
226
240
|
const details = {
|
|
227
|
-
|
|
228
|
-
|
|
241
|
+
configuration: {
|
|
242
|
+
collector: {},
|
|
229
243
|
},
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
}
|
|
244
|
+
inputs: getInputs(node.data.inputs || []),
|
|
245
|
+
layout: {
|
|
246
|
+
position: {
|
|
247
|
+
x: 841,
|
|
248
|
+
y: 1515,
|
|
249
|
+
},
|
|
236
250
|
},
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
251
|
+
name: node.data.name,
|
|
252
|
+
outputs: getOutputs(node.data.outputs || []),
|
|
253
|
+
type: "Collector",
|
|
240
254
|
};
|
|
241
255
|
awsFlow.definition.nodes.push(details);
|
|
242
256
|
}
|
|
243
257
|
function buildIteratorNode(node, graph, awsFlow) {
|
|
244
258
|
const details = {
|
|
245
|
-
|
|
246
|
-
|
|
259
|
+
configuration: {
|
|
260
|
+
iterator: {},
|
|
247
261
|
},
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
}
|
|
262
|
+
inputs: getInputs(node.data.inputs || []),
|
|
263
|
+
layout: {
|
|
264
|
+
position: {
|
|
265
|
+
x: 856,
|
|
266
|
+
y: 1728,
|
|
267
|
+
},
|
|
254
268
|
},
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
269
|
+
name: node.data.name,
|
|
270
|
+
outputs: getOutputs(node.data.outputs || []),
|
|
271
|
+
type: "Iterator",
|
|
258
272
|
};
|
|
259
273
|
awsFlow.definition.nodes.push(details);
|
|
260
274
|
}
|
|
261
275
|
function getInputs(inputs) {
|
|
262
|
-
return inputs
|
|
263
|
-
.
|
|
276
|
+
return inputs
|
|
277
|
+
.filter((i) => i.enabled)
|
|
278
|
+
.map((i) => ({
|
|
264
279
|
expression: i.expression,
|
|
265
280
|
name: i.name,
|
|
266
281
|
type: capitalizeFirstLetter(i.type),
|
|
267
|
-
category: i.category
|
|
282
|
+
category: i.category,
|
|
268
283
|
}));
|
|
269
284
|
}
|
|
270
285
|
function getOutputs(outputs) {
|
|
271
|
-
return outputs.map(i => ({
|
|
286
|
+
return outputs.map((i) => ({
|
|
272
287
|
name: i.name,
|
|
273
|
-
type: capitalizeFirstLetter(i.type)
|
|
288
|
+
type: capitalizeFirstLetter(i.type),
|
|
274
289
|
}));
|
|
275
290
|
}
|
|
276
291
|
function getConditions(conditions) {
|
|
277
|
-
return conditions.map(c => ({
|
|
292
|
+
return conditions.map((c) => ({
|
|
278
293
|
name: c.name,
|
|
279
|
-
expression: c.expression
|
|
294
|
+
expression: c.expression,
|
|
280
295
|
}));
|
|
281
296
|
}
|
|
282
297
|
function capitalizeFirstLetter(str) {
|
|
@@ -287,37 +302,44 @@ function capitalizeFirstLetter(str) {
|
|
|
287
302
|
}
|
|
288
303
|
function buildConnections(graph, awsFlow) {
|
|
289
304
|
const connections = [];
|
|
290
|
-
graph.edges.forEach(e => {
|
|
305
|
+
graph.edges.forEach((e) => {
|
|
291
306
|
if (e.source.includes(_1.NodeType.conditionNode)) {
|
|
292
307
|
const c = {
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
}
|
|
301
|
-
}
|
|
308
|
+
name: e.id.replaceAll("-", "").replaceAll("_", ""),
|
|
309
|
+
source: getNameById(e.source, graph),
|
|
310
|
+
target: getNameById(e.target, graph),
|
|
311
|
+
type: "Conditional",
|
|
312
|
+
configuration: {
|
|
313
|
+
conditional: {
|
|
314
|
+
condition: e.sourceHandle,
|
|
315
|
+
},
|
|
316
|
+
},
|
|
302
317
|
};
|
|
303
318
|
connections.push(c);
|
|
304
319
|
}
|
|
305
320
|
else {
|
|
306
321
|
const c = {
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
}
|
|
316
|
-
}
|
|
322
|
+
name: e.id.replaceAll("-", "").replaceAll("_", ""),
|
|
323
|
+
source: getNameById(e.source, graph),
|
|
324
|
+
target: getNameById(e.target, graph),
|
|
325
|
+
type: "Data",
|
|
326
|
+
configuration: {
|
|
327
|
+
data: {
|
|
328
|
+
sourceOutput: e.sourceHandle,
|
|
329
|
+
targetInput: e.targetHandle,
|
|
330
|
+
},
|
|
331
|
+
},
|
|
317
332
|
};
|
|
318
333
|
connections.push(c);
|
|
319
334
|
}
|
|
320
335
|
});
|
|
321
336
|
awsFlow.definition.connections = connections;
|
|
322
337
|
}
|
|
338
|
+
function getNameById(id, graph) {
|
|
339
|
+
var _a;
|
|
340
|
+
// @ts-ignore
|
|
341
|
+
const node = graph.nodes.find((n) => n.id === id);
|
|
342
|
+
// @ts-ignore
|
|
343
|
+
return node ? (_a = node.data) === null || _a === void 0 ? void 0 : _a.name : undefined;
|
|
344
|
+
}
|
|
323
345
|
//# sourceMappingURL=export-to-flows.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"export-to-flows.js","sourceRoot":"","sources":["../../../../../workflows/lib/nodes/export-to-flows.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"export-to-flows.js","sourceRoot":"","sources":["../../../../../workflows/lib/nodes/export-to-flows.ts"],"names":[],"mappings":";;AAkBA,sCA8CC;AAhED,2CAAmC;AACnC,wBAeW;AAEX,SAAgB,aAAa,CAAC,IAAS;IACrC,MAAM,KAAK,GAAG,IAAI,CAAC,KAAc,CAAC;IAElC,MAAM,OAAO,GAAG;QACd,UAAU,EAAE;YACV,WAAW,EAAE,EAAE;YACf,KAAK,EAAE,EAAE;SACV;KACF,CAAC;IAEF,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;QAC3B,IAAA,kBAAK,EAAC,IAAI,CAAC;aACR,IAAI,CAAC,EAAE,IAAI,EAAE,WAAQ,CAAC,SAAS,EAAE,EAAE,CAAC,IAAI,EAAE,EAAE;YAC3C,kBAAkB,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;QAC3C,CAAC,CAAC;aACD,IAAI,CAAC,EAAE,IAAI,EAAE,WAAQ,CAAC,UAAU,EAAE,EAAE,CAAC,IAAI,EAAE,EAAE;YAC5C,mBAAmB,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;QAC5C,CAAC,CAAC;aACD,IAAI,CAAC,EAAE,IAAI,EAAE,WAAQ,CAAC,SAAS,EAAE,EAAE,CAAC,IAAI,EAAE,EAAE;YAC3C,cAAc,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;QACvC,CAAC,CAAC;aACD,IAAI,CAAC,EAAE,IAAI,EAAE,WAAQ,CAAC,aAAa,EAAE,EAAE,CAAC,IAAI,EAAE,EAAE;YAC/C,kBAAkB,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;QAC3C,CAAC,CAAC;aACD,IAAI,CAAC,EAAE,IAAI,EAAE,WAAQ,CAAC,aAAa,EAAE,EAAE,CAAC,IAAI,EAAE,EAAE;YA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IAAI,CAAC,CAAC,CAAC,MAAA,IAAI,CAAC,IAAI,0CAAE,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;AAC5C,CAAC"}
|
|
@@ -1,27 +1,41 @@
|
|
|
1
1
|
import { match } from "ts-pattern";
|
|
2
|
-
import { NodeType } from ".";
|
|
2
|
+
import { NodeType, } from ".";
|
|
3
3
|
export function exportToFlows(data) {
|
|
4
4
|
const graph = data.graph;
|
|
5
5
|
const awsFlow = {
|
|
6
6
|
definition: {
|
|
7
7
|
connections: [],
|
|
8
8
|
nodes: [],
|
|
9
|
-
}
|
|
9
|
+
},
|
|
10
10
|
};
|
|
11
|
-
graph.nodes.forEach(node => {
|
|
11
|
+
graph.nodes.forEach((node) => {
|
|
12
12
|
match(node)
|
|
13
|
-
.with({ type: NodeType.inputNode }, (node) => {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
.with({ type: NodeType.
|
|
17
|
-
|
|
13
|
+
.with({ type: NodeType.inputNode }, (node) => {
|
|
14
|
+
buildflowInputNode(node, graph, awsFlow);
|
|
15
|
+
})
|
|
16
|
+
.with({ type: NodeType.outputNode }, (node) => {
|
|
17
|
+
buildflowOutputNode(node, graph, awsFlow);
|
|
18
|
+
})
|
|
19
|
+
.with({ type: NodeType.agentNode }, (node) => {
|
|
20
|
+
buildAgentNode(node, graph, awsFlow);
|
|
21
|
+
})
|
|
22
|
+
.with({ type: NodeType.collectorNode }, (node) => {
|
|
23
|
+
buildCollectorNode(node, graph, awsFlow);
|
|
24
|
+
})
|
|
25
|
+
.with({ type: NodeType.conditionNode }, (node) => {
|
|
26
|
+
buildConditionNode(node, graph, awsFlow);
|
|
27
|
+
})
|
|
18
28
|
// .with({ type: NodeType.doWhileLoopNode }, (node) => { buildDoWhileLoopNode(node, graph, awsFlow) })
|
|
19
|
-
.with({ type: NodeType.iteratorNode }, (node) => {
|
|
29
|
+
.with({ type: NodeType.iteratorNode }, (node) => {
|
|
30
|
+
buildIteratorNode(node, graph, awsFlow);
|
|
31
|
+
})
|
|
20
32
|
// .with({ type: NodeType.knowledgeBaseNode }, (node) => { buildKnowledgeBaseNode(node, graph, awsFlow) })
|
|
21
33
|
// .with({ type: NodeType.lamdaFunctionNode }, (node) => { buildLamdaFunctionNode(node, graph, awsFlow) })
|
|
22
34
|
// .with({ type: NodeType.s3RetrievalNode }, (node) => { buildS3RetrievalNode(node, graph, awsFlow) })
|
|
23
35
|
// .with({ type: NodeType.s3StorageNode }, (node) => { buildS3StorageNode(node, graph, awsFlow) })
|
|
24
|
-
.with({ type: NodeType.promptNode }, (node) => {
|
|
36
|
+
.with({ type: NodeType.promptNode }, (node) => {
|
|
37
|
+
buildPromptNode(node, graph, awsFlow);
|
|
38
|
+
})
|
|
25
39
|
// .with({ type: NodeType.lexNode }, (node) => { buildLexNode(node, graph, awsFlow) })
|
|
26
40
|
// .with({ type: NodeType.inlineNode }, (node) => { buildInlineNode(node, graph, awsFlow) })
|
|
27
41
|
.run();
|
|
@@ -32,54 +46,54 @@ export function exportToFlows(data) {
|
|
|
32
46
|
function buildflowInputNode(node, graph, awsFlow) {
|
|
33
47
|
const details = {
|
|
34
48
|
configuration: {
|
|
35
|
-
input: {}
|
|
49
|
+
input: {},
|
|
36
50
|
},
|
|
37
51
|
layout: {
|
|
38
52
|
position: {
|
|
39
53
|
x: -96,
|
|
40
|
-
y: 278
|
|
41
|
-
}
|
|
54
|
+
y: 278,
|
|
55
|
+
},
|
|
42
56
|
},
|
|
43
|
-
name: node.data.
|
|
44
|
-
outputs: getOutputs(node.data.
|
|
45
|
-
type: "Input"
|
|
57
|
+
name: node.data.name,
|
|
58
|
+
outputs: getOutputs(node.data.outputs || []),
|
|
59
|
+
type: "Input",
|
|
46
60
|
};
|
|
47
61
|
awsFlow.definition.nodes.push(details);
|
|
48
62
|
}
|
|
49
63
|
function buildflowOutputNode(node, graph, awsFlow) {
|
|
50
64
|
const details = {
|
|
51
65
|
configuration: {
|
|
52
|
-
output: {}
|
|
66
|
+
output: {},
|
|
53
67
|
},
|
|
54
68
|
inputs: getInputs(node.data.inputs || []),
|
|
55
69
|
layout: {
|
|
56
70
|
position: {
|
|
57
71
|
x: 1408,
|
|
58
|
-
y: 264
|
|
59
|
-
}
|
|
72
|
+
y: 264,
|
|
73
|
+
},
|
|
60
74
|
},
|
|
61
75
|
name: node.data.name,
|
|
62
|
-
type: "Output"
|
|
76
|
+
type: "Output",
|
|
63
77
|
};
|
|
64
78
|
awsFlow.definition.nodes.push(details);
|
|
65
79
|
}
|
|
66
80
|
function buildAgentNode(node, graph, awsFlow) {
|
|
67
81
|
const details = {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
}
|
|
82
|
+
configuration: {
|
|
83
|
+
agent: {
|
|
84
|
+
agentAliasArn: "arn:aws:bedrock:us-east-1:918581748790:agent-alias/HHQ4PTQ9VQ/1CBJV06AHP",
|
|
85
|
+
},
|
|
72
86
|
},
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
}
|
|
87
|
+
inputs: getInputs(node.data.inputs || []),
|
|
88
|
+
layout: {
|
|
89
|
+
position: {
|
|
90
|
+
x: 1083,
|
|
91
|
+
y: 1226,
|
|
92
|
+
},
|
|
79
93
|
},
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
94
|
+
name: node.data.name,
|
|
95
|
+
outputs: getOutputs(node.data.inputs || []),
|
|
96
|
+
type: "Agent",
|
|
83
97
|
};
|
|
84
98
|
awsFlow.definition.nodes.push(details);
|
|
85
99
|
}
|
|
@@ -91,60 +105,60 @@ function buildPromptNode(node, graph, awsFlow) {
|
|
|
91
105
|
sourceConfiguration: {
|
|
92
106
|
inline: {
|
|
93
107
|
additionalModelRequestFields: {
|
|
94
|
-
top_k: 250
|
|
108
|
+
top_k: 250,
|
|
95
109
|
},
|
|
96
110
|
inferenceConfiguration: {
|
|
97
111
|
text: {
|
|
98
112
|
maxTokens: 300,
|
|
99
|
-
stopSequences: [
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
temperature: 1
|
|
103
|
-
}
|
|
113
|
+
stopSequences: ["\n\nHuman:"],
|
|
114
|
+
temperature: 1,
|
|
115
|
+
},
|
|
104
116
|
},
|
|
105
117
|
modelId: "arn:aws:bedrock:us-east-1:918581748790:inference-profile/us.anthropic.claude-haiku-4-5-20251001-v1:0",
|
|
106
118
|
templateConfiguration: {
|
|
107
119
|
text: {
|
|
108
|
-
inputVariables: ((_a = node.data.inputs) === null || _a === void 0 ? void 0 : _a.map(i => ({
|
|
109
|
-
name: i.name
|
|
120
|
+
inputVariables: ((_a = node.data.inputs) === null || _a === void 0 ? void 0 : _a.map((i) => ({
|
|
121
|
+
name: i.name,
|
|
110
122
|
}))) || [],
|
|
111
|
-
text: node.data.sourceConfiguration.type === "inline"
|
|
112
|
-
|
|
123
|
+
text: node.data.sourceConfiguration.type === "inline"
|
|
124
|
+
? node.data.sourceConfiguration.text
|
|
125
|
+
: "",
|
|
126
|
+
},
|
|
113
127
|
},
|
|
114
|
-
templateType: "TEXT"
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
}
|
|
128
|
+
templateType: "TEXT",
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
},
|
|
118
132
|
},
|
|
119
133
|
inputs: getInputs(node.data.inputs || []),
|
|
120
134
|
layout: {
|
|
121
135
|
position: {
|
|
122
136
|
x: 1047,
|
|
123
|
-
y: 244
|
|
124
|
-
}
|
|
137
|
+
y: 244,
|
|
138
|
+
},
|
|
125
139
|
},
|
|
126
140
|
name: node.data.name,
|
|
127
|
-
outputs: getOutputs(node.data.
|
|
128
|
-
type: "Prompt"
|
|
141
|
+
outputs: getOutputs(node.data.outputs || []),
|
|
142
|
+
type: "Prompt",
|
|
129
143
|
};
|
|
130
144
|
awsFlow.definition.nodes.push(details);
|
|
131
145
|
}
|
|
132
146
|
function buildConditionNode(node, graph, awsFlow) {
|
|
133
147
|
const details = {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
}
|
|
148
|
+
configuration: {
|
|
149
|
+
condition: {
|
|
150
|
+
conditions: getConditions(node.data.conditions || []),
|
|
151
|
+
},
|
|
138
152
|
},
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
}
|
|
153
|
+
inputs: getInputs(node.data.inputs || []),
|
|
154
|
+
layout: {
|
|
155
|
+
position: {
|
|
156
|
+
x: 585,
|
|
157
|
+
y: 209,
|
|
158
|
+
},
|
|
145
159
|
},
|
|
146
|
-
|
|
147
|
-
|
|
160
|
+
name: node.data.name,
|
|
161
|
+
type: "Condition",
|
|
148
162
|
};
|
|
149
163
|
awsFlow.definition.nodes.push(details);
|
|
150
164
|
}
|
|
@@ -221,59 +235,60 @@ function buildConditionNode(node, graph, awsFlow) {
|
|
|
221
235
|
// }
|
|
222
236
|
function buildCollectorNode(node, graph, awsFlow) {
|
|
223
237
|
const details = {
|
|
224
|
-
|
|
225
|
-
|
|
238
|
+
configuration: {
|
|
239
|
+
collector: {},
|
|
226
240
|
},
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
}
|
|
241
|
+
inputs: getInputs(node.data.inputs || []),
|
|
242
|
+
layout: {
|
|
243
|
+
position: {
|
|
244
|
+
x: 841,
|
|
245
|
+
y: 1515,
|
|
246
|
+
},
|
|
233
247
|
},
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
248
|
+
name: node.data.name,
|
|
249
|
+
outputs: getOutputs(node.data.outputs || []),
|
|
250
|
+
type: "Collector",
|
|
237
251
|
};
|
|
238
252
|
awsFlow.definition.nodes.push(details);
|
|
239
253
|
}
|
|
240
254
|
function buildIteratorNode(node, graph, awsFlow) {
|
|
241
255
|
const details = {
|
|
242
|
-
|
|
243
|
-
|
|
256
|
+
configuration: {
|
|
257
|
+
iterator: {},
|
|
244
258
|
},
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
}
|
|
259
|
+
inputs: getInputs(node.data.inputs || []),
|
|
260
|
+
layout: {
|
|
261
|
+
position: {
|
|
262
|
+
x: 856,
|
|
263
|
+
y: 1728,
|
|
264
|
+
},
|
|
251
265
|
},
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
266
|
+
name: node.data.name,
|
|
267
|
+
outputs: getOutputs(node.data.outputs || []),
|
|
268
|
+
type: "Iterator",
|
|
255
269
|
};
|
|
256
270
|
awsFlow.definition.nodes.push(details);
|
|
257
271
|
}
|
|
258
272
|
function getInputs(inputs) {
|
|
259
|
-
return inputs
|
|
260
|
-
.
|
|
273
|
+
return inputs
|
|
274
|
+
.filter((i) => i.enabled)
|
|
275
|
+
.map((i) => ({
|
|
261
276
|
expression: i.expression,
|
|
262
277
|
name: i.name,
|
|
263
278
|
type: capitalizeFirstLetter(i.type),
|
|
264
|
-
category: i.category
|
|
279
|
+
category: i.category,
|
|
265
280
|
}));
|
|
266
281
|
}
|
|
267
282
|
function getOutputs(outputs) {
|
|
268
|
-
return outputs.map(i => ({
|
|
283
|
+
return outputs.map((i) => ({
|
|
269
284
|
name: i.name,
|
|
270
|
-
type: capitalizeFirstLetter(i.type)
|
|
285
|
+
type: capitalizeFirstLetter(i.type),
|
|
271
286
|
}));
|
|
272
287
|
}
|
|
273
288
|
function getConditions(conditions) {
|
|
274
|
-
return conditions.map(c => ({
|
|
289
|
+
return conditions.map((c) => ({
|
|
275
290
|
name: c.name,
|
|
276
|
-
expression: c.expression
|
|
291
|
+
expression: c.expression,
|
|
277
292
|
}));
|
|
278
293
|
}
|
|
279
294
|
function capitalizeFirstLetter(str) {
|
|
@@ -284,37 +299,44 @@ function capitalizeFirstLetter(str) {
|
|
|
284
299
|
}
|
|
285
300
|
function buildConnections(graph, awsFlow) {
|
|
286
301
|
const connections = [];
|
|
287
|
-
graph.edges.forEach(e => {
|
|
302
|
+
graph.edges.forEach((e) => {
|
|
288
303
|
if (e.source.includes(NodeType.conditionNode)) {
|
|
289
304
|
const c = {
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
}
|
|
298
|
-
}
|
|
305
|
+
name: e.id.replaceAll("-", "").replaceAll("_", ""),
|
|
306
|
+
source: getNameById(e.source, graph),
|
|
307
|
+
target: getNameById(e.target, graph),
|
|
308
|
+
type: "Conditional",
|
|
309
|
+
configuration: {
|
|
310
|
+
conditional: {
|
|
311
|
+
condition: e.sourceHandle,
|
|
312
|
+
},
|
|
313
|
+
},
|
|
299
314
|
};
|
|
300
315
|
connections.push(c);
|
|
301
316
|
}
|
|
302
317
|
else {
|
|
303
318
|
const c = {
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
}
|
|
313
|
-
}
|
|
319
|
+
name: e.id.replaceAll("-", "").replaceAll("_", ""),
|
|
320
|
+
source: getNameById(e.source, graph),
|
|
321
|
+
target: getNameById(e.target, graph),
|
|
322
|
+
type: "Data",
|
|
323
|
+
configuration: {
|
|
324
|
+
data: {
|
|
325
|
+
sourceOutput: e.sourceHandle,
|
|
326
|
+
targetInput: e.targetHandle,
|
|
327
|
+
},
|
|
328
|
+
},
|
|
314
329
|
};
|
|
315
330
|
connections.push(c);
|
|
316
331
|
}
|
|
317
332
|
});
|
|
318
333
|
awsFlow.definition.connections = connections;
|
|
319
334
|
}
|
|
335
|
+
function getNameById(id, graph) {
|
|
336
|
+
var _a;
|
|
337
|
+
// @ts-ignore
|
|
338
|
+
const node = graph.nodes.find((n) => n.id === id);
|
|
339
|
+
// @ts-ignore
|
|
340
|
+
return node ? (_a = node.data) === null || _a === void 0 ? void 0 : _a.name : undefined;
|
|
341
|
+
}
|
|
320
342
|
//# sourceMappingURL=export-to-flows.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"export-to-flows.js","sourceRoot":"","sources":["../../../../../workflows/lib/nodes/export-to-flows.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,
|
|
1
|
+
{"version":3,"file":"export-to-flows.js","sourceRoot":"","sources":["../../../../../workflows/lib/nodes/export-to-flows.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAaL,QAAQ,GAET,MAAM,GAAG,CAAC;AAEX,MAAM,UAAU,aAAa,CAAC,IAAS;IACrC,MAAM,KAAK,GAAG,IAAI,CAAC,KAAc,CAAC;IAElC,MAAM,OAAO,GAAG;QACd,UAAU,EAAE;YACV,WAAW,EAAE,EAAE;YACf,KAAK,EAAE,EAAE;SACV;KACF,CAAC;IAEF,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;QAC3B,KAAK,CAAC,IAAI,CAAC;aACR,IAAI,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,SAAS,EAAE,EAAE,CAAC,IAAI,EAAE,EAAE;YAC3C,kBAAkB,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;QAC3C,CAAC,CAAC;aACD,IAAI,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,UAAU,EAAE,EAAE,CAAC,IAAI,EAAE,EAAE;YAC5C,mBAAmB,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;QAC5C,CAAC,CAAC;aACD,IAAI,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,SAAS,EAAE,EAAE,CAAC,IAAI,EAAE,EAAE;YAC3C,cAAc,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;QACvC,CAAC,CAAC;aACD,IAAI,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,aAAa,EAAE,EAAE,CAAC,IAAI,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