erdo 0.1.4__py3-none-any.whl → 0.1.5__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.
Potentially problematic release.
This version of erdo might be problematic. Click here for more details.
- erdo/__init__.py +14 -11
- erdo/_generated/actions/__init__.py +3 -1
- erdo/_generated/actions/analysis.py +116 -4
- erdo/_generated/actions/bot.py +39 -3
- erdo/_generated/actions/codeexec.py +53 -28
- erdo/_generated/actions/llm.py +22 -1
- erdo/_generated/actions/memory.py +252 -57
- erdo/_generated/actions/pdfextractor.py +97 -0
- erdo/_generated/actions/resource_definitions.py +114 -12
- erdo/_generated/actions/sqlexec.py +86 -0
- erdo/_generated/actions/utils.py +178 -56
- erdo/_generated/actions/webparser.py +15 -5
- erdo/_generated/actions/websearch.py +15 -5
- erdo/_generated/condition/__init__.py +139 -129
- erdo/_generated/types.py +92 -48
- erdo/actions/__init__.py +9 -10
- erdo/bot_permissions.py +266 -0
- erdo/config/__init__.py +5 -0
- erdo/config/config.py +140 -0
- erdo/invoke/__init__.py +10 -0
- erdo/invoke/client.py +213 -0
- erdo/invoke/invoke.py +238 -0
- erdo/sync/__init__.py +17 -0
- erdo/sync/client.py +95 -0
- erdo/sync/extractor.py +476 -0
- erdo/sync/sync.py +328 -0
- erdo/types.py +508 -15
- {erdo-0.1.4.dist-info → erdo-0.1.5.dist-info}/METADATA +2 -1
- erdo-0.1.5.dist-info/RECORD +45 -0
- erdo-0.1.4.dist-info/RECORD +0 -33
- {erdo-0.1.4.dist-info → erdo-0.1.5.dist-info}/WHEEL +0 -0
- {erdo-0.1.4.dist-info → erdo-0.1.5.dist-info}/entry_points.txt +0 -0
- {erdo-0.1.4.dist-info → erdo-0.1.5.dist-info}/licenses/LICENSE +0 -0
|
@@ -133,19 +133,22 @@ class _BaseCondition:
|
|
|
133
133
|
return _NotCondition(self)
|
|
134
134
|
|
|
135
135
|
|
|
136
|
-
class
|
|
137
|
-
def __init__(self,
|
|
138
|
-
self.
|
|
136
|
+
class TextEquals(_BaseCondition):
|
|
137
|
+
def __init__(self, text: Any = None, value: Any = None) -> None:
|
|
138
|
+
self.text = text
|
|
139
|
+
self.value = value
|
|
139
140
|
|
|
140
141
|
def to_dict(self) -> Dict[str, Any]:
|
|
141
142
|
"""Convert to dict format expected by backend."""
|
|
142
143
|
result: Dict[str, Any] = {}
|
|
143
|
-
result["type"] = "
|
|
144
|
+
result["type"] = "TextEquals"
|
|
144
145
|
|
|
145
146
|
# Add field values to leaf object (backend expects leaf format)
|
|
146
147
|
leaf: Dict[str, Any] = {}
|
|
147
|
-
if self.
|
|
148
|
-
leaf["
|
|
148
|
+
if self.text is not None:
|
|
149
|
+
leaf["text"] = self.text
|
|
150
|
+
if self.value is not None:
|
|
151
|
+
leaf["value"] = self.value
|
|
149
152
|
|
|
150
153
|
if leaf:
|
|
151
154
|
result["leaf"] = leaf
|
|
@@ -153,28 +156,22 @@ class IsNull(_BaseCondition):
|
|
|
153
156
|
return result
|
|
154
157
|
|
|
155
158
|
|
|
156
|
-
class
|
|
157
|
-
def __init__(self) -> None:
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
def to_dict(self) -> Dict[str, Any]:
|
|
161
|
-
"""Convert to dict format expected by backend."""
|
|
162
|
-
return {"type": "IsSuccess", "leaf": {}}
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
class AndCondition(_BaseCondition):
|
|
166
|
-
def __init__(self, conditions: Any = None) -> None:
|
|
167
|
-
self.conditions = conditions
|
|
159
|
+
class TextStartsWith(_BaseCondition):
|
|
160
|
+
def __init__(self, text: Any = None, value: Any = None) -> None:
|
|
161
|
+
self.text = text
|
|
162
|
+
self.value = value
|
|
168
163
|
|
|
169
164
|
def to_dict(self) -> Dict[str, Any]:
|
|
170
165
|
"""Convert to dict format expected by backend."""
|
|
171
166
|
result: Dict[str, Any] = {}
|
|
172
|
-
result["type"] = "
|
|
167
|
+
result["type"] = "TextStartsWith"
|
|
173
168
|
|
|
174
169
|
# Add field values to leaf object (backend expects leaf format)
|
|
175
170
|
leaf: Dict[str, Any] = {}
|
|
176
|
-
if self.
|
|
177
|
-
leaf["
|
|
171
|
+
if self.text is not None:
|
|
172
|
+
leaf["text"] = self.text
|
|
173
|
+
if self.value is not None:
|
|
174
|
+
leaf["value"] = self.value
|
|
178
175
|
|
|
179
176
|
if leaf:
|
|
180
177
|
result["leaf"] = leaf
|
|
@@ -182,22 +179,19 @@ class AndCondition(_BaseCondition):
|
|
|
182
179
|
return result
|
|
183
180
|
|
|
184
181
|
|
|
185
|
-
class
|
|
186
|
-
def __init__(self,
|
|
187
|
-
self.
|
|
188
|
-
self.value = value
|
|
182
|
+
class NotCondition(_BaseCondition):
|
|
183
|
+
def __init__(self, condition: Any = None) -> None:
|
|
184
|
+
self.condition = condition
|
|
189
185
|
|
|
190
186
|
def to_dict(self) -> Dict[str, Any]:
|
|
191
187
|
"""Convert to dict format expected by backend."""
|
|
192
188
|
result: Dict[str, Any] = {}
|
|
193
|
-
result["type"] = "
|
|
189
|
+
result["type"] = "NotCondition"
|
|
194
190
|
|
|
195
191
|
# Add field values to leaf object (backend expects leaf format)
|
|
196
192
|
leaf: Dict[str, Any] = {}
|
|
197
|
-
if self.
|
|
198
|
-
leaf["
|
|
199
|
-
if self.value is not None:
|
|
200
|
-
leaf["value"] = self.value
|
|
193
|
+
if self.condition is not None:
|
|
194
|
+
leaf["condition"] = self.condition
|
|
201
195
|
|
|
202
196
|
if leaf:
|
|
203
197
|
result["leaf"] = leaf
|
|
@@ -214,29 +208,43 @@ class FalseCondition(_BaseCondition):
|
|
|
214
208
|
return {"type": "FalseCondition", "leaf": {}}
|
|
215
209
|
|
|
216
210
|
|
|
217
|
-
class
|
|
218
|
-
def __init__(self) -> None:
|
|
219
|
-
|
|
211
|
+
class GreaterThan(_BaseCondition):
|
|
212
|
+
def __init__(self, number: Any = None, value: Any = None) -> None:
|
|
213
|
+
self.number = number
|
|
214
|
+
self.value = value
|
|
220
215
|
|
|
221
216
|
def to_dict(self) -> Dict[str, Any]:
|
|
222
217
|
"""Convert to dict format expected by backend."""
|
|
223
|
-
|
|
218
|
+
result: Dict[str, Any] = {}
|
|
219
|
+
result["type"] = "GreaterThan"
|
|
224
220
|
|
|
221
|
+
# Add field values to leaf object (backend expects leaf format)
|
|
222
|
+
leaf: Dict[str, Any] = {}
|
|
223
|
+
if self.number is not None:
|
|
224
|
+
leaf["number"] = self.number
|
|
225
|
+
if self.value is not None:
|
|
226
|
+
leaf["value"] = self.value
|
|
225
227
|
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
228
|
+
if leaf:
|
|
229
|
+
result["leaf"] = leaf
|
|
230
|
+
|
|
231
|
+
return result
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
class IsAny(_BaseCondition):
|
|
235
|
+
def __init__(self, key: Any = None, value: Any = None) -> None:
|
|
236
|
+
self.key = key
|
|
229
237
|
self.value = value
|
|
230
238
|
|
|
231
239
|
def to_dict(self) -> Dict[str, Any]:
|
|
232
240
|
"""Convert to dict format expected by backend."""
|
|
233
241
|
result: Dict[str, Any] = {}
|
|
234
|
-
result["type"] = "
|
|
242
|
+
result["type"] = "IsAny"
|
|
235
243
|
|
|
236
244
|
# Add field values to leaf object (backend expects leaf format)
|
|
237
245
|
leaf: Dict[str, Any] = {}
|
|
238
|
-
if self.
|
|
239
|
-
leaf["
|
|
246
|
+
if self.key is not None:
|
|
247
|
+
leaf["key"] = self.key
|
|
240
248
|
if self.value is not None:
|
|
241
249
|
leaf["value"] = self.value
|
|
242
250
|
|
|
@@ -246,7 +254,25 @@ class LessThan(_BaseCondition):
|
|
|
246
254
|
return result
|
|
247
255
|
|
|
248
256
|
|
|
249
|
-
class
|
|
257
|
+
class IsError(_BaseCondition):
|
|
258
|
+
def __init__(self) -> None:
|
|
259
|
+
pass
|
|
260
|
+
|
|
261
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
262
|
+
"""Convert to dict format expected by backend."""
|
|
263
|
+
return {"type": "IsError", "leaf": {}}
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
class IsErrorInternalError(_BaseCondition):
|
|
267
|
+
def __init__(self) -> None:
|
|
268
|
+
pass
|
|
269
|
+
|
|
270
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
271
|
+
"""Convert to dict format expected by backend."""
|
|
272
|
+
return {"type": "IsErrorInternalError", "leaf": {}}
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
class TextContains(_BaseCondition):
|
|
250
276
|
def __init__(self, text: Any = None, value: Any = None) -> None:
|
|
251
277
|
self.text = text
|
|
252
278
|
self.value = value
|
|
@@ -254,7 +280,7 @@ class TextEquals(_BaseCondition):
|
|
|
254
280
|
def to_dict(self) -> Dict[str, Any]:
|
|
255
281
|
"""Convert to dict format expected by backend."""
|
|
256
282
|
result: Dict[str, Any] = {}
|
|
257
|
-
result["type"] = "
|
|
283
|
+
result["type"] = "TextContains"
|
|
258
284
|
|
|
259
285
|
# Add field values to leaf object (backend expects leaf format)
|
|
260
286
|
leaf: Dict[str, Any] = {}
|
|
@@ -269,7 +295,7 @@ class TextEquals(_BaseCondition):
|
|
|
269
295
|
return result
|
|
270
296
|
|
|
271
297
|
|
|
272
|
-
class
|
|
298
|
+
class TextEndsWith(_BaseCondition):
|
|
273
299
|
def __init__(self, text: Any = None, value: Any = None) -> None:
|
|
274
300
|
self.text = text
|
|
275
301
|
self.value = value
|
|
@@ -277,7 +303,7 @@ class TextStartsWith(_BaseCondition):
|
|
|
277
303
|
def to_dict(self) -> Dict[str, Any]:
|
|
278
304
|
"""Convert to dict format expected by backend."""
|
|
279
305
|
result: Dict[str, Any] = {}
|
|
280
|
-
result["type"] = "
|
|
306
|
+
result["type"] = "TextEndsWith"
|
|
281
307
|
|
|
282
308
|
# Add field values to leaf object (backend expects leaf format)
|
|
283
309
|
leaf: Dict[str, Any] = {}
|
|
@@ -301,19 +327,22 @@ class TrueCondition(_BaseCondition):
|
|
|
301
327
|
return {"type": "TrueCondition", "leaf": {}}
|
|
302
328
|
|
|
303
329
|
|
|
304
|
-
class
|
|
305
|
-
def __init__(self,
|
|
306
|
-
self.
|
|
330
|
+
class EarlierThan(_BaseCondition):
|
|
331
|
+
def __init__(self, time: Any = None, value: Any = None) -> None:
|
|
332
|
+
self.time = time
|
|
333
|
+
self.value = value
|
|
307
334
|
|
|
308
335
|
def to_dict(self) -> Dict[str, Any]:
|
|
309
336
|
"""Convert to dict format expected by backend."""
|
|
310
337
|
result: Dict[str, Any] = {}
|
|
311
|
-
result["type"] = "
|
|
338
|
+
result["type"] = "EarlierThan"
|
|
312
339
|
|
|
313
340
|
# Add field values to leaf object (backend expects leaf format)
|
|
314
341
|
leaf: Dict[str, Any] = {}
|
|
315
|
-
if self.
|
|
316
|
-
leaf["
|
|
342
|
+
if self.time is not None:
|
|
343
|
+
leaf["time"] = self.time
|
|
344
|
+
if self.value is not None:
|
|
345
|
+
leaf["value"] = self.value
|
|
317
346
|
|
|
318
347
|
if leaf:
|
|
319
348
|
result["leaf"] = leaf
|
|
@@ -330,6 +359,15 @@ class IsErrorActionNotFound(_BaseCondition):
|
|
|
330
359
|
return {"type": "IsErrorActionNotFound", "leaf": {}}
|
|
331
360
|
|
|
332
361
|
|
|
362
|
+
class IsErrorInfoNeeded(_BaseCondition):
|
|
363
|
+
def __init__(self) -> None:
|
|
364
|
+
pass
|
|
365
|
+
|
|
366
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
367
|
+
"""Convert to dict format expected by backend."""
|
|
368
|
+
return {"type": "IsErrorInfoNeeded", "leaf": {}}
|
|
369
|
+
|
|
370
|
+
|
|
333
371
|
class IsErrorTerminated(_BaseCondition):
|
|
334
372
|
def __init__(self) -> None:
|
|
335
373
|
pass
|
|
@@ -339,27 +377,22 @@ class IsErrorTerminated(_BaseCondition):
|
|
|
339
377
|
return {"type": "IsErrorTerminated", "leaf": {}}
|
|
340
378
|
|
|
341
379
|
|
|
342
|
-
class
|
|
343
|
-
def __init__(self
|
|
344
|
-
|
|
345
|
-
self.value = value
|
|
380
|
+
class IsErrorTimeout(_BaseCondition):
|
|
381
|
+
def __init__(self) -> None:
|
|
382
|
+
pass
|
|
346
383
|
|
|
347
384
|
def to_dict(self) -> Dict[str, Any]:
|
|
348
385
|
"""Convert to dict format expected by backend."""
|
|
349
|
-
|
|
350
|
-
result["type"] = "TextContains"
|
|
386
|
+
return {"type": "IsErrorTimeout", "leaf": {}}
|
|
351
387
|
|
|
352
|
-
# Add field values to leaf object (backend expects leaf format)
|
|
353
|
-
leaf: Dict[str, Any] = {}
|
|
354
|
-
if self.text is not None:
|
|
355
|
-
leaf["text"] = self.text
|
|
356
|
-
if self.value is not None:
|
|
357
|
-
leaf["value"] = self.value
|
|
358
388
|
|
|
359
|
-
|
|
360
|
-
|
|
389
|
+
class IsSuccess(_BaseCondition):
|
|
390
|
+
def __init__(self) -> None:
|
|
391
|
+
pass
|
|
361
392
|
|
|
362
|
-
|
|
393
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
394
|
+
"""Convert to dict format expected by backend."""
|
|
395
|
+
return {"type": "IsSuccess", "leaf": {}}
|
|
363
396
|
|
|
364
397
|
|
|
365
398
|
class OrCondition(_BaseCondition):
|
|
@@ -382,22 +415,28 @@ class OrCondition(_BaseCondition):
|
|
|
382
415
|
return result
|
|
383
416
|
|
|
384
417
|
|
|
385
|
-
class
|
|
386
|
-
def __init__(self
|
|
387
|
-
|
|
388
|
-
|
|
418
|
+
class IsFormattedError(_BaseCondition):
|
|
419
|
+
def __init__(self) -> None:
|
|
420
|
+
pass
|
|
421
|
+
|
|
422
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
423
|
+
"""Convert to dict format expected by backend."""
|
|
424
|
+
return {"type": "IsFormattedError", "leaf": {}}
|
|
425
|
+
|
|
426
|
+
|
|
427
|
+
class IsNull(_BaseCondition):
|
|
428
|
+
def __init__(self, key: Any = None) -> None:
|
|
429
|
+
self.key = key
|
|
389
430
|
|
|
390
431
|
def to_dict(self) -> Dict[str, Any]:
|
|
391
432
|
"""Convert to dict format expected by backend."""
|
|
392
433
|
result: Dict[str, Any] = {}
|
|
393
|
-
result["type"] = "
|
|
434
|
+
result["type"] = "IsNull"
|
|
394
435
|
|
|
395
436
|
# Add field values to leaf object (backend expects leaf format)
|
|
396
437
|
leaf: Dict[str, Any] = {}
|
|
397
|
-
if self.
|
|
398
|
-
leaf["
|
|
399
|
-
if self.value is not None:
|
|
400
|
-
leaf["value"] = self.value
|
|
438
|
+
if self.key is not None:
|
|
439
|
+
leaf["key"] = self.key
|
|
401
440
|
|
|
402
441
|
if leaf:
|
|
403
442
|
result["leaf"] = leaf
|
|
@@ -405,20 +444,20 @@ class GreaterThan(_BaseCondition):
|
|
|
405
444
|
return result
|
|
406
445
|
|
|
407
446
|
|
|
408
|
-
class
|
|
409
|
-
def __init__(self,
|
|
410
|
-
self.
|
|
447
|
+
class LessThan(_BaseCondition):
|
|
448
|
+
def __init__(self, number: Any = None, value: Any = None) -> None:
|
|
449
|
+
self.number = number
|
|
411
450
|
self.value = value
|
|
412
451
|
|
|
413
452
|
def to_dict(self) -> Dict[str, Any]:
|
|
414
453
|
"""Convert to dict format expected by backend."""
|
|
415
454
|
result: Dict[str, Any] = {}
|
|
416
|
-
result["type"] = "
|
|
455
|
+
result["type"] = "LessThan"
|
|
417
456
|
|
|
418
457
|
# Add field values to leaf object (backend expects leaf format)
|
|
419
458
|
leaf: Dict[str, Any] = {}
|
|
420
|
-
if self.
|
|
421
|
-
leaf["
|
|
459
|
+
if self.number is not None:
|
|
460
|
+
leaf["number"] = self.number
|
|
422
461
|
if self.value is not None:
|
|
423
462
|
leaf["value"] = self.value
|
|
424
463
|
|
|
@@ -428,49 +467,19 @@ class IsAny(_BaseCondition):
|
|
|
428
467
|
return result
|
|
429
468
|
|
|
430
469
|
|
|
431
|
-
class
|
|
432
|
-
def __init__(self) -> None:
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
def to_dict(self) -> Dict[str, Any]:
|
|
436
|
-
"""Convert to dict format expected by backend."""
|
|
437
|
-
return {"type": "IsErrorInfoNeeded", "leaf": {}}
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
class IsErrorInternalError(_BaseCondition):
|
|
441
|
-
def __init__(self) -> None:
|
|
442
|
-
pass
|
|
443
|
-
|
|
444
|
-
def to_dict(self) -> Dict[str, Any]:
|
|
445
|
-
"""Convert to dict format expected by backend."""
|
|
446
|
-
return {"type": "IsErrorInternalError", "leaf": {}}
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
class IsFormattedError(_BaseCondition):
|
|
450
|
-
def __init__(self) -> None:
|
|
451
|
-
pass
|
|
452
|
-
|
|
453
|
-
def to_dict(self) -> Dict[str, Any]:
|
|
454
|
-
"""Convert to dict format expected by backend."""
|
|
455
|
-
return {"type": "IsFormattedError", "leaf": {}}
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
class TextEndsWith(_BaseCondition):
|
|
459
|
-
def __init__(self, text: Any = None, value: Any = None) -> None:
|
|
460
|
-
self.text = text
|
|
461
|
-
self.value = value
|
|
470
|
+
class AndCondition(_BaseCondition):
|
|
471
|
+
def __init__(self, conditions: Any = None) -> None:
|
|
472
|
+
self.conditions = conditions
|
|
462
473
|
|
|
463
474
|
def to_dict(self) -> Dict[str, Any]:
|
|
464
475
|
"""Convert to dict format expected by backend."""
|
|
465
476
|
result: Dict[str, Any] = {}
|
|
466
|
-
result["type"] = "
|
|
477
|
+
result["type"] = "AndCondition"
|
|
467
478
|
|
|
468
479
|
# Add field values to leaf object (backend expects leaf format)
|
|
469
480
|
leaf: Dict[str, Any] = {}
|
|
470
|
-
if self.
|
|
471
|
-
leaf["
|
|
472
|
-
if self.value is not None:
|
|
473
|
-
leaf["value"] = self.value
|
|
481
|
+
if self.conditions is not None:
|
|
482
|
+
leaf["conditions"] = self.conditions
|
|
474
483
|
|
|
475
484
|
if leaf:
|
|
476
485
|
result["leaf"] = leaf
|
|
@@ -483,22 +492,23 @@ __all__ = [
|
|
|
483
492
|
"And",
|
|
484
493
|
"Or",
|
|
485
494
|
"Not",
|
|
486
|
-
"
|
|
487
|
-
"TextEquals",
|
|
488
|
-
"TextStartsWith",
|
|
489
|
-
"TrueCondition",
|
|
490
|
-
"IsErrorActionNotFound",
|
|
491
|
-
"IsErrorTerminated",
|
|
492
|
-
"TextContains",
|
|
495
|
+
"FalseCondition",
|
|
493
496
|
"GreaterThan",
|
|
494
497
|
"IsAny",
|
|
495
|
-
"
|
|
498
|
+
"IsError",
|
|
496
499
|
"IsErrorInternalError",
|
|
497
|
-
"
|
|
500
|
+
"TextContains",
|
|
498
501
|
"TextEndsWith",
|
|
499
|
-
"
|
|
500
|
-
"IsSuccess",
|
|
502
|
+
"TrueCondition",
|
|
501
503
|
"EarlierThan",
|
|
502
|
-
"
|
|
503
|
-
"
|
|
504
|
+
"IsErrorActionNotFound",
|
|
505
|
+
"IsErrorInfoNeeded",
|
|
506
|
+
"IsErrorTerminated",
|
|
507
|
+
"IsErrorTimeout",
|
|
508
|
+
"IsSuccess",
|
|
509
|
+
"IsFormattedError",
|
|
510
|
+
"IsNull",
|
|
511
|
+
"LessThan",
|
|
512
|
+
"TextEquals",
|
|
513
|
+
"TextStartsWith",
|
|
504
514
|
]
|