-
Notifications
You must be signed in to change notification settings - Fork 14
/
Test.yml
287 lines (287 loc) · 6.5 KB
/
Test.yml
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
app:
description: ''
icon: "\U0001F916"
icon_background: '#FFEAD5'
mode: workflow
name: Test
workflow:
features:
file_upload:
image:
enabled: false
number_limits: 3
transfer_methods:
- local_file
- remote_url
opening_statement: ''
retriever_resource:
enabled: true
sensitive_word_avoidance:
enabled: false
speech_to_text:
enabled: false
suggested_questions: []
suggested_questions_after_answer:
enabled: false
text_to_speech:
enabled: false
language: ''
voice: ''
graph:
edges:
- data:
isInIteration: false
sourceType: start
targetType: tool
id: 1720071647324-source-1720490783358-target
source: '1720071647324'
sourceHandle: source
target: '1720490783358'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: tool
targetType: code
id: 1720490783358-source-1720491840537-target
source: '1720490783358'
sourceHandle: source
target: '1720491840537'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: code
targetType: if-else
id: 1720491840537-source-1720490927477-target
source: '1720491840537'
sourceHandle: source
target: '1720490927477'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: if-else
targetType: end
id: 1720490927477-true-1720490975246-target
source: '1720490927477'
sourceHandle: 'true'
target: '1720490975246'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: if-else
targetType: tool
id: 1720490927477-false-1720492201843-target
source: '1720490927477'
sourceHandle: 'false'
target: '1720492201843'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: tool
targetType: end
id: 1720492201843-source-1720491252447-target
source: '1720492201843'
sourceHandle: source
target: '1720491252447'
targetHandle: target
type: custom
zIndex: 0
nodes:
- data:
desc: ''
selected: false
title: Start
type: start
variables:
- label: Username
max_length: 48
options: []
required: true
type: text-input
variable: username
height: 90
id: '1720071647324'
position:
x: 30
y: 263
positionAbsolute:
x: 30
y: 263
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
desc: ''
provider_id: a58c5395-b07e-451e-816b-ac7ee502ff47
provider_name: Users Store
provider_type: api
selected: false
title: getUser
tool_configurations: {}
tool_label: getUser
tool_name: getUser
tool_parameters:
user_id:
type: mixed
value: '{{#sys.user_id#}}'
type: tool
height: 54
id: '1720490783358'
position:
x: 334
y: 263
positionAbsolute:
x: 334
y: 263
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
conditions:
- comparison_operator: is
id: '1720490928975'
value: Found
variable_selector:
- '1720491840537'
- result
desc: ''
logical_operator: and
selected: false
title: IF/ELSE
type: if-else
height: 126
id: '1720490927477'
position:
x: 942
y: 263
positionAbsolute:
x: 942
y: 263
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
desc: ''
outputs:
- value_selector:
- '1720490783358'
- text
variable: result
selected: false
title: User Found
type: end
height: 90
id: '1720490975246'
position:
x: 1246
y: 263
positionAbsolute:
x: 1246
y: 263
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
desc: ''
outputs:
- value_selector:
- '1720492201843'
- text
variable: result
selected: false
title: User Not Found
type: end
height: 90
id: '1720491252447'
position:
x: 1550
y: 375
positionAbsolute:
x: 1550
y: 375
selected: true
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
code: "\nfunction main({arg1}) {\n return {\n result: JSON.parse(arg1).error\
\ || \"Found\"\n }\n}\n"
code_language: javascript
desc: ''
outputs:
result:
children: null
type: string
selected: false
title: Not Found | Found
type: code
variables:
- value_selector:
- '1720490783358'
- text
variable: arg1
height: 54
id: '1720491840537'
position:
x: 638
y: 263
positionAbsolute:
x: 638
y: 263
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
desc: ''
provider_id: a58c5395-b07e-451e-816b-ac7ee502ff47
provider_name: Users Store
provider_type: api
selected: false
title: createUser
tool_configurations: {}
tool_label: createUser
tool_name: createUser
tool_parameters:
user_id:
type: mixed
value: '{{#sys.user_id#}}'
user_name:
type: mixed
value: '{{#1720071647324.username#}}'
type: tool
height: 54
id: '1720492201843'
position:
x: 1246
y: 393
positionAbsolute:
x: 1246
y: 393
sourcePosition: right
targetPosition: left
type: custom
width: 244
viewport:
x: 151.9705634247041
y: 186.8374122328145
zoom: 0.3905087628137374