vectorvein 0.2.55__py3-none-any.whl → 0.2.57__py3-none-any.whl
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.
- vectorvein/chat_clients/anthropic_client.py +12 -2
- vectorvein/workflow/graph/port.py +15 -3
- vectorvein/workflow/graph/workflow.py +12 -1
- vectorvein/workflow/nodes/control_flows.py +2 -0
- vectorvein/workflow/nodes/file_processing.py +5 -0
- vectorvein/workflow/nodes/image_generation.py +21 -0
- vectorvein/workflow/nodes/llms.py +19 -0
- vectorvein/workflow/nodes/media_editing.py +54 -0
- vectorvein/workflow/nodes/media_processing.py +21 -0
- vectorvein/workflow/nodes/output.py +7 -0
- vectorvein/workflow/nodes/relational_db.py +1 -0
- vectorvein/workflow/nodes/text_processing.py +4 -0
- vectorvein/workflow/nodes/tools.py +360 -356
- vectorvein/workflow/nodes/vector_db.py +4 -0
- vectorvein/workflow/nodes/web_crawlers.py +1 -0
- vectorvein/workflow/utils/check.py +79 -0
- {vectorvein-0.2.55.dist-info → vectorvein-0.2.57.dist-info}/METADATA +1 -1
- {vectorvein-0.2.55.dist-info → vectorvein-0.2.57.dist-info}/RECORD +20 -20
- {vectorvein-0.2.55.dist-info → vectorvein-0.2.57.dist-info}/WHEEL +0 -0
- {vectorvein-0.2.55.dist-info → vectorvein-0.2.57.dist-info}/entry_points.txt +0 -0
@@ -1,356 +1,360 @@
|
|
1
|
-
from typing import Optional
|
2
|
-
|
3
|
-
from ..graph.node import Node
|
4
|
-
from ..graph.port import PortType, InputPort, OutputPort
|
5
|
-
|
6
|
-
|
7
|
-
class CodebaseAnalysis(Node):
|
8
|
-
def __init__(self, id: Optional[str] = None):
|
9
|
-
super().__init__(
|
10
|
-
node_type="CodebaseAnalysis",
|
11
|
-
category="tools",
|
12
|
-
task_name="tools.codebase_analysis",
|
13
|
-
node_id=id,
|
14
|
-
ports={
|
15
|
-
"input_type": InputPort(
|
16
|
-
name="input_type",
|
17
|
-
port_type=PortType.SELECT,
|
18
|
-
value="file",
|
19
|
-
options=[
|
20
|
-
{"value": "file", "label": "file"},
|
21
|
-
{"value": "git_url", "label": "git_url"},
|
22
|
-
],
|
23
|
-
),
|
24
|
-
"codebase_file": InputPort(
|
25
|
-
name="codebase_file",
|
26
|
-
port_type=PortType.FILE,
|
27
|
-
value=list(),
|
28
|
-
support_file_types=[".zip"],
|
29
|
-
multiple=False,
|
30
|
-
condition="return fieldsData.input_type.value === 'file'",
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
{"value": "
|
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
|
-
{"value": "
|
96
|
-
{"value": "
|
97
|
-
{"value": "
|
98
|
-
{"value": "
|
99
|
-
{"value": "
|
100
|
-
{"value": "
|
101
|
-
{"value": "
|
102
|
-
{"value": "
|
103
|
-
{"value": "
|
104
|
-
{"value": "
|
105
|
-
{"value": "
|
106
|
-
{"value": "
|
107
|
-
{"value": "
|
108
|
-
{"value": "
|
109
|
-
{"value": "
|
110
|
-
{"value": "
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
{"value": "
|
121
|
-
{"value": "
|
122
|
-
{"value": "
|
123
|
-
{"value": "
|
124
|
-
{"value": "
|
125
|
-
{"value": "
|
126
|
-
{"value": "
|
127
|
-
{"value": "
|
128
|
-
{"value": "
|
129
|
-
{"value": "
|
130
|
-
{"value": "
|
131
|
-
{"value": "
|
132
|
-
{"value": "
|
133
|
-
{"value": "
|
134
|
-
{"value": "
|
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
|
-
{"value": "
|
163
|
-
{"value": "
|
164
|
-
{"value": "
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
{"value": "
|
185
|
-
{"value": "
|
186
|
-
{"value": "
|
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
|
-
name="
|
221
|
-
port_type=PortType.LIST,
|
222
|
-
),
|
223
|
-
"
|
224
|
-
name="
|
225
|
-
port_type=PortType.LIST,
|
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
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
),
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
1
|
+
from typing import Optional
|
2
|
+
|
3
|
+
from ..graph.node import Node
|
4
|
+
from ..graph.port import PortType, InputPort, OutputPort
|
5
|
+
|
6
|
+
|
7
|
+
class CodebaseAnalysis(Node):
|
8
|
+
def __init__(self, id: Optional[str] = None):
|
9
|
+
super().__init__(
|
10
|
+
node_type="CodebaseAnalysis",
|
11
|
+
category="tools",
|
12
|
+
task_name="tools.codebase_analysis",
|
13
|
+
node_id=id,
|
14
|
+
ports={
|
15
|
+
"input_type": InputPort(
|
16
|
+
name="input_type",
|
17
|
+
port_type=PortType.SELECT,
|
18
|
+
value="file",
|
19
|
+
options=[
|
20
|
+
{"value": "file", "label": "file"},
|
21
|
+
{"value": "git_url", "label": "git_url"},
|
22
|
+
],
|
23
|
+
),
|
24
|
+
"codebase_file": InputPort(
|
25
|
+
name="codebase_file",
|
26
|
+
port_type=PortType.FILE,
|
27
|
+
value=list(),
|
28
|
+
support_file_types=[".zip"],
|
29
|
+
multiple=False,
|
30
|
+
condition="return fieldsData.input_type.value === 'file'",
|
31
|
+
condition_python=lambda ports: ports["input_type"].value == "file",
|
32
|
+
),
|
33
|
+
"git_url": InputPort(
|
34
|
+
name="git_url",
|
35
|
+
port_type=PortType.INPUT,
|
36
|
+
value="",
|
37
|
+
condition="return fieldsData.input_type.value === 'git_url'",
|
38
|
+
condition_python=lambda ports: ports["input_type"].value == "git_url",
|
39
|
+
),
|
40
|
+
"output_style": InputPort(
|
41
|
+
name="output_style",
|
42
|
+
port_type=PortType.SELECT,
|
43
|
+
value="markdown",
|
44
|
+
options=[
|
45
|
+
{"value": "plain", "label": "Plain Text"},
|
46
|
+
{"value": "xml", "label": "XML"},
|
47
|
+
{"value": "markdown", "label": "Markdown"},
|
48
|
+
],
|
49
|
+
),
|
50
|
+
"show_line_numbers": InputPort(
|
51
|
+
name="show_line_numbers",
|
52
|
+
port_type=PortType.CHECKBOX,
|
53
|
+
value=False,
|
54
|
+
),
|
55
|
+
"remove_comments": InputPort(
|
56
|
+
name="remove_comments",
|
57
|
+
port_type=PortType.CHECKBOX,
|
58
|
+
value=False,
|
59
|
+
),
|
60
|
+
"remove_empty_lines": InputPort(
|
61
|
+
name="remove_empty_lines",
|
62
|
+
port_type=PortType.CHECKBOX,
|
63
|
+
value=False,
|
64
|
+
),
|
65
|
+
"ignore_patterns": InputPort(
|
66
|
+
name="ignore_patterns",
|
67
|
+
port_type=PortType.INPUT,
|
68
|
+
value=list(),
|
69
|
+
multiple=True,
|
70
|
+
),
|
71
|
+
"output": OutputPort(),
|
72
|
+
},
|
73
|
+
)
|
74
|
+
|
75
|
+
|
76
|
+
class TextTranslation(Node):
|
77
|
+
def __init__(self, id: Optional[str] = None):
|
78
|
+
super().__init__(
|
79
|
+
node_type="TextTranslation",
|
80
|
+
category="tools",
|
81
|
+
task_name="tools.text_translation",
|
82
|
+
node_id=id,
|
83
|
+
ports={
|
84
|
+
"text": InputPort(
|
85
|
+
name="text",
|
86
|
+
port_type=PortType.INPUT,
|
87
|
+
value="",
|
88
|
+
field_type="textarea",
|
89
|
+
),
|
90
|
+
"from_language": InputPort(
|
91
|
+
name="from_language",
|
92
|
+
port_type=PortType.SELECT,
|
93
|
+
value="auto",
|
94
|
+
options=[
|
95
|
+
{"value": "ar", "label": "ar"},
|
96
|
+
{"value": "de", "label": "de"},
|
97
|
+
{"value": "en", "label": "en"},
|
98
|
+
{"value": "es", "label": "es"},
|
99
|
+
{"value": "fr", "label": "fr"},
|
100
|
+
{"value": "hi", "label": "hi"},
|
101
|
+
{"value": "id", "label": "id"},
|
102
|
+
{"value": "it", "label": "it"},
|
103
|
+
{"value": "ja", "label": "ja"},
|
104
|
+
{"value": "ko", "label": "ko"},
|
105
|
+
{"value": "nl", "label": "nl"},
|
106
|
+
{"value": "pt", "label": "pt"},
|
107
|
+
{"value": "ru", "label": "ru"},
|
108
|
+
{"value": "th", "label": "th"},
|
109
|
+
{"value": "vi", "label": "vi"},
|
110
|
+
{"value": "zh-CHS", "label": "zh-CHS"},
|
111
|
+
{"value": "zh-CHT", "label": "zh-CHT"},
|
112
|
+
{"value": "auto", "label": "auto"},
|
113
|
+
],
|
114
|
+
),
|
115
|
+
"to_language": InputPort(
|
116
|
+
name="to_language",
|
117
|
+
port_type=PortType.SELECT,
|
118
|
+
value="en",
|
119
|
+
options=[
|
120
|
+
{"value": "ar", "label": "ar"},
|
121
|
+
{"value": "de", "label": "de"},
|
122
|
+
{"value": "en", "label": "en"},
|
123
|
+
{"value": "es", "label": "es"},
|
124
|
+
{"value": "fr", "label": "fr"},
|
125
|
+
{"value": "hi", "label": "hi"},
|
126
|
+
{"value": "id", "label": "id"},
|
127
|
+
{"value": "it", "label": "it"},
|
128
|
+
{"value": "ja", "label": "ja"},
|
129
|
+
{"value": "ko", "label": "ko"},
|
130
|
+
{"value": "nl", "label": "nl"},
|
131
|
+
{"value": "pt", "label": "pt"},
|
132
|
+
{"value": "ru", "label": "ru"},
|
133
|
+
{"value": "th", "label": "th"},
|
134
|
+
{"value": "vi", "label": "vi"},
|
135
|
+
{"value": "zh-CHS", "label": "zh-CHS"},
|
136
|
+
{"value": "zh-CHT", "label": "zh-CHT"},
|
137
|
+
],
|
138
|
+
),
|
139
|
+
"output": OutputPort(),
|
140
|
+
},
|
141
|
+
)
|
142
|
+
|
143
|
+
|
144
|
+
class TextSearch(Node):
|
145
|
+
def __init__(self, id: Optional[str] = None):
|
146
|
+
super().__init__(
|
147
|
+
node_type="TextSearch",
|
148
|
+
category="tools",
|
149
|
+
task_name="tools.text_search",
|
150
|
+
node_id=id,
|
151
|
+
ports={
|
152
|
+
"search_text": InputPort(
|
153
|
+
name="search_text",
|
154
|
+
port_type=PortType.INPUT,
|
155
|
+
value="",
|
156
|
+
),
|
157
|
+
"search_engine": InputPort(
|
158
|
+
name="search_engine",
|
159
|
+
port_type=PortType.SELECT,
|
160
|
+
value="bing",
|
161
|
+
options=[
|
162
|
+
{"value": "bing", "label": "bing"},
|
163
|
+
{"value": "bochaai", "label": "bochaai"},
|
164
|
+
{"value": "jina.ai", "label": "jina.ai"},
|
165
|
+
{"value": "zhipuai", "label": "zhipuai"},
|
166
|
+
{"value": "duckduckgo", "label": "duckduckgo"},
|
167
|
+
],
|
168
|
+
),
|
169
|
+
"count": InputPort(
|
170
|
+
name="count",
|
171
|
+
port_type=PortType.NUMBER,
|
172
|
+
value=10,
|
173
|
+
),
|
174
|
+
"offset": InputPort(
|
175
|
+
name="offset",
|
176
|
+
port_type=PortType.NUMBER,
|
177
|
+
value=0,
|
178
|
+
),
|
179
|
+
"freshness": InputPort(
|
180
|
+
name="freshness",
|
181
|
+
port_type=PortType.SELECT,
|
182
|
+
value="all",
|
183
|
+
options=[
|
184
|
+
{"value": "all", "label": "all"},
|
185
|
+
{"value": "day", "label": "day"},
|
186
|
+
{"value": "week", "label": "week"},
|
187
|
+
{"value": "month", "label": "month"},
|
188
|
+
{"value": "custom", "label": "custom"},
|
189
|
+
],
|
190
|
+
condition="return fieldsData.search_engine.value === 'bing'",
|
191
|
+
condition_python=lambda ports: ports["search_engine"].value == "bing",
|
192
|
+
),
|
193
|
+
"custom_freshness": InputPort(
|
194
|
+
name="custom_freshness",
|
195
|
+
port_type=PortType.INPUT,
|
196
|
+
value="",
|
197
|
+
condition="return fieldsData.freshness.value === 'custom'",
|
198
|
+
condition_python=lambda ports: ports["freshness"].value == "custom",
|
199
|
+
),
|
200
|
+
"combine_result_in_text": InputPort(
|
201
|
+
name="combine_result_in_text",
|
202
|
+
port_type=PortType.CHECKBOX,
|
203
|
+
value=True,
|
204
|
+
),
|
205
|
+
"max_snippet_length": InputPort(
|
206
|
+
name="max_snippet_length",
|
207
|
+
port_type=PortType.NUMBER,
|
208
|
+
value=300,
|
209
|
+
),
|
210
|
+
"output_type": InputPort(
|
211
|
+
name="output_type",
|
212
|
+
port_type=PortType.SELECT,
|
213
|
+
value="markdown",
|
214
|
+
options=[
|
215
|
+
{"value": "text", "label": "text"},
|
216
|
+
{"value": "markdown", "label": "markdown"},
|
217
|
+
],
|
218
|
+
),
|
219
|
+
"output_page_title": OutputPort(
|
220
|
+
name="output_page_title",
|
221
|
+
port_type=PortType.LIST,
|
222
|
+
),
|
223
|
+
"output_page_url": OutputPort(
|
224
|
+
name="output_page_url",
|
225
|
+
port_type=PortType.LIST,
|
226
|
+
),
|
227
|
+
"output_page_snippet": OutputPort(
|
228
|
+
name="output_page_snippet",
|
229
|
+
port_type=PortType.LIST,
|
230
|
+
),
|
231
|
+
},
|
232
|
+
)
|
233
|
+
|
234
|
+
|
235
|
+
class ProgrammingFunction(Node):
|
236
|
+
def __init__(self, id: Optional[str] = None):
|
237
|
+
super().__init__(
|
238
|
+
node_type="ProgrammingFunction",
|
239
|
+
category="tools",
|
240
|
+
task_name="tools.programming_function",
|
241
|
+
node_id=id,
|
242
|
+
ports={
|
243
|
+
"language": InputPort(
|
244
|
+
name="language",
|
245
|
+
port_type=PortType.SELECT,
|
246
|
+
value="python",
|
247
|
+
options=[
|
248
|
+
{"value": "python", "label": "Python"},
|
249
|
+
],
|
250
|
+
),
|
251
|
+
"code": InputPort(
|
252
|
+
name="code",
|
253
|
+
port_type=PortType.INPUT,
|
254
|
+
value="",
|
255
|
+
field_type="textarea",
|
256
|
+
),
|
257
|
+
"use_oversea_node": InputPort(
|
258
|
+
name="use_oversea_node",
|
259
|
+
port_type=PortType.CHECKBOX,
|
260
|
+
value=False,
|
261
|
+
),
|
262
|
+
"list_input": InputPort(
|
263
|
+
name="list_input",
|
264
|
+
port_type=PortType.CHECKBOX,
|
265
|
+
value=False,
|
266
|
+
),
|
267
|
+
"instance_type": InputPort(
|
268
|
+
name="instance_type",
|
269
|
+
port_type=PortType.SELECT,
|
270
|
+
value="light",
|
271
|
+
options=[
|
272
|
+
{"value": "light", "label": "light"},
|
273
|
+
{"value": "large", "label": "large"},
|
274
|
+
],
|
275
|
+
),
|
276
|
+
"output": OutputPort(
|
277
|
+
name="output",
|
278
|
+
port_type=PortType.INPUT,
|
279
|
+
field_type="textarea",
|
280
|
+
),
|
281
|
+
"console_msg": OutputPort(
|
282
|
+
name="console_msg",
|
283
|
+
port_type=PortType.INPUT,
|
284
|
+
field_type="textarea",
|
285
|
+
),
|
286
|
+
"error_msg": OutputPort(
|
287
|
+
name="error_msg",
|
288
|
+
port_type=PortType.INPUT,
|
289
|
+
field_type="textarea",
|
290
|
+
),
|
291
|
+
"files": OutputPort(
|
292
|
+
name="files",
|
293
|
+
port_type=PortType.INPUT,
|
294
|
+
field_type="textarea",
|
295
|
+
),
|
296
|
+
},
|
297
|
+
can_add_input_ports=True,
|
298
|
+
)
|
299
|
+
|
300
|
+
|
301
|
+
class ImageSearch(Node):
|
302
|
+
def __init__(self, id: Optional[str] = None):
|
303
|
+
super().__init__(
|
304
|
+
node_type="ImageSearch",
|
305
|
+
category="tools",
|
306
|
+
task_name="tools.image_search",
|
307
|
+
node_id=id,
|
308
|
+
ports={
|
309
|
+
"search_text": InputPort(
|
310
|
+
name="search_text",
|
311
|
+
port_type=PortType.INPUT,
|
312
|
+
value="",
|
313
|
+
),
|
314
|
+
"search_engine": InputPort(
|
315
|
+
name="search_engine",
|
316
|
+
port_type=PortType.SELECT,
|
317
|
+
value="bing",
|
318
|
+
options=[
|
319
|
+
{"value": "bing", "label": "bing"},
|
320
|
+
{"value": "pexels", "label": "pexels"},
|
321
|
+
{"value": "unsplash", "label": "unsplash"},
|
322
|
+
],
|
323
|
+
),
|
324
|
+
"count": InputPort(
|
325
|
+
name="count",
|
326
|
+
port_type=PortType.NUMBER,
|
327
|
+
value=5,
|
328
|
+
),
|
329
|
+
"output_type": InputPort(
|
330
|
+
name="output_type",
|
331
|
+
port_type=PortType.SELECT,
|
332
|
+
value="markdown",
|
333
|
+
options=[
|
334
|
+
{"value": "text", "label": "text"},
|
335
|
+
{"value": "markdown", "label": "markdown"},
|
336
|
+
],
|
337
|
+
),
|
338
|
+
"output": OutputPort(
|
339
|
+
name="output",
|
340
|
+
port_type=PortType.LIST,
|
341
|
+
),
|
342
|
+
},
|
343
|
+
)
|
344
|
+
|
345
|
+
|
346
|
+
class WorkflowInvoke(Node):
|
347
|
+
def __init__(self, id: Optional[str] = None):
|
348
|
+
super().__init__(
|
349
|
+
node_type="WorkflowInvoke",
|
350
|
+
category="tools",
|
351
|
+
task_name="tools.workflow_invoke",
|
352
|
+
node_id=id,
|
353
|
+
ports={
|
354
|
+
"workflow_id": InputPort(
|
355
|
+
name="workflow_id",
|
356
|
+
port_type=PortType.INPUT,
|
357
|
+
value="",
|
358
|
+
),
|
359
|
+
},
|
360
|
+
)
|