@inkeep/agents-core 0.16.3 → 0.18.0

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.
Files changed (36) hide show
  1. package/README.md +2 -2
  2. package/dist/{chunk-72MXE5SX.js → chunk-E4SFK6AI.js} +143 -157
  3. package/dist/{chunk-VPJ6Z5QZ.js → chunk-ID4CFGVF.js} +202 -131
  4. package/dist/chunk-JTHQYGCX.js +173 -0
  5. package/dist/chunk-TCLX6C3C.js +271 -0
  6. package/dist/client-exports.cjs +622 -272
  7. package/dist/client-exports.d.cts +6 -5
  8. package/dist/client-exports.d.ts +6 -5
  9. package/dist/client-exports.js +5 -4
  10. package/dist/db/schema.cjs +201 -130
  11. package/dist/db/schema.d.cts +2 -2
  12. package/dist/db/schema.d.ts +2 -2
  13. package/dist/db/schema.js +1 -1
  14. package/dist/index.cjs +2734 -1831
  15. package/dist/index.d.cts +1667 -1550
  16. package/dist/index.d.ts +1667 -1550
  17. package/dist/index.js +1880 -1394
  18. package/dist/{schema-BQk_FMBV.d.ts → schema-Bjy5TkFv.d.cts} +473 -172
  19. package/dist/{schema-Ct2NlO81.d.cts → schema-CfWbqju2.d.ts} +473 -172
  20. package/dist/signoz-queries-CifqdbnO.d.cts +269 -0
  21. package/dist/signoz-queries-CifqdbnO.d.ts +269 -0
  22. package/dist/types/index.d.cts +2 -2
  23. package/dist/types/index.d.ts +2 -2
  24. package/dist/{utility-s9c5CVOe.d.cts → utility-Fxoh7s82.d.cts} +585 -384
  25. package/dist/{utility-s9c5CVOe.d.ts → utility-Fxoh7s82.d.ts} +585 -384
  26. package/dist/validation/index.cjs +429 -325
  27. package/dist/validation/index.d.cts +76 -4
  28. package/dist/validation/index.d.ts +76 -4
  29. package/dist/validation/index.js +2 -2
  30. package/drizzle/0005_wide_shriek.sql +127 -0
  31. package/drizzle/0006_damp_lenny_balinger.sql +52 -0
  32. package/drizzle/meta/0005_snapshot.json +2558 -0
  33. package/drizzle/meta/0006_snapshot.json +2751 -0
  34. package/drizzle/meta/_journal.json +14 -0
  35. package/package.json +1 -1
  36. package/dist/chunk-N43VFJD3.js +0 -134
@@ -0,0 +1,2558 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "806c32b5-8944-449a-af69-c04847146dfe",
5
+ "prevId": "50cc62de-53ea-4c7e-9c29-f27af3b4b538",
6
+ "tables": {
7
+ "agent_graph": {
8
+ "name": "agent_graph",
9
+ "columns": {
10
+ "tenant_id": {
11
+ "name": "tenant_id",
12
+ "type": "text",
13
+ "primaryKey": false,
14
+ "notNull": true,
15
+ "autoincrement": false
16
+ },
17
+ "id": {
18
+ "name": "id",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true,
22
+ "autoincrement": false
23
+ },
24
+ "project_id": {
25
+ "name": "project_id",
26
+ "type": "text",
27
+ "primaryKey": false,
28
+ "notNull": true,
29
+ "autoincrement": false
30
+ },
31
+ "name": {
32
+ "name": "name",
33
+ "type": "text",
34
+ "primaryKey": false,
35
+ "notNull": true,
36
+ "autoincrement": false
37
+ },
38
+ "description": {
39
+ "name": "description",
40
+ "type": "text",
41
+ "primaryKey": false,
42
+ "notNull": false,
43
+ "autoincrement": false
44
+ },
45
+ "default_sub_agent_id": {
46
+ "name": "default_sub_agent_id",
47
+ "type": "text",
48
+ "primaryKey": false,
49
+ "notNull": false,
50
+ "autoincrement": false
51
+ },
52
+ "context_config_id": {
53
+ "name": "context_config_id",
54
+ "type": "text",
55
+ "primaryKey": false,
56
+ "notNull": false,
57
+ "autoincrement": false
58
+ },
59
+ "models": {
60
+ "name": "models",
61
+ "type": "text",
62
+ "primaryKey": false,
63
+ "notNull": false,
64
+ "autoincrement": false
65
+ },
66
+ "status_updates": {
67
+ "name": "status_updates",
68
+ "type": "text",
69
+ "primaryKey": false,
70
+ "notNull": false,
71
+ "autoincrement": false
72
+ },
73
+ "graph_prompt": {
74
+ "name": "graph_prompt",
75
+ "type": "text",
76
+ "primaryKey": false,
77
+ "notNull": false,
78
+ "autoincrement": false
79
+ },
80
+ "stop_when": {
81
+ "name": "stop_when",
82
+ "type": "text",
83
+ "primaryKey": false,
84
+ "notNull": false,
85
+ "autoincrement": false
86
+ },
87
+ "created_at": {
88
+ "name": "created_at",
89
+ "type": "text",
90
+ "primaryKey": false,
91
+ "notNull": true,
92
+ "autoincrement": false,
93
+ "default": "CURRENT_TIMESTAMP"
94
+ },
95
+ "updated_at": {
96
+ "name": "updated_at",
97
+ "type": "text",
98
+ "primaryKey": false,
99
+ "notNull": true,
100
+ "autoincrement": false,
101
+ "default": "CURRENT_TIMESTAMP"
102
+ }
103
+ },
104
+ "indexes": {},
105
+ "foreignKeys": {
106
+ "agent_graph_project_fk": {
107
+ "name": "agent_graph_project_fk",
108
+ "tableFrom": "agent_graph",
109
+ "tableTo": "projects",
110
+ "columnsFrom": [
111
+ "tenant_id",
112
+ "project_id"
113
+ ],
114
+ "columnsTo": [
115
+ "tenant_id",
116
+ "id"
117
+ ],
118
+ "onDelete": "cascade",
119
+ "onUpdate": "no action"
120
+ }
121
+ },
122
+ "compositePrimaryKeys": {
123
+ "agent_graph_tenant_id_project_id_id_pk": {
124
+ "columns": [
125
+ "tenant_id",
126
+ "project_id",
127
+ "id"
128
+ ],
129
+ "name": "agent_graph_tenant_id_project_id_id_pk"
130
+ }
131
+ },
132
+ "uniqueConstraints": {},
133
+ "checkConstraints": {}
134
+ },
135
+ "api_keys": {
136
+ "name": "api_keys",
137
+ "columns": {
138
+ "tenant_id": {
139
+ "name": "tenant_id",
140
+ "type": "text",
141
+ "primaryKey": false,
142
+ "notNull": true,
143
+ "autoincrement": false
144
+ },
145
+ "id": {
146
+ "name": "id",
147
+ "type": "text",
148
+ "primaryKey": false,
149
+ "notNull": true,
150
+ "autoincrement": false
151
+ },
152
+ "project_id": {
153
+ "name": "project_id",
154
+ "type": "text",
155
+ "primaryKey": false,
156
+ "notNull": true,
157
+ "autoincrement": false
158
+ },
159
+ "graph_id": {
160
+ "name": "graph_id",
161
+ "type": "text",
162
+ "primaryKey": false,
163
+ "notNull": true,
164
+ "autoincrement": false
165
+ },
166
+ "public_id": {
167
+ "name": "public_id",
168
+ "type": "text",
169
+ "primaryKey": false,
170
+ "notNull": true,
171
+ "autoincrement": false
172
+ },
173
+ "key_hash": {
174
+ "name": "key_hash",
175
+ "type": "text",
176
+ "primaryKey": false,
177
+ "notNull": true,
178
+ "autoincrement": false
179
+ },
180
+ "key_prefix": {
181
+ "name": "key_prefix",
182
+ "type": "text",
183
+ "primaryKey": false,
184
+ "notNull": true,
185
+ "autoincrement": false
186
+ },
187
+ "name": {
188
+ "name": "name",
189
+ "type": "text",
190
+ "primaryKey": false,
191
+ "notNull": false,
192
+ "autoincrement": false
193
+ },
194
+ "last_used_at": {
195
+ "name": "last_used_at",
196
+ "type": "text",
197
+ "primaryKey": false,
198
+ "notNull": false,
199
+ "autoincrement": false
200
+ },
201
+ "expires_at": {
202
+ "name": "expires_at",
203
+ "type": "text",
204
+ "primaryKey": false,
205
+ "notNull": false,
206
+ "autoincrement": false
207
+ },
208
+ "created_at": {
209
+ "name": "created_at",
210
+ "type": "text",
211
+ "primaryKey": false,
212
+ "notNull": true,
213
+ "autoincrement": false,
214
+ "default": "CURRENT_TIMESTAMP"
215
+ },
216
+ "updated_at": {
217
+ "name": "updated_at",
218
+ "type": "text",
219
+ "primaryKey": false,
220
+ "notNull": true,
221
+ "autoincrement": false,
222
+ "default": "CURRENT_TIMESTAMP"
223
+ }
224
+ },
225
+ "indexes": {
226
+ "api_keys_public_id_unique": {
227
+ "name": "api_keys_public_id_unique",
228
+ "columns": [
229
+ "public_id"
230
+ ],
231
+ "isUnique": true
232
+ },
233
+ "api_keys_tenant_graph_idx": {
234
+ "name": "api_keys_tenant_graph_idx",
235
+ "columns": [
236
+ "tenant_id",
237
+ "graph_id"
238
+ ],
239
+ "isUnique": false
240
+ },
241
+ "api_keys_prefix_idx": {
242
+ "name": "api_keys_prefix_idx",
243
+ "columns": [
244
+ "key_prefix"
245
+ ],
246
+ "isUnique": false
247
+ },
248
+ "api_keys_public_id_idx": {
249
+ "name": "api_keys_public_id_idx",
250
+ "columns": [
251
+ "public_id"
252
+ ],
253
+ "isUnique": false
254
+ }
255
+ },
256
+ "foreignKeys": {
257
+ "api_keys_project_fk": {
258
+ "name": "api_keys_project_fk",
259
+ "tableFrom": "api_keys",
260
+ "tableTo": "projects",
261
+ "columnsFrom": [
262
+ "tenant_id",
263
+ "project_id"
264
+ ],
265
+ "columnsTo": [
266
+ "tenant_id",
267
+ "id"
268
+ ],
269
+ "onDelete": "cascade",
270
+ "onUpdate": "no action"
271
+ },
272
+ "api_keys_graph_fk": {
273
+ "name": "api_keys_graph_fk",
274
+ "tableFrom": "api_keys",
275
+ "tableTo": "agent_graph",
276
+ "columnsFrom": [
277
+ "tenant_id",
278
+ "project_id",
279
+ "graph_id"
280
+ ],
281
+ "columnsTo": [
282
+ "tenant_id",
283
+ "project_id",
284
+ "id"
285
+ ],
286
+ "onDelete": "cascade",
287
+ "onUpdate": "no action"
288
+ }
289
+ },
290
+ "compositePrimaryKeys": {},
291
+ "uniqueConstraints": {},
292
+ "checkConstraints": {}
293
+ },
294
+ "artifact_components": {
295
+ "name": "artifact_components",
296
+ "columns": {
297
+ "tenant_id": {
298
+ "name": "tenant_id",
299
+ "type": "text",
300
+ "primaryKey": false,
301
+ "notNull": true,
302
+ "autoincrement": false
303
+ },
304
+ "id": {
305
+ "name": "id",
306
+ "type": "text",
307
+ "primaryKey": false,
308
+ "notNull": true,
309
+ "autoincrement": false
310
+ },
311
+ "project_id": {
312
+ "name": "project_id",
313
+ "type": "text",
314
+ "primaryKey": false,
315
+ "notNull": true,
316
+ "autoincrement": false
317
+ },
318
+ "name": {
319
+ "name": "name",
320
+ "type": "text",
321
+ "primaryKey": false,
322
+ "notNull": true,
323
+ "autoincrement": false
324
+ },
325
+ "description": {
326
+ "name": "description",
327
+ "type": "text",
328
+ "primaryKey": false,
329
+ "notNull": true,
330
+ "autoincrement": false
331
+ },
332
+ "props": {
333
+ "name": "props",
334
+ "type": "blob",
335
+ "primaryKey": false,
336
+ "notNull": false,
337
+ "autoincrement": false
338
+ },
339
+ "created_at": {
340
+ "name": "created_at",
341
+ "type": "text",
342
+ "primaryKey": false,
343
+ "notNull": true,
344
+ "autoincrement": false,
345
+ "default": "CURRENT_TIMESTAMP"
346
+ },
347
+ "updated_at": {
348
+ "name": "updated_at",
349
+ "type": "text",
350
+ "primaryKey": false,
351
+ "notNull": true,
352
+ "autoincrement": false,
353
+ "default": "CURRENT_TIMESTAMP"
354
+ }
355
+ },
356
+ "indexes": {},
357
+ "foreignKeys": {
358
+ "artifact_components_project_fk": {
359
+ "name": "artifact_components_project_fk",
360
+ "tableFrom": "artifact_components",
361
+ "tableTo": "projects",
362
+ "columnsFrom": [
363
+ "tenant_id",
364
+ "project_id"
365
+ ],
366
+ "columnsTo": [
367
+ "tenant_id",
368
+ "id"
369
+ ],
370
+ "onDelete": "cascade",
371
+ "onUpdate": "no action"
372
+ }
373
+ },
374
+ "compositePrimaryKeys": {
375
+ "artifact_components_tenant_id_project_id_id_pk": {
376
+ "columns": [
377
+ "tenant_id",
378
+ "project_id",
379
+ "id"
380
+ ],
381
+ "name": "artifact_components_tenant_id_project_id_id_pk"
382
+ }
383
+ },
384
+ "uniqueConstraints": {},
385
+ "checkConstraints": {}
386
+ },
387
+ "context_cache": {
388
+ "name": "context_cache",
389
+ "columns": {
390
+ "tenant_id": {
391
+ "name": "tenant_id",
392
+ "type": "text",
393
+ "primaryKey": false,
394
+ "notNull": true,
395
+ "autoincrement": false
396
+ },
397
+ "id": {
398
+ "name": "id",
399
+ "type": "text",
400
+ "primaryKey": false,
401
+ "notNull": true,
402
+ "autoincrement": false
403
+ },
404
+ "project_id": {
405
+ "name": "project_id",
406
+ "type": "text",
407
+ "primaryKey": false,
408
+ "notNull": true,
409
+ "autoincrement": false
410
+ },
411
+ "conversation_id": {
412
+ "name": "conversation_id",
413
+ "type": "text",
414
+ "primaryKey": false,
415
+ "notNull": true,
416
+ "autoincrement": false
417
+ },
418
+ "context_config_id": {
419
+ "name": "context_config_id",
420
+ "type": "text",
421
+ "primaryKey": false,
422
+ "notNull": true,
423
+ "autoincrement": false
424
+ },
425
+ "context_variable_key": {
426
+ "name": "context_variable_key",
427
+ "type": "text",
428
+ "primaryKey": false,
429
+ "notNull": true,
430
+ "autoincrement": false
431
+ },
432
+ "value": {
433
+ "name": "value",
434
+ "type": "blob",
435
+ "primaryKey": false,
436
+ "notNull": true,
437
+ "autoincrement": false
438
+ },
439
+ "request_hash": {
440
+ "name": "request_hash",
441
+ "type": "text",
442
+ "primaryKey": false,
443
+ "notNull": false,
444
+ "autoincrement": false
445
+ },
446
+ "fetched_at": {
447
+ "name": "fetched_at",
448
+ "type": "text",
449
+ "primaryKey": false,
450
+ "notNull": true,
451
+ "autoincrement": false
452
+ },
453
+ "fetch_source": {
454
+ "name": "fetch_source",
455
+ "type": "text",
456
+ "primaryKey": false,
457
+ "notNull": false,
458
+ "autoincrement": false
459
+ },
460
+ "fetch_duration_ms": {
461
+ "name": "fetch_duration_ms",
462
+ "type": "integer",
463
+ "primaryKey": false,
464
+ "notNull": false,
465
+ "autoincrement": false
466
+ },
467
+ "created_at": {
468
+ "name": "created_at",
469
+ "type": "text",
470
+ "primaryKey": false,
471
+ "notNull": true,
472
+ "autoincrement": false,
473
+ "default": "CURRENT_TIMESTAMP"
474
+ },
475
+ "updated_at": {
476
+ "name": "updated_at",
477
+ "type": "text",
478
+ "primaryKey": false,
479
+ "notNull": true,
480
+ "autoincrement": false,
481
+ "default": "CURRENT_TIMESTAMP"
482
+ }
483
+ },
484
+ "indexes": {
485
+ "context_cache_lookup_idx": {
486
+ "name": "context_cache_lookup_idx",
487
+ "columns": [
488
+ "conversation_id",
489
+ "context_config_id",
490
+ "context_variable_key"
491
+ ],
492
+ "isUnique": false
493
+ }
494
+ },
495
+ "foreignKeys": {
496
+ "context_cache_project_fk": {
497
+ "name": "context_cache_project_fk",
498
+ "tableFrom": "context_cache",
499
+ "tableTo": "projects",
500
+ "columnsFrom": [
501
+ "tenant_id",
502
+ "project_id"
503
+ ],
504
+ "columnsTo": [
505
+ "tenant_id",
506
+ "id"
507
+ ],
508
+ "onDelete": "cascade",
509
+ "onUpdate": "no action"
510
+ }
511
+ },
512
+ "compositePrimaryKeys": {
513
+ "context_cache_tenant_id_project_id_id_pk": {
514
+ "columns": [
515
+ "tenant_id",
516
+ "project_id",
517
+ "id"
518
+ ],
519
+ "name": "context_cache_tenant_id_project_id_id_pk"
520
+ }
521
+ },
522
+ "uniqueConstraints": {},
523
+ "checkConstraints": {}
524
+ },
525
+ "context_configs": {
526
+ "name": "context_configs",
527
+ "columns": {
528
+ "tenant_id": {
529
+ "name": "tenant_id",
530
+ "type": "text",
531
+ "primaryKey": false,
532
+ "notNull": true,
533
+ "autoincrement": false
534
+ },
535
+ "id": {
536
+ "name": "id",
537
+ "type": "text",
538
+ "primaryKey": false,
539
+ "notNull": true,
540
+ "autoincrement": false
541
+ },
542
+ "project_id": {
543
+ "name": "project_id",
544
+ "type": "text",
545
+ "primaryKey": false,
546
+ "notNull": true,
547
+ "autoincrement": false
548
+ },
549
+ "graph_id": {
550
+ "name": "graph_id",
551
+ "type": "text",
552
+ "primaryKey": false,
553
+ "notNull": true,
554
+ "autoincrement": false
555
+ },
556
+ "headers_schema": {
557
+ "name": "headers_schema",
558
+ "type": "blob",
559
+ "primaryKey": false,
560
+ "notNull": false,
561
+ "autoincrement": false
562
+ },
563
+ "context_variables": {
564
+ "name": "context_variables",
565
+ "type": "blob",
566
+ "primaryKey": false,
567
+ "notNull": false,
568
+ "autoincrement": false
569
+ },
570
+ "created_at": {
571
+ "name": "created_at",
572
+ "type": "text",
573
+ "primaryKey": false,
574
+ "notNull": true,
575
+ "autoincrement": false,
576
+ "default": "CURRENT_TIMESTAMP"
577
+ },
578
+ "updated_at": {
579
+ "name": "updated_at",
580
+ "type": "text",
581
+ "primaryKey": false,
582
+ "notNull": true,
583
+ "autoincrement": false,
584
+ "default": "CURRENT_TIMESTAMP"
585
+ }
586
+ },
587
+ "indexes": {},
588
+ "foreignKeys": {
589
+ "context_configs_graph_fk": {
590
+ "name": "context_configs_graph_fk",
591
+ "tableFrom": "context_configs",
592
+ "tableTo": "agent_graph",
593
+ "columnsFrom": [
594
+ "tenant_id",
595
+ "project_id",
596
+ "graph_id"
597
+ ],
598
+ "columnsTo": [
599
+ "tenant_id",
600
+ "project_id",
601
+ "id"
602
+ ],
603
+ "onDelete": "cascade",
604
+ "onUpdate": "no action"
605
+ }
606
+ },
607
+ "compositePrimaryKeys": {
608
+ "context_configs_tenant_id_project_id_graph_id_id_pk": {
609
+ "columns": [
610
+ "tenant_id",
611
+ "project_id",
612
+ "graph_id",
613
+ "id"
614
+ ],
615
+ "name": "context_configs_tenant_id_project_id_graph_id_id_pk"
616
+ }
617
+ },
618
+ "uniqueConstraints": {},
619
+ "checkConstraints": {}
620
+ },
621
+ "conversations": {
622
+ "name": "conversations",
623
+ "columns": {
624
+ "tenant_id": {
625
+ "name": "tenant_id",
626
+ "type": "text",
627
+ "primaryKey": false,
628
+ "notNull": true,
629
+ "autoincrement": false
630
+ },
631
+ "id": {
632
+ "name": "id",
633
+ "type": "text",
634
+ "primaryKey": false,
635
+ "notNull": true,
636
+ "autoincrement": false
637
+ },
638
+ "project_id": {
639
+ "name": "project_id",
640
+ "type": "text",
641
+ "primaryKey": false,
642
+ "notNull": true,
643
+ "autoincrement": false
644
+ },
645
+ "user_id": {
646
+ "name": "user_id",
647
+ "type": "text",
648
+ "primaryKey": false,
649
+ "notNull": false,
650
+ "autoincrement": false
651
+ },
652
+ "active_sub_agent_id": {
653
+ "name": "active_sub_agent_id",
654
+ "type": "text",
655
+ "primaryKey": false,
656
+ "notNull": true,
657
+ "autoincrement": false
658
+ },
659
+ "title": {
660
+ "name": "title",
661
+ "type": "text",
662
+ "primaryKey": false,
663
+ "notNull": false,
664
+ "autoincrement": false
665
+ },
666
+ "last_context_resolution": {
667
+ "name": "last_context_resolution",
668
+ "type": "text",
669
+ "primaryKey": false,
670
+ "notNull": false,
671
+ "autoincrement": false
672
+ },
673
+ "metadata": {
674
+ "name": "metadata",
675
+ "type": "blob",
676
+ "primaryKey": false,
677
+ "notNull": false,
678
+ "autoincrement": false
679
+ },
680
+ "created_at": {
681
+ "name": "created_at",
682
+ "type": "text",
683
+ "primaryKey": false,
684
+ "notNull": true,
685
+ "autoincrement": false,
686
+ "default": "CURRENT_TIMESTAMP"
687
+ },
688
+ "updated_at": {
689
+ "name": "updated_at",
690
+ "type": "text",
691
+ "primaryKey": false,
692
+ "notNull": true,
693
+ "autoincrement": false,
694
+ "default": "CURRENT_TIMESTAMP"
695
+ }
696
+ },
697
+ "indexes": {},
698
+ "foreignKeys": {
699
+ "conversations_project_fk": {
700
+ "name": "conversations_project_fk",
701
+ "tableFrom": "conversations",
702
+ "tableTo": "projects",
703
+ "columnsFrom": [
704
+ "tenant_id",
705
+ "project_id"
706
+ ],
707
+ "columnsTo": [
708
+ "tenant_id",
709
+ "id"
710
+ ],
711
+ "onDelete": "cascade",
712
+ "onUpdate": "no action"
713
+ }
714
+ },
715
+ "compositePrimaryKeys": {
716
+ "conversations_tenant_id_project_id_id_pk": {
717
+ "columns": [
718
+ "tenant_id",
719
+ "project_id",
720
+ "id"
721
+ ],
722
+ "name": "conversations_tenant_id_project_id_id_pk"
723
+ }
724
+ },
725
+ "uniqueConstraints": {},
726
+ "checkConstraints": {}
727
+ },
728
+ "credential_references": {
729
+ "name": "credential_references",
730
+ "columns": {
731
+ "tenant_id": {
732
+ "name": "tenant_id",
733
+ "type": "text",
734
+ "primaryKey": false,
735
+ "notNull": true,
736
+ "autoincrement": false
737
+ },
738
+ "id": {
739
+ "name": "id",
740
+ "type": "text",
741
+ "primaryKey": false,
742
+ "notNull": true,
743
+ "autoincrement": false
744
+ },
745
+ "project_id": {
746
+ "name": "project_id",
747
+ "type": "text",
748
+ "primaryKey": false,
749
+ "notNull": true,
750
+ "autoincrement": false
751
+ },
752
+ "type": {
753
+ "name": "type",
754
+ "type": "text",
755
+ "primaryKey": false,
756
+ "notNull": true,
757
+ "autoincrement": false
758
+ },
759
+ "credential_store_id": {
760
+ "name": "credential_store_id",
761
+ "type": "text",
762
+ "primaryKey": false,
763
+ "notNull": true,
764
+ "autoincrement": false
765
+ },
766
+ "retrieval_params": {
767
+ "name": "retrieval_params",
768
+ "type": "blob",
769
+ "primaryKey": false,
770
+ "notNull": false,
771
+ "autoincrement": false
772
+ },
773
+ "created_at": {
774
+ "name": "created_at",
775
+ "type": "text",
776
+ "primaryKey": false,
777
+ "notNull": true,
778
+ "autoincrement": false,
779
+ "default": "CURRENT_TIMESTAMP"
780
+ },
781
+ "updated_at": {
782
+ "name": "updated_at",
783
+ "type": "text",
784
+ "primaryKey": false,
785
+ "notNull": true,
786
+ "autoincrement": false,
787
+ "default": "CURRENT_TIMESTAMP"
788
+ }
789
+ },
790
+ "indexes": {},
791
+ "foreignKeys": {
792
+ "credential_references_project_fk": {
793
+ "name": "credential_references_project_fk",
794
+ "tableFrom": "credential_references",
795
+ "tableTo": "projects",
796
+ "columnsFrom": [
797
+ "tenant_id",
798
+ "project_id"
799
+ ],
800
+ "columnsTo": [
801
+ "tenant_id",
802
+ "id"
803
+ ],
804
+ "onDelete": "cascade",
805
+ "onUpdate": "no action"
806
+ }
807
+ },
808
+ "compositePrimaryKeys": {
809
+ "credential_references_tenant_id_project_id_id_pk": {
810
+ "columns": [
811
+ "tenant_id",
812
+ "project_id",
813
+ "id"
814
+ ],
815
+ "name": "credential_references_tenant_id_project_id_id_pk"
816
+ }
817
+ },
818
+ "uniqueConstraints": {},
819
+ "checkConstraints": {}
820
+ },
821
+ "data_components": {
822
+ "name": "data_components",
823
+ "columns": {
824
+ "tenant_id": {
825
+ "name": "tenant_id",
826
+ "type": "text",
827
+ "primaryKey": false,
828
+ "notNull": true,
829
+ "autoincrement": false
830
+ },
831
+ "id": {
832
+ "name": "id",
833
+ "type": "text",
834
+ "primaryKey": false,
835
+ "notNull": true,
836
+ "autoincrement": false
837
+ },
838
+ "project_id": {
839
+ "name": "project_id",
840
+ "type": "text",
841
+ "primaryKey": false,
842
+ "notNull": true,
843
+ "autoincrement": false
844
+ },
845
+ "name": {
846
+ "name": "name",
847
+ "type": "text",
848
+ "primaryKey": false,
849
+ "notNull": true,
850
+ "autoincrement": false
851
+ },
852
+ "description": {
853
+ "name": "description",
854
+ "type": "text",
855
+ "primaryKey": false,
856
+ "notNull": true,
857
+ "autoincrement": false
858
+ },
859
+ "props": {
860
+ "name": "props",
861
+ "type": "blob",
862
+ "primaryKey": false,
863
+ "notNull": false,
864
+ "autoincrement": false
865
+ },
866
+ "created_at": {
867
+ "name": "created_at",
868
+ "type": "text",
869
+ "primaryKey": false,
870
+ "notNull": true,
871
+ "autoincrement": false,
872
+ "default": "CURRENT_TIMESTAMP"
873
+ },
874
+ "updated_at": {
875
+ "name": "updated_at",
876
+ "type": "text",
877
+ "primaryKey": false,
878
+ "notNull": true,
879
+ "autoincrement": false,
880
+ "default": "CURRENT_TIMESTAMP"
881
+ }
882
+ },
883
+ "indexes": {},
884
+ "foreignKeys": {
885
+ "data_components_project_fk": {
886
+ "name": "data_components_project_fk",
887
+ "tableFrom": "data_components",
888
+ "tableTo": "projects",
889
+ "columnsFrom": [
890
+ "tenant_id",
891
+ "project_id"
892
+ ],
893
+ "columnsTo": [
894
+ "tenant_id",
895
+ "id"
896
+ ],
897
+ "onDelete": "cascade",
898
+ "onUpdate": "no action"
899
+ }
900
+ },
901
+ "compositePrimaryKeys": {
902
+ "data_components_tenant_id_project_id_id_pk": {
903
+ "columns": [
904
+ "tenant_id",
905
+ "project_id",
906
+ "id"
907
+ ],
908
+ "name": "data_components_tenant_id_project_id_id_pk"
909
+ }
910
+ },
911
+ "uniqueConstraints": {},
912
+ "checkConstraints": {}
913
+ },
914
+ "external_agents": {
915
+ "name": "external_agents",
916
+ "columns": {
917
+ "tenant_id": {
918
+ "name": "tenant_id",
919
+ "type": "text",
920
+ "primaryKey": false,
921
+ "notNull": true,
922
+ "autoincrement": false
923
+ },
924
+ "id": {
925
+ "name": "id",
926
+ "type": "text",
927
+ "primaryKey": false,
928
+ "notNull": true,
929
+ "autoincrement": false
930
+ },
931
+ "project_id": {
932
+ "name": "project_id",
933
+ "type": "text",
934
+ "primaryKey": false,
935
+ "notNull": true,
936
+ "autoincrement": false
937
+ },
938
+ "graph_id": {
939
+ "name": "graph_id",
940
+ "type": "text",
941
+ "primaryKey": false,
942
+ "notNull": true,
943
+ "autoincrement": false
944
+ },
945
+ "name": {
946
+ "name": "name",
947
+ "type": "text",
948
+ "primaryKey": false,
949
+ "notNull": true,
950
+ "autoincrement": false
951
+ },
952
+ "description": {
953
+ "name": "description",
954
+ "type": "text",
955
+ "primaryKey": false,
956
+ "notNull": true,
957
+ "autoincrement": false
958
+ },
959
+ "base_url": {
960
+ "name": "base_url",
961
+ "type": "text",
962
+ "primaryKey": false,
963
+ "notNull": true,
964
+ "autoincrement": false
965
+ },
966
+ "credential_reference_id": {
967
+ "name": "credential_reference_id",
968
+ "type": "text",
969
+ "primaryKey": false,
970
+ "notNull": false,
971
+ "autoincrement": false
972
+ },
973
+ "headers": {
974
+ "name": "headers",
975
+ "type": "blob",
976
+ "primaryKey": false,
977
+ "notNull": false,
978
+ "autoincrement": false
979
+ },
980
+ "created_at": {
981
+ "name": "created_at",
982
+ "type": "text",
983
+ "primaryKey": false,
984
+ "notNull": true,
985
+ "autoincrement": false,
986
+ "default": "CURRENT_TIMESTAMP"
987
+ },
988
+ "updated_at": {
989
+ "name": "updated_at",
990
+ "type": "text",
991
+ "primaryKey": false,
992
+ "notNull": true,
993
+ "autoincrement": false,
994
+ "default": "CURRENT_TIMESTAMP"
995
+ }
996
+ },
997
+ "indexes": {},
998
+ "foreignKeys": {
999
+ "external_agents_graph_fk": {
1000
+ "name": "external_agents_graph_fk",
1001
+ "tableFrom": "external_agents",
1002
+ "tableTo": "agent_graph",
1003
+ "columnsFrom": [
1004
+ "tenant_id",
1005
+ "project_id",
1006
+ "graph_id"
1007
+ ],
1008
+ "columnsTo": [
1009
+ "tenant_id",
1010
+ "project_id",
1011
+ "id"
1012
+ ],
1013
+ "onDelete": "cascade",
1014
+ "onUpdate": "no action"
1015
+ },
1016
+ "external_agents_credential_reference_fk": {
1017
+ "name": "external_agents_credential_reference_fk",
1018
+ "tableFrom": "external_agents",
1019
+ "tableTo": "credential_references",
1020
+ "columnsFrom": [
1021
+ "tenant_id",
1022
+ "project_id",
1023
+ "credential_reference_id"
1024
+ ],
1025
+ "columnsTo": [
1026
+ "tenant_id",
1027
+ "project_id",
1028
+ "id"
1029
+ ],
1030
+ "onDelete": "set null",
1031
+ "onUpdate": "no action"
1032
+ }
1033
+ },
1034
+ "compositePrimaryKeys": {
1035
+ "external_agents_tenant_id_project_id_graph_id_id_pk": {
1036
+ "columns": [
1037
+ "tenant_id",
1038
+ "project_id",
1039
+ "graph_id",
1040
+ "id"
1041
+ ],
1042
+ "name": "external_agents_tenant_id_project_id_graph_id_id_pk"
1043
+ }
1044
+ },
1045
+ "uniqueConstraints": {},
1046
+ "checkConstraints": {}
1047
+ },
1048
+ "functions": {
1049
+ "name": "functions",
1050
+ "columns": {
1051
+ "tenant_id": {
1052
+ "name": "tenant_id",
1053
+ "type": "text",
1054
+ "primaryKey": false,
1055
+ "notNull": true,
1056
+ "autoincrement": false
1057
+ },
1058
+ "id": {
1059
+ "name": "id",
1060
+ "type": "text",
1061
+ "primaryKey": false,
1062
+ "notNull": true,
1063
+ "autoincrement": false
1064
+ },
1065
+ "project_id": {
1066
+ "name": "project_id",
1067
+ "type": "text",
1068
+ "primaryKey": false,
1069
+ "notNull": true,
1070
+ "autoincrement": false
1071
+ },
1072
+ "input_schema": {
1073
+ "name": "input_schema",
1074
+ "type": "blob",
1075
+ "primaryKey": false,
1076
+ "notNull": false,
1077
+ "autoincrement": false
1078
+ },
1079
+ "execute_code": {
1080
+ "name": "execute_code",
1081
+ "type": "text",
1082
+ "primaryKey": false,
1083
+ "notNull": true,
1084
+ "autoincrement": false
1085
+ },
1086
+ "dependencies": {
1087
+ "name": "dependencies",
1088
+ "type": "blob",
1089
+ "primaryKey": false,
1090
+ "notNull": false,
1091
+ "autoincrement": false
1092
+ },
1093
+ "created_at": {
1094
+ "name": "created_at",
1095
+ "type": "text",
1096
+ "primaryKey": false,
1097
+ "notNull": true,
1098
+ "autoincrement": false,
1099
+ "default": "CURRENT_TIMESTAMP"
1100
+ },
1101
+ "updated_at": {
1102
+ "name": "updated_at",
1103
+ "type": "text",
1104
+ "primaryKey": false,
1105
+ "notNull": true,
1106
+ "autoincrement": false,
1107
+ "default": "CURRENT_TIMESTAMP"
1108
+ }
1109
+ },
1110
+ "indexes": {},
1111
+ "foreignKeys": {
1112
+ "functions_project_fk": {
1113
+ "name": "functions_project_fk",
1114
+ "tableFrom": "functions",
1115
+ "tableTo": "projects",
1116
+ "columnsFrom": [
1117
+ "tenant_id",
1118
+ "project_id"
1119
+ ],
1120
+ "columnsTo": [
1121
+ "tenant_id",
1122
+ "id"
1123
+ ],
1124
+ "onDelete": "cascade",
1125
+ "onUpdate": "no action"
1126
+ }
1127
+ },
1128
+ "compositePrimaryKeys": {
1129
+ "functions_tenant_id_project_id_id_pk": {
1130
+ "columns": [
1131
+ "tenant_id",
1132
+ "project_id",
1133
+ "id"
1134
+ ],
1135
+ "name": "functions_tenant_id_project_id_id_pk"
1136
+ }
1137
+ },
1138
+ "uniqueConstraints": {},
1139
+ "checkConstraints": {}
1140
+ },
1141
+ "ledger_artifacts": {
1142
+ "name": "ledger_artifacts",
1143
+ "columns": {
1144
+ "tenant_id": {
1145
+ "name": "tenant_id",
1146
+ "type": "text",
1147
+ "primaryKey": false,
1148
+ "notNull": true,
1149
+ "autoincrement": false
1150
+ },
1151
+ "id": {
1152
+ "name": "id",
1153
+ "type": "text",
1154
+ "primaryKey": false,
1155
+ "notNull": true,
1156
+ "autoincrement": false
1157
+ },
1158
+ "project_id": {
1159
+ "name": "project_id",
1160
+ "type": "text",
1161
+ "primaryKey": false,
1162
+ "notNull": true,
1163
+ "autoincrement": false
1164
+ },
1165
+ "task_id": {
1166
+ "name": "task_id",
1167
+ "type": "text",
1168
+ "primaryKey": false,
1169
+ "notNull": true,
1170
+ "autoincrement": false
1171
+ },
1172
+ "tool_call_id": {
1173
+ "name": "tool_call_id",
1174
+ "type": "text",
1175
+ "primaryKey": false,
1176
+ "notNull": false,
1177
+ "autoincrement": false
1178
+ },
1179
+ "context_id": {
1180
+ "name": "context_id",
1181
+ "type": "text",
1182
+ "primaryKey": false,
1183
+ "notNull": true,
1184
+ "autoincrement": false
1185
+ },
1186
+ "type": {
1187
+ "name": "type",
1188
+ "type": "text",
1189
+ "primaryKey": false,
1190
+ "notNull": true,
1191
+ "autoincrement": false,
1192
+ "default": "'source'"
1193
+ },
1194
+ "name": {
1195
+ "name": "name",
1196
+ "type": "text",
1197
+ "primaryKey": false,
1198
+ "notNull": false,
1199
+ "autoincrement": false
1200
+ },
1201
+ "description": {
1202
+ "name": "description",
1203
+ "type": "text",
1204
+ "primaryKey": false,
1205
+ "notNull": false,
1206
+ "autoincrement": false
1207
+ },
1208
+ "parts": {
1209
+ "name": "parts",
1210
+ "type": "blob",
1211
+ "primaryKey": false,
1212
+ "notNull": false,
1213
+ "autoincrement": false
1214
+ },
1215
+ "metadata": {
1216
+ "name": "metadata",
1217
+ "type": "blob",
1218
+ "primaryKey": false,
1219
+ "notNull": false,
1220
+ "autoincrement": false
1221
+ },
1222
+ "summary": {
1223
+ "name": "summary",
1224
+ "type": "text",
1225
+ "primaryKey": false,
1226
+ "notNull": false,
1227
+ "autoincrement": false
1228
+ },
1229
+ "mime": {
1230
+ "name": "mime",
1231
+ "type": "blob",
1232
+ "primaryKey": false,
1233
+ "notNull": false,
1234
+ "autoincrement": false
1235
+ },
1236
+ "visibility": {
1237
+ "name": "visibility",
1238
+ "type": "text",
1239
+ "primaryKey": false,
1240
+ "notNull": false,
1241
+ "autoincrement": false,
1242
+ "default": "'context'"
1243
+ },
1244
+ "allowed_agents": {
1245
+ "name": "allowed_agents",
1246
+ "type": "blob",
1247
+ "primaryKey": false,
1248
+ "notNull": false,
1249
+ "autoincrement": false
1250
+ },
1251
+ "derived_from": {
1252
+ "name": "derived_from",
1253
+ "type": "text",
1254
+ "primaryKey": false,
1255
+ "notNull": false,
1256
+ "autoincrement": false
1257
+ },
1258
+ "created_at": {
1259
+ "name": "created_at",
1260
+ "type": "text",
1261
+ "primaryKey": false,
1262
+ "notNull": true,
1263
+ "autoincrement": false,
1264
+ "default": "CURRENT_TIMESTAMP"
1265
+ },
1266
+ "updated_at": {
1267
+ "name": "updated_at",
1268
+ "type": "text",
1269
+ "primaryKey": false,
1270
+ "notNull": true,
1271
+ "autoincrement": false,
1272
+ "default": "CURRENT_TIMESTAMP"
1273
+ }
1274
+ },
1275
+ "indexes": {
1276
+ "ledger_artifacts_task_id_idx": {
1277
+ "name": "ledger_artifacts_task_id_idx",
1278
+ "columns": [
1279
+ "task_id"
1280
+ ],
1281
+ "isUnique": false
1282
+ },
1283
+ "ledger_artifacts_tool_call_id_idx": {
1284
+ "name": "ledger_artifacts_tool_call_id_idx",
1285
+ "columns": [
1286
+ "tool_call_id"
1287
+ ],
1288
+ "isUnique": false
1289
+ },
1290
+ "ledger_artifacts_context_id_idx": {
1291
+ "name": "ledger_artifacts_context_id_idx",
1292
+ "columns": [
1293
+ "context_id"
1294
+ ],
1295
+ "isUnique": false
1296
+ },
1297
+ "ledger_artifacts_task_context_name_unique": {
1298
+ "name": "ledger_artifacts_task_context_name_unique",
1299
+ "columns": [
1300
+ "task_id",
1301
+ "context_id",
1302
+ "name"
1303
+ ],
1304
+ "isUnique": true
1305
+ }
1306
+ },
1307
+ "foreignKeys": {
1308
+ "ledger_artifacts_project_fk": {
1309
+ "name": "ledger_artifacts_project_fk",
1310
+ "tableFrom": "ledger_artifacts",
1311
+ "tableTo": "projects",
1312
+ "columnsFrom": [
1313
+ "tenant_id",
1314
+ "project_id"
1315
+ ],
1316
+ "columnsTo": [
1317
+ "tenant_id",
1318
+ "id"
1319
+ ],
1320
+ "onDelete": "cascade",
1321
+ "onUpdate": "no action"
1322
+ }
1323
+ },
1324
+ "compositePrimaryKeys": {
1325
+ "ledger_artifacts_tenant_id_project_id_id_task_id_pk": {
1326
+ "columns": [
1327
+ "tenant_id",
1328
+ "project_id",
1329
+ "id",
1330
+ "task_id"
1331
+ ],
1332
+ "name": "ledger_artifacts_tenant_id_project_id_id_task_id_pk"
1333
+ }
1334
+ },
1335
+ "uniqueConstraints": {},
1336
+ "checkConstraints": {}
1337
+ },
1338
+ "messages": {
1339
+ "name": "messages",
1340
+ "columns": {
1341
+ "tenant_id": {
1342
+ "name": "tenant_id",
1343
+ "type": "text",
1344
+ "primaryKey": false,
1345
+ "notNull": true,
1346
+ "autoincrement": false
1347
+ },
1348
+ "id": {
1349
+ "name": "id",
1350
+ "type": "text",
1351
+ "primaryKey": false,
1352
+ "notNull": true,
1353
+ "autoincrement": false
1354
+ },
1355
+ "project_id": {
1356
+ "name": "project_id",
1357
+ "type": "text",
1358
+ "primaryKey": false,
1359
+ "notNull": true,
1360
+ "autoincrement": false
1361
+ },
1362
+ "conversation_id": {
1363
+ "name": "conversation_id",
1364
+ "type": "text",
1365
+ "primaryKey": false,
1366
+ "notNull": true,
1367
+ "autoincrement": false
1368
+ },
1369
+ "role": {
1370
+ "name": "role",
1371
+ "type": "text",
1372
+ "primaryKey": false,
1373
+ "notNull": true,
1374
+ "autoincrement": false
1375
+ },
1376
+ "from_sub_agent_id": {
1377
+ "name": "from_sub_agent_id",
1378
+ "type": "text",
1379
+ "primaryKey": false,
1380
+ "notNull": false,
1381
+ "autoincrement": false
1382
+ },
1383
+ "to_sub_agent_id": {
1384
+ "name": "to_sub_agent_id",
1385
+ "type": "text",
1386
+ "primaryKey": false,
1387
+ "notNull": false,
1388
+ "autoincrement": false
1389
+ },
1390
+ "from_external_sub_agent_id": {
1391
+ "name": "from_external_sub_agent_id",
1392
+ "type": "text",
1393
+ "primaryKey": false,
1394
+ "notNull": false,
1395
+ "autoincrement": false
1396
+ },
1397
+ "to_external_sub_agent_id": {
1398
+ "name": "to_external_sub_agent_id",
1399
+ "type": "text",
1400
+ "primaryKey": false,
1401
+ "notNull": false,
1402
+ "autoincrement": false
1403
+ },
1404
+ "content": {
1405
+ "name": "content",
1406
+ "type": "blob",
1407
+ "primaryKey": false,
1408
+ "notNull": true,
1409
+ "autoincrement": false
1410
+ },
1411
+ "visibility": {
1412
+ "name": "visibility",
1413
+ "type": "text",
1414
+ "primaryKey": false,
1415
+ "notNull": true,
1416
+ "autoincrement": false,
1417
+ "default": "'user-facing'"
1418
+ },
1419
+ "message_type": {
1420
+ "name": "message_type",
1421
+ "type": "text",
1422
+ "primaryKey": false,
1423
+ "notNull": true,
1424
+ "autoincrement": false,
1425
+ "default": "'chat'"
1426
+ },
1427
+ "task_id": {
1428
+ "name": "task_id",
1429
+ "type": "text",
1430
+ "primaryKey": false,
1431
+ "notNull": false,
1432
+ "autoincrement": false
1433
+ },
1434
+ "parent_message_id": {
1435
+ "name": "parent_message_id",
1436
+ "type": "text",
1437
+ "primaryKey": false,
1438
+ "notNull": false,
1439
+ "autoincrement": false
1440
+ },
1441
+ "a2a_task_id": {
1442
+ "name": "a2a_task_id",
1443
+ "type": "text",
1444
+ "primaryKey": false,
1445
+ "notNull": false,
1446
+ "autoincrement": false
1447
+ },
1448
+ "a2a_session_id": {
1449
+ "name": "a2a_session_id",
1450
+ "type": "text",
1451
+ "primaryKey": false,
1452
+ "notNull": false,
1453
+ "autoincrement": false
1454
+ },
1455
+ "metadata": {
1456
+ "name": "metadata",
1457
+ "type": "blob",
1458
+ "primaryKey": false,
1459
+ "notNull": false,
1460
+ "autoincrement": false
1461
+ },
1462
+ "created_at": {
1463
+ "name": "created_at",
1464
+ "type": "text",
1465
+ "primaryKey": false,
1466
+ "notNull": true,
1467
+ "autoincrement": false,
1468
+ "default": "CURRENT_TIMESTAMP"
1469
+ },
1470
+ "updated_at": {
1471
+ "name": "updated_at",
1472
+ "type": "text",
1473
+ "primaryKey": false,
1474
+ "notNull": true,
1475
+ "autoincrement": false,
1476
+ "default": "CURRENT_TIMESTAMP"
1477
+ }
1478
+ },
1479
+ "indexes": {},
1480
+ "foreignKeys": {
1481
+ "messages_project_fk": {
1482
+ "name": "messages_project_fk",
1483
+ "tableFrom": "messages",
1484
+ "tableTo": "projects",
1485
+ "columnsFrom": [
1486
+ "tenant_id",
1487
+ "project_id"
1488
+ ],
1489
+ "columnsTo": [
1490
+ "tenant_id",
1491
+ "id"
1492
+ ],
1493
+ "onDelete": "cascade",
1494
+ "onUpdate": "no action"
1495
+ }
1496
+ },
1497
+ "compositePrimaryKeys": {
1498
+ "messages_tenant_id_project_id_id_pk": {
1499
+ "columns": [
1500
+ "tenant_id",
1501
+ "project_id",
1502
+ "id"
1503
+ ],
1504
+ "name": "messages_tenant_id_project_id_id_pk"
1505
+ }
1506
+ },
1507
+ "uniqueConstraints": {},
1508
+ "checkConstraints": {}
1509
+ },
1510
+ "projects": {
1511
+ "name": "projects",
1512
+ "columns": {
1513
+ "tenant_id": {
1514
+ "name": "tenant_id",
1515
+ "type": "text",
1516
+ "primaryKey": false,
1517
+ "notNull": true,
1518
+ "autoincrement": false
1519
+ },
1520
+ "id": {
1521
+ "name": "id",
1522
+ "type": "text",
1523
+ "primaryKey": false,
1524
+ "notNull": true,
1525
+ "autoincrement": false
1526
+ },
1527
+ "name": {
1528
+ "name": "name",
1529
+ "type": "text",
1530
+ "primaryKey": false,
1531
+ "notNull": true,
1532
+ "autoincrement": false
1533
+ },
1534
+ "description": {
1535
+ "name": "description",
1536
+ "type": "text",
1537
+ "primaryKey": false,
1538
+ "notNull": true,
1539
+ "autoincrement": false
1540
+ },
1541
+ "models": {
1542
+ "name": "models",
1543
+ "type": "text",
1544
+ "primaryKey": false,
1545
+ "notNull": false,
1546
+ "autoincrement": false
1547
+ },
1548
+ "stop_when": {
1549
+ "name": "stop_when",
1550
+ "type": "text",
1551
+ "primaryKey": false,
1552
+ "notNull": false,
1553
+ "autoincrement": false
1554
+ },
1555
+ "sandbox_config": {
1556
+ "name": "sandbox_config",
1557
+ "type": "text",
1558
+ "primaryKey": false,
1559
+ "notNull": false,
1560
+ "autoincrement": false
1561
+ },
1562
+ "created_at": {
1563
+ "name": "created_at",
1564
+ "type": "text",
1565
+ "primaryKey": false,
1566
+ "notNull": true,
1567
+ "autoincrement": false,
1568
+ "default": "CURRENT_TIMESTAMP"
1569
+ },
1570
+ "updated_at": {
1571
+ "name": "updated_at",
1572
+ "type": "text",
1573
+ "primaryKey": false,
1574
+ "notNull": true,
1575
+ "autoincrement": false,
1576
+ "default": "CURRENT_TIMESTAMP"
1577
+ }
1578
+ },
1579
+ "indexes": {},
1580
+ "foreignKeys": {},
1581
+ "compositePrimaryKeys": {
1582
+ "projects_tenant_id_id_pk": {
1583
+ "columns": [
1584
+ "tenant_id",
1585
+ "id"
1586
+ ],
1587
+ "name": "projects_tenant_id_id_pk"
1588
+ }
1589
+ },
1590
+ "uniqueConstraints": {},
1591
+ "checkConstraints": {}
1592
+ },
1593
+ "sub_agent_artifact_components": {
1594
+ "name": "sub_agent_artifact_components",
1595
+ "columns": {
1596
+ "tenant_id": {
1597
+ "name": "tenant_id",
1598
+ "type": "text",
1599
+ "primaryKey": false,
1600
+ "notNull": true,
1601
+ "autoincrement": false
1602
+ },
1603
+ "id": {
1604
+ "name": "id",
1605
+ "type": "text",
1606
+ "primaryKey": false,
1607
+ "notNull": true,
1608
+ "autoincrement": false
1609
+ },
1610
+ "project_id": {
1611
+ "name": "project_id",
1612
+ "type": "text",
1613
+ "primaryKey": false,
1614
+ "notNull": true,
1615
+ "autoincrement": false
1616
+ },
1617
+ "graph_id": {
1618
+ "name": "graph_id",
1619
+ "type": "text",
1620
+ "primaryKey": false,
1621
+ "notNull": true,
1622
+ "autoincrement": false
1623
+ },
1624
+ "sub_agent_id": {
1625
+ "name": "sub_agent_id",
1626
+ "type": "text",
1627
+ "primaryKey": false,
1628
+ "notNull": true,
1629
+ "autoincrement": false
1630
+ },
1631
+ "artifact_component_id": {
1632
+ "name": "artifact_component_id",
1633
+ "type": "text",
1634
+ "primaryKey": false,
1635
+ "notNull": true,
1636
+ "autoincrement": false
1637
+ },
1638
+ "created_at": {
1639
+ "name": "created_at",
1640
+ "type": "text",
1641
+ "primaryKey": false,
1642
+ "notNull": true,
1643
+ "autoincrement": false,
1644
+ "default": "CURRENT_TIMESTAMP"
1645
+ }
1646
+ },
1647
+ "indexes": {},
1648
+ "foreignKeys": {
1649
+ "sub_agent_artifact_components_sub_agent_fk": {
1650
+ "name": "sub_agent_artifact_components_sub_agent_fk",
1651
+ "tableFrom": "sub_agent_artifact_components",
1652
+ "tableTo": "sub_agents",
1653
+ "columnsFrom": [
1654
+ "tenant_id",
1655
+ "project_id",
1656
+ "graph_id",
1657
+ "sub_agent_id"
1658
+ ],
1659
+ "columnsTo": [
1660
+ "tenant_id",
1661
+ "project_id",
1662
+ "graph_id",
1663
+ "id"
1664
+ ],
1665
+ "onDelete": "cascade",
1666
+ "onUpdate": "no action"
1667
+ },
1668
+ "sub_agent_artifact_components_artifact_component_fk": {
1669
+ "name": "sub_agent_artifact_components_artifact_component_fk",
1670
+ "tableFrom": "sub_agent_artifact_components",
1671
+ "tableTo": "artifact_components",
1672
+ "columnsFrom": [
1673
+ "tenant_id",
1674
+ "project_id",
1675
+ "artifact_component_id"
1676
+ ],
1677
+ "columnsTo": [
1678
+ "tenant_id",
1679
+ "project_id",
1680
+ "id"
1681
+ ],
1682
+ "onDelete": "cascade",
1683
+ "onUpdate": "no action"
1684
+ }
1685
+ },
1686
+ "compositePrimaryKeys": {
1687
+ "sub_agent_artifact_components_tenant_id_project_id_graph_id_sub_agent_id_id_pk": {
1688
+ "columns": [
1689
+ "tenant_id",
1690
+ "project_id",
1691
+ "graph_id",
1692
+ "sub_agent_id",
1693
+ "id"
1694
+ ],
1695
+ "name": "sub_agent_artifact_components_tenant_id_project_id_graph_id_sub_agent_id_id_pk"
1696
+ }
1697
+ },
1698
+ "uniqueConstraints": {},
1699
+ "checkConstraints": {}
1700
+ },
1701
+ "sub_agent_data_components": {
1702
+ "name": "sub_agent_data_components",
1703
+ "columns": {
1704
+ "tenant_id": {
1705
+ "name": "tenant_id",
1706
+ "type": "text",
1707
+ "primaryKey": false,
1708
+ "notNull": true,
1709
+ "autoincrement": false
1710
+ },
1711
+ "id": {
1712
+ "name": "id",
1713
+ "type": "text",
1714
+ "primaryKey": false,
1715
+ "notNull": true,
1716
+ "autoincrement": false
1717
+ },
1718
+ "project_id": {
1719
+ "name": "project_id",
1720
+ "type": "text",
1721
+ "primaryKey": false,
1722
+ "notNull": true,
1723
+ "autoincrement": false
1724
+ },
1725
+ "graph_id": {
1726
+ "name": "graph_id",
1727
+ "type": "text",
1728
+ "primaryKey": false,
1729
+ "notNull": true,
1730
+ "autoincrement": false
1731
+ },
1732
+ "sub_agent_id": {
1733
+ "name": "sub_agent_id",
1734
+ "type": "text",
1735
+ "primaryKey": false,
1736
+ "notNull": true,
1737
+ "autoincrement": false
1738
+ },
1739
+ "data_component_id": {
1740
+ "name": "data_component_id",
1741
+ "type": "text",
1742
+ "primaryKey": false,
1743
+ "notNull": true,
1744
+ "autoincrement": false
1745
+ },
1746
+ "created_at": {
1747
+ "name": "created_at",
1748
+ "type": "text",
1749
+ "primaryKey": false,
1750
+ "notNull": true,
1751
+ "autoincrement": false,
1752
+ "default": "CURRENT_TIMESTAMP"
1753
+ }
1754
+ },
1755
+ "indexes": {},
1756
+ "foreignKeys": {
1757
+ "sub_agent_data_components_sub_agent_fk": {
1758
+ "name": "sub_agent_data_components_sub_agent_fk",
1759
+ "tableFrom": "sub_agent_data_components",
1760
+ "tableTo": "sub_agents",
1761
+ "columnsFrom": [
1762
+ "tenant_id",
1763
+ "project_id",
1764
+ "graph_id",
1765
+ "sub_agent_id"
1766
+ ],
1767
+ "columnsTo": [
1768
+ "tenant_id",
1769
+ "project_id",
1770
+ "graph_id",
1771
+ "id"
1772
+ ],
1773
+ "onDelete": "cascade",
1774
+ "onUpdate": "no action"
1775
+ },
1776
+ "sub_agent_data_components_data_component_fk": {
1777
+ "name": "sub_agent_data_components_data_component_fk",
1778
+ "tableFrom": "sub_agent_data_components",
1779
+ "tableTo": "data_components",
1780
+ "columnsFrom": [
1781
+ "tenant_id",
1782
+ "project_id",
1783
+ "data_component_id"
1784
+ ],
1785
+ "columnsTo": [
1786
+ "tenant_id",
1787
+ "project_id",
1788
+ "id"
1789
+ ],
1790
+ "onDelete": "cascade",
1791
+ "onUpdate": "no action"
1792
+ }
1793
+ },
1794
+ "compositePrimaryKeys": {
1795
+ "sub_agent_data_components_tenant_id_project_id_id_pk": {
1796
+ "columns": [
1797
+ "tenant_id",
1798
+ "project_id",
1799
+ "id"
1800
+ ],
1801
+ "name": "sub_agent_data_components_tenant_id_project_id_id_pk"
1802
+ }
1803
+ },
1804
+ "uniqueConstraints": {},
1805
+ "checkConstraints": {}
1806
+ },
1807
+ "sub_agent_relations": {
1808
+ "name": "sub_agent_relations",
1809
+ "columns": {
1810
+ "tenant_id": {
1811
+ "name": "tenant_id",
1812
+ "type": "text",
1813
+ "primaryKey": false,
1814
+ "notNull": true,
1815
+ "autoincrement": false
1816
+ },
1817
+ "id": {
1818
+ "name": "id",
1819
+ "type": "text",
1820
+ "primaryKey": false,
1821
+ "notNull": true,
1822
+ "autoincrement": false
1823
+ },
1824
+ "project_id": {
1825
+ "name": "project_id",
1826
+ "type": "text",
1827
+ "primaryKey": false,
1828
+ "notNull": true,
1829
+ "autoincrement": false
1830
+ },
1831
+ "graph_id": {
1832
+ "name": "graph_id",
1833
+ "type": "text",
1834
+ "primaryKey": false,
1835
+ "notNull": true,
1836
+ "autoincrement": false
1837
+ },
1838
+ "source_sub_agent_id": {
1839
+ "name": "source_sub_agent_id",
1840
+ "type": "text",
1841
+ "primaryKey": false,
1842
+ "notNull": true,
1843
+ "autoincrement": false
1844
+ },
1845
+ "target_sub_agent_id": {
1846
+ "name": "target_sub_agent_id",
1847
+ "type": "text",
1848
+ "primaryKey": false,
1849
+ "notNull": false,
1850
+ "autoincrement": false
1851
+ },
1852
+ "external_sub_agent_id": {
1853
+ "name": "external_sub_agent_id",
1854
+ "type": "text",
1855
+ "primaryKey": false,
1856
+ "notNull": false,
1857
+ "autoincrement": false
1858
+ },
1859
+ "relation_type": {
1860
+ "name": "relation_type",
1861
+ "type": "text",
1862
+ "primaryKey": false,
1863
+ "notNull": false,
1864
+ "autoincrement": false
1865
+ },
1866
+ "created_at": {
1867
+ "name": "created_at",
1868
+ "type": "text",
1869
+ "primaryKey": false,
1870
+ "notNull": true,
1871
+ "autoincrement": false,
1872
+ "default": "CURRENT_TIMESTAMP"
1873
+ },
1874
+ "updated_at": {
1875
+ "name": "updated_at",
1876
+ "type": "text",
1877
+ "primaryKey": false,
1878
+ "notNull": true,
1879
+ "autoincrement": false,
1880
+ "default": "CURRENT_TIMESTAMP"
1881
+ }
1882
+ },
1883
+ "indexes": {},
1884
+ "foreignKeys": {
1885
+ "sub_agent_relations_graph_fk": {
1886
+ "name": "sub_agent_relations_graph_fk",
1887
+ "tableFrom": "sub_agent_relations",
1888
+ "tableTo": "agent_graph",
1889
+ "columnsFrom": [
1890
+ "tenant_id",
1891
+ "project_id",
1892
+ "graph_id"
1893
+ ],
1894
+ "columnsTo": [
1895
+ "tenant_id",
1896
+ "project_id",
1897
+ "id"
1898
+ ],
1899
+ "onDelete": "cascade",
1900
+ "onUpdate": "no action"
1901
+ }
1902
+ },
1903
+ "compositePrimaryKeys": {
1904
+ "sub_agent_relations_tenant_id_project_id_graph_id_id_pk": {
1905
+ "columns": [
1906
+ "tenant_id",
1907
+ "project_id",
1908
+ "graph_id",
1909
+ "id"
1910
+ ],
1911
+ "name": "sub_agent_relations_tenant_id_project_id_graph_id_id_pk"
1912
+ }
1913
+ },
1914
+ "uniqueConstraints": {},
1915
+ "checkConstraints": {}
1916
+ },
1917
+ "sub_agent_tool_relations": {
1918
+ "name": "sub_agent_tool_relations",
1919
+ "columns": {
1920
+ "tenant_id": {
1921
+ "name": "tenant_id",
1922
+ "type": "text",
1923
+ "primaryKey": false,
1924
+ "notNull": true,
1925
+ "autoincrement": false
1926
+ },
1927
+ "id": {
1928
+ "name": "id",
1929
+ "type": "text",
1930
+ "primaryKey": false,
1931
+ "notNull": true,
1932
+ "autoincrement": false
1933
+ },
1934
+ "project_id": {
1935
+ "name": "project_id",
1936
+ "type": "text",
1937
+ "primaryKey": false,
1938
+ "notNull": true,
1939
+ "autoincrement": false
1940
+ },
1941
+ "graph_id": {
1942
+ "name": "graph_id",
1943
+ "type": "text",
1944
+ "primaryKey": false,
1945
+ "notNull": true,
1946
+ "autoincrement": false
1947
+ },
1948
+ "sub_agent_id": {
1949
+ "name": "sub_agent_id",
1950
+ "type": "text",
1951
+ "primaryKey": false,
1952
+ "notNull": true,
1953
+ "autoincrement": false
1954
+ },
1955
+ "tool_id": {
1956
+ "name": "tool_id",
1957
+ "type": "text",
1958
+ "primaryKey": false,
1959
+ "notNull": true,
1960
+ "autoincrement": false
1961
+ },
1962
+ "selected_tools": {
1963
+ "name": "selected_tools",
1964
+ "type": "blob",
1965
+ "primaryKey": false,
1966
+ "notNull": false,
1967
+ "autoincrement": false
1968
+ },
1969
+ "headers": {
1970
+ "name": "headers",
1971
+ "type": "blob",
1972
+ "primaryKey": false,
1973
+ "notNull": false,
1974
+ "autoincrement": false
1975
+ },
1976
+ "created_at": {
1977
+ "name": "created_at",
1978
+ "type": "text",
1979
+ "primaryKey": false,
1980
+ "notNull": true,
1981
+ "autoincrement": false,
1982
+ "default": "CURRENT_TIMESTAMP"
1983
+ },
1984
+ "updated_at": {
1985
+ "name": "updated_at",
1986
+ "type": "text",
1987
+ "primaryKey": false,
1988
+ "notNull": true,
1989
+ "autoincrement": false,
1990
+ "default": "CURRENT_TIMESTAMP"
1991
+ }
1992
+ },
1993
+ "indexes": {},
1994
+ "foreignKeys": {
1995
+ "sub_agent_tool_relations_agent_fk": {
1996
+ "name": "sub_agent_tool_relations_agent_fk",
1997
+ "tableFrom": "sub_agent_tool_relations",
1998
+ "tableTo": "sub_agents",
1999
+ "columnsFrom": [
2000
+ "tenant_id",
2001
+ "project_id",
2002
+ "graph_id",
2003
+ "sub_agent_id"
2004
+ ],
2005
+ "columnsTo": [
2006
+ "tenant_id",
2007
+ "project_id",
2008
+ "graph_id",
2009
+ "id"
2010
+ ],
2011
+ "onDelete": "cascade",
2012
+ "onUpdate": "no action"
2013
+ },
2014
+ "sub_agent_tool_relations_tool_fk": {
2015
+ "name": "sub_agent_tool_relations_tool_fk",
2016
+ "tableFrom": "sub_agent_tool_relations",
2017
+ "tableTo": "tools",
2018
+ "columnsFrom": [
2019
+ "tenant_id",
2020
+ "project_id",
2021
+ "tool_id"
2022
+ ],
2023
+ "columnsTo": [
2024
+ "tenant_id",
2025
+ "project_id",
2026
+ "id"
2027
+ ],
2028
+ "onDelete": "cascade",
2029
+ "onUpdate": "no action"
2030
+ }
2031
+ },
2032
+ "compositePrimaryKeys": {
2033
+ "sub_agent_tool_relations_tenant_id_project_id_graph_id_id_pk": {
2034
+ "columns": [
2035
+ "tenant_id",
2036
+ "project_id",
2037
+ "graph_id",
2038
+ "id"
2039
+ ],
2040
+ "name": "sub_agent_tool_relations_tenant_id_project_id_graph_id_id_pk"
2041
+ }
2042
+ },
2043
+ "uniqueConstraints": {},
2044
+ "checkConstraints": {}
2045
+ },
2046
+ "sub_agents": {
2047
+ "name": "sub_agents",
2048
+ "columns": {
2049
+ "tenant_id": {
2050
+ "name": "tenant_id",
2051
+ "type": "text",
2052
+ "primaryKey": false,
2053
+ "notNull": true,
2054
+ "autoincrement": false
2055
+ },
2056
+ "id": {
2057
+ "name": "id",
2058
+ "type": "text",
2059
+ "primaryKey": false,
2060
+ "notNull": true,
2061
+ "autoincrement": false
2062
+ },
2063
+ "project_id": {
2064
+ "name": "project_id",
2065
+ "type": "text",
2066
+ "primaryKey": false,
2067
+ "notNull": true,
2068
+ "autoincrement": false
2069
+ },
2070
+ "graph_id": {
2071
+ "name": "graph_id",
2072
+ "type": "text",
2073
+ "primaryKey": false,
2074
+ "notNull": true,
2075
+ "autoincrement": false
2076
+ },
2077
+ "name": {
2078
+ "name": "name",
2079
+ "type": "text",
2080
+ "primaryKey": false,
2081
+ "notNull": true,
2082
+ "autoincrement": false
2083
+ },
2084
+ "description": {
2085
+ "name": "description",
2086
+ "type": "text",
2087
+ "primaryKey": false,
2088
+ "notNull": true,
2089
+ "autoincrement": false
2090
+ },
2091
+ "prompt": {
2092
+ "name": "prompt",
2093
+ "type": "text",
2094
+ "primaryKey": false,
2095
+ "notNull": true,
2096
+ "autoincrement": false
2097
+ },
2098
+ "conversation_history_config": {
2099
+ "name": "conversation_history_config",
2100
+ "type": "text",
2101
+ "primaryKey": false,
2102
+ "notNull": false,
2103
+ "autoincrement": false
2104
+ },
2105
+ "models": {
2106
+ "name": "models",
2107
+ "type": "text",
2108
+ "primaryKey": false,
2109
+ "notNull": false,
2110
+ "autoincrement": false
2111
+ },
2112
+ "stop_when": {
2113
+ "name": "stop_when",
2114
+ "type": "text",
2115
+ "primaryKey": false,
2116
+ "notNull": false,
2117
+ "autoincrement": false
2118
+ },
2119
+ "created_at": {
2120
+ "name": "created_at",
2121
+ "type": "text",
2122
+ "primaryKey": false,
2123
+ "notNull": true,
2124
+ "autoincrement": false,
2125
+ "default": "CURRENT_TIMESTAMP"
2126
+ },
2127
+ "updated_at": {
2128
+ "name": "updated_at",
2129
+ "type": "text",
2130
+ "primaryKey": false,
2131
+ "notNull": true,
2132
+ "autoincrement": false,
2133
+ "default": "CURRENT_TIMESTAMP"
2134
+ }
2135
+ },
2136
+ "indexes": {},
2137
+ "foreignKeys": {
2138
+ "agents_graph_fk": {
2139
+ "name": "agents_graph_fk",
2140
+ "tableFrom": "sub_agents",
2141
+ "tableTo": "agent_graph",
2142
+ "columnsFrom": [
2143
+ "tenant_id",
2144
+ "project_id",
2145
+ "graph_id"
2146
+ ],
2147
+ "columnsTo": [
2148
+ "tenant_id",
2149
+ "project_id",
2150
+ "id"
2151
+ ],
2152
+ "onDelete": "cascade",
2153
+ "onUpdate": "no action"
2154
+ }
2155
+ },
2156
+ "compositePrimaryKeys": {
2157
+ "sub_agents_tenant_id_project_id_graph_id_id_pk": {
2158
+ "columns": [
2159
+ "tenant_id",
2160
+ "project_id",
2161
+ "graph_id",
2162
+ "id"
2163
+ ],
2164
+ "name": "sub_agents_tenant_id_project_id_graph_id_id_pk"
2165
+ }
2166
+ },
2167
+ "uniqueConstraints": {},
2168
+ "checkConstraints": {}
2169
+ },
2170
+ "task_relations": {
2171
+ "name": "task_relations",
2172
+ "columns": {
2173
+ "tenant_id": {
2174
+ "name": "tenant_id",
2175
+ "type": "text",
2176
+ "primaryKey": false,
2177
+ "notNull": true,
2178
+ "autoincrement": false
2179
+ },
2180
+ "id": {
2181
+ "name": "id",
2182
+ "type": "text",
2183
+ "primaryKey": false,
2184
+ "notNull": true,
2185
+ "autoincrement": false
2186
+ },
2187
+ "project_id": {
2188
+ "name": "project_id",
2189
+ "type": "text",
2190
+ "primaryKey": false,
2191
+ "notNull": true,
2192
+ "autoincrement": false
2193
+ },
2194
+ "parent_task_id": {
2195
+ "name": "parent_task_id",
2196
+ "type": "text",
2197
+ "primaryKey": false,
2198
+ "notNull": true,
2199
+ "autoincrement": false
2200
+ },
2201
+ "child_task_id": {
2202
+ "name": "child_task_id",
2203
+ "type": "text",
2204
+ "primaryKey": false,
2205
+ "notNull": true,
2206
+ "autoincrement": false
2207
+ },
2208
+ "relation_type": {
2209
+ "name": "relation_type",
2210
+ "type": "text",
2211
+ "primaryKey": false,
2212
+ "notNull": false,
2213
+ "autoincrement": false,
2214
+ "default": "'parent_child'"
2215
+ },
2216
+ "created_at": {
2217
+ "name": "created_at",
2218
+ "type": "text",
2219
+ "primaryKey": false,
2220
+ "notNull": true,
2221
+ "autoincrement": false,
2222
+ "default": "CURRENT_TIMESTAMP"
2223
+ },
2224
+ "updated_at": {
2225
+ "name": "updated_at",
2226
+ "type": "text",
2227
+ "primaryKey": false,
2228
+ "notNull": true,
2229
+ "autoincrement": false,
2230
+ "default": "CURRENT_TIMESTAMP"
2231
+ }
2232
+ },
2233
+ "indexes": {},
2234
+ "foreignKeys": {
2235
+ "task_relations_project_fk": {
2236
+ "name": "task_relations_project_fk",
2237
+ "tableFrom": "task_relations",
2238
+ "tableTo": "projects",
2239
+ "columnsFrom": [
2240
+ "tenant_id",
2241
+ "project_id"
2242
+ ],
2243
+ "columnsTo": [
2244
+ "tenant_id",
2245
+ "id"
2246
+ ],
2247
+ "onDelete": "cascade",
2248
+ "onUpdate": "no action"
2249
+ }
2250
+ },
2251
+ "compositePrimaryKeys": {
2252
+ "task_relations_tenant_id_project_id_id_pk": {
2253
+ "columns": [
2254
+ "tenant_id",
2255
+ "project_id",
2256
+ "id"
2257
+ ],
2258
+ "name": "task_relations_tenant_id_project_id_id_pk"
2259
+ }
2260
+ },
2261
+ "uniqueConstraints": {},
2262
+ "checkConstraints": {}
2263
+ },
2264
+ "tasks": {
2265
+ "name": "tasks",
2266
+ "columns": {
2267
+ "tenant_id": {
2268
+ "name": "tenant_id",
2269
+ "type": "text",
2270
+ "primaryKey": false,
2271
+ "notNull": true,
2272
+ "autoincrement": false
2273
+ },
2274
+ "id": {
2275
+ "name": "id",
2276
+ "type": "text",
2277
+ "primaryKey": false,
2278
+ "notNull": true,
2279
+ "autoincrement": false
2280
+ },
2281
+ "project_id": {
2282
+ "name": "project_id",
2283
+ "type": "text",
2284
+ "primaryKey": false,
2285
+ "notNull": true,
2286
+ "autoincrement": false
2287
+ },
2288
+ "graph_id": {
2289
+ "name": "graph_id",
2290
+ "type": "text",
2291
+ "primaryKey": false,
2292
+ "notNull": true,
2293
+ "autoincrement": false
2294
+ },
2295
+ "sub_agent_id": {
2296
+ "name": "sub_agent_id",
2297
+ "type": "text",
2298
+ "primaryKey": false,
2299
+ "notNull": true,
2300
+ "autoincrement": false
2301
+ },
2302
+ "context_id": {
2303
+ "name": "context_id",
2304
+ "type": "text",
2305
+ "primaryKey": false,
2306
+ "notNull": true,
2307
+ "autoincrement": false
2308
+ },
2309
+ "status": {
2310
+ "name": "status",
2311
+ "type": "text",
2312
+ "primaryKey": false,
2313
+ "notNull": true,
2314
+ "autoincrement": false
2315
+ },
2316
+ "metadata": {
2317
+ "name": "metadata",
2318
+ "type": "blob",
2319
+ "primaryKey": false,
2320
+ "notNull": false,
2321
+ "autoincrement": false
2322
+ },
2323
+ "created_at": {
2324
+ "name": "created_at",
2325
+ "type": "text",
2326
+ "primaryKey": false,
2327
+ "notNull": true,
2328
+ "autoincrement": false,
2329
+ "default": "CURRENT_TIMESTAMP"
2330
+ },
2331
+ "updated_at": {
2332
+ "name": "updated_at",
2333
+ "type": "text",
2334
+ "primaryKey": false,
2335
+ "notNull": true,
2336
+ "autoincrement": false,
2337
+ "default": "CURRENT_TIMESTAMP"
2338
+ }
2339
+ },
2340
+ "indexes": {},
2341
+ "foreignKeys": {
2342
+ "tasks_sub_agent_fk": {
2343
+ "name": "tasks_sub_agent_fk",
2344
+ "tableFrom": "tasks",
2345
+ "tableTo": "sub_agents",
2346
+ "columnsFrom": [
2347
+ "tenant_id",
2348
+ "project_id",
2349
+ "graph_id",
2350
+ "sub_agent_id"
2351
+ ],
2352
+ "columnsTo": [
2353
+ "tenant_id",
2354
+ "project_id",
2355
+ "graph_id",
2356
+ "id"
2357
+ ],
2358
+ "onDelete": "cascade",
2359
+ "onUpdate": "no action"
2360
+ }
2361
+ },
2362
+ "compositePrimaryKeys": {
2363
+ "tasks_tenant_id_project_id_id_pk": {
2364
+ "columns": [
2365
+ "tenant_id",
2366
+ "project_id",
2367
+ "id"
2368
+ ],
2369
+ "name": "tasks_tenant_id_project_id_id_pk"
2370
+ }
2371
+ },
2372
+ "uniqueConstraints": {},
2373
+ "checkConstraints": {}
2374
+ },
2375
+ "tools": {
2376
+ "name": "tools",
2377
+ "columns": {
2378
+ "tenant_id": {
2379
+ "name": "tenant_id",
2380
+ "type": "text",
2381
+ "primaryKey": false,
2382
+ "notNull": true,
2383
+ "autoincrement": false
2384
+ },
2385
+ "id": {
2386
+ "name": "id",
2387
+ "type": "text",
2388
+ "primaryKey": false,
2389
+ "notNull": true,
2390
+ "autoincrement": false
2391
+ },
2392
+ "project_id": {
2393
+ "name": "project_id",
2394
+ "type": "text",
2395
+ "primaryKey": false,
2396
+ "notNull": true,
2397
+ "autoincrement": false
2398
+ },
2399
+ "name": {
2400
+ "name": "name",
2401
+ "type": "text",
2402
+ "primaryKey": false,
2403
+ "notNull": true,
2404
+ "autoincrement": false
2405
+ },
2406
+ "description": {
2407
+ "name": "description",
2408
+ "type": "text",
2409
+ "primaryKey": false,
2410
+ "notNull": false,
2411
+ "autoincrement": false
2412
+ },
2413
+ "config": {
2414
+ "name": "config",
2415
+ "type": "blob",
2416
+ "primaryKey": false,
2417
+ "notNull": true,
2418
+ "autoincrement": false
2419
+ },
2420
+ "function_id": {
2421
+ "name": "function_id",
2422
+ "type": "text",
2423
+ "primaryKey": false,
2424
+ "notNull": false,
2425
+ "autoincrement": false
2426
+ },
2427
+ "credential_reference_id": {
2428
+ "name": "credential_reference_id",
2429
+ "type": "text",
2430
+ "primaryKey": false,
2431
+ "notNull": false,
2432
+ "autoincrement": false
2433
+ },
2434
+ "headers": {
2435
+ "name": "headers",
2436
+ "type": "blob",
2437
+ "primaryKey": false,
2438
+ "notNull": false,
2439
+ "autoincrement": false
2440
+ },
2441
+ "image_url": {
2442
+ "name": "image_url",
2443
+ "type": "text",
2444
+ "primaryKey": false,
2445
+ "notNull": false,
2446
+ "autoincrement": false
2447
+ },
2448
+ "capabilities": {
2449
+ "name": "capabilities",
2450
+ "type": "blob",
2451
+ "primaryKey": false,
2452
+ "notNull": false,
2453
+ "autoincrement": false
2454
+ },
2455
+ "last_error": {
2456
+ "name": "last_error",
2457
+ "type": "text",
2458
+ "primaryKey": false,
2459
+ "notNull": false,
2460
+ "autoincrement": false
2461
+ },
2462
+ "created_at": {
2463
+ "name": "created_at",
2464
+ "type": "text",
2465
+ "primaryKey": false,
2466
+ "notNull": true,
2467
+ "autoincrement": false,
2468
+ "default": "CURRENT_TIMESTAMP"
2469
+ },
2470
+ "updated_at": {
2471
+ "name": "updated_at",
2472
+ "type": "text",
2473
+ "primaryKey": false,
2474
+ "notNull": true,
2475
+ "autoincrement": false,
2476
+ "default": "CURRENT_TIMESTAMP"
2477
+ }
2478
+ },
2479
+ "indexes": {},
2480
+ "foreignKeys": {
2481
+ "tools_project_fk": {
2482
+ "name": "tools_project_fk",
2483
+ "tableFrom": "tools",
2484
+ "tableTo": "projects",
2485
+ "columnsFrom": [
2486
+ "tenant_id",
2487
+ "project_id"
2488
+ ],
2489
+ "columnsTo": [
2490
+ "tenant_id",
2491
+ "id"
2492
+ ],
2493
+ "onDelete": "cascade",
2494
+ "onUpdate": "no action"
2495
+ },
2496
+ "tools_function_fk": {
2497
+ "name": "tools_function_fk",
2498
+ "tableFrom": "tools",
2499
+ "tableTo": "functions",
2500
+ "columnsFrom": [
2501
+ "tenant_id",
2502
+ "project_id",
2503
+ "function_id"
2504
+ ],
2505
+ "columnsTo": [
2506
+ "tenant_id",
2507
+ "project_id",
2508
+ "id"
2509
+ ],
2510
+ "onDelete": "cascade",
2511
+ "onUpdate": "no action"
2512
+ }
2513
+ },
2514
+ "compositePrimaryKeys": {
2515
+ "tools_tenant_id_project_id_id_pk": {
2516
+ "columns": [
2517
+ "tenant_id",
2518
+ "project_id",
2519
+ "id"
2520
+ ],
2521
+ "name": "tools_tenant_id_project_id_id_pk"
2522
+ }
2523
+ },
2524
+ "uniqueConstraints": {},
2525
+ "checkConstraints": {}
2526
+ }
2527
+ },
2528
+ "views": {},
2529
+ "enums": {},
2530
+ "_meta": {
2531
+ "schemas": {},
2532
+ "tables": {
2533
+ "\"agent_artifact_components\"": "\"sub_agent_artifact_components\"",
2534
+ "\"agent_data_components\"": "\"sub_agent_data_components\"",
2535
+ "\"agent_relations\"": "\"sub_agent_relations\"",
2536
+ "\"agent_tool_relations\"": "\"sub_agent_tool_relations\"",
2537
+ "\"agents\"": "\"sub_agents\""
2538
+ },
2539
+ "columns": {
2540
+ "\"sub_agent_artifact_components\".\"agent_id\"": "\"sub_agent_artifact_components\".\"sub_agent_id\"",
2541
+ "\"sub_agent_data_components\".\"agent_id\"": "\"sub_agent_data_components\".\"sub_agent_id\"",
2542
+ "\"agent_graph\".\"default_agent_id\"": "\"agent_graph\".\"default_sub_agent_id\"",
2543
+ "\"sub_agent_relations\".\"source_agent_id\"": "\"sub_agent_relations\".\"source_sub_agent_id\"",
2544
+ "\"sub_agent_relations\".\"target_agent_id\"": "\"sub_agent_relations\".\"target_sub_agent_id\"",
2545
+ "\"sub_agent_relations\".\"external_agent_id\"": "\"sub_agent_relations\".\"external_sub_agent_id\"",
2546
+ "\"sub_agent_tool_relations\".\"agent_id\"": "\"sub_agent_tool_relations\".\"sub_agent_id\"",
2547
+ "\"conversations\".\"active_agent_id\"": "\"conversations\".\"active_sub_agent_id\"",
2548
+ "\"messages\".\"from_agent_id\"": "\"messages\".\"from_sub_agent_id\"",
2549
+ "\"messages\".\"to_agent_id\"": "\"messages\".\"to_sub_agent_id\"",
2550
+ "\"messages\".\"from_external_agent_id\"": "\"messages\".\"from_external_sub_agent_id\"",
2551
+ "\"messages\".\"to_external_agent_id\"": "\"messages\".\"to_external_sub_agent_id\"",
2552
+ "\"tasks\".\"agent_id\"": "\"tasks\".\"sub_agent_id\""
2553
+ }
2554
+ },
2555
+ "internal": {
2556
+ "indexes": {}
2557
+ }
2558
+ }