@inkeep/agents-core 0.22.0 → 0.22.1

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.
@@ -0,0 +1,2744 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "8dc118b9-6241-41b1-9efc-282aea2d63b2",
5
+ "prevId": "00940e3b-11dd-43fb-8589-a6a8524c5048",
6
+ "tables": {
7
+ "agent": {
8
+ "name": "agent",
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
+ "prompt": {
74
+ "name": "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_project_fk": {
107
+ "name": "agent_project_fk",
108
+ "tableFrom": "agent",
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_tenant_id_project_id_id_pk": {
124
+ "columns": [
125
+ "tenant_id",
126
+ "project_id",
127
+ "id"
128
+ ],
129
+ "name": "agent_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
+ "agent_id": {
160
+ "name": "agent_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_agent_idx": {
234
+ "name": "api_keys_tenant_agent_idx",
235
+ "columns": [
236
+ "tenant_id",
237
+ "agent_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_agent_fk": {
273
+ "name": "api_keys_agent_fk",
274
+ "tableFrom": "api_keys",
275
+ "tableTo": "agent",
276
+ "columnsFrom": [
277
+ "tenant_id",
278
+ "project_id",
279
+ "agent_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
+ "agent_id": {
550
+ "name": "agent_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_agent_fk": {
590
+ "name": "context_configs_agent_fk",
591
+ "tableFrom": "context_configs",
592
+ "tableTo": "agent",
593
+ "columnsFrom": [
594
+ "tenant_id",
595
+ "project_id",
596
+ "agent_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_agent_id_id_pk": {
609
+ "columns": [
610
+ "tenant_id",
611
+ "project_id",
612
+ "agent_id",
613
+ "id"
614
+ ],
615
+ "name": "context_configs_tenant_id_project_id_agent_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
+ "agent_id": {
939
+ "name": "agent_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_agent_fk": {
1000
+ "name": "external_agents_agent_fk",
1001
+ "tableFrom": "external_agents",
1002
+ "tableTo": "agent",
1003
+ "columnsFrom": [
1004
+ "tenant_id",
1005
+ "project_id",
1006
+ "agent_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_agent_id_id_pk": {
1036
+ "columns": [
1037
+ "tenant_id",
1038
+ "project_id",
1039
+ "agent_id",
1040
+ "id"
1041
+ ],
1042
+ "name": "external_agents_tenant_id_project_id_agent_id_id_pk"
1043
+ }
1044
+ },
1045
+ "uniqueConstraints": {},
1046
+ "checkConstraints": {}
1047
+ },
1048
+ "function_tools": {
1049
+ "name": "function_tools",
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
+ "agent_id": {
1073
+ "name": "agent_id",
1074
+ "type": "text",
1075
+ "primaryKey": false,
1076
+ "notNull": true,
1077
+ "autoincrement": false
1078
+ },
1079
+ "name": {
1080
+ "name": "name",
1081
+ "type": "text",
1082
+ "primaryKey": false,
1083
+ "notNull": true,
1084
+ "autoincrement": false
1085
+ },
1086
+ "description": {
1087
+ "name": "description",
1088
+ "type": "text",
1089
+ "primaryKey": false,
1090
+ "notNull": false,
1091
+ "autoincrement": false
1092
+ },
1093
+ "function_id": {
1094
+ "name": "function_id",
1095
+ "type": "text",
1096
+ "primaryKey": false,
1097
+ "notNull": true,
1098
+ "autoincrement": false
1099
+ },
1100
+ "created_at": {
1101
+ "name": "created_at",
1102
+ "type": "text",
1103
+ "primaryKey": false,
1104
+ "notNull": true,
1105
+ "autoincrement": false,
1106
+ "default": "CURRENT_TIMESTAMP"
1107
+ },
1108
+ "updated_at": {
1109
+ "name": "updated_at",
1110
+ "type": "text",
1111
+ "primaryKey": false,
1112
+ "notNull": true,
1113
+ "autoincrement": false,
1114
+ "default": "CURRENT_TIMESTAMP"
1115
+ }
1116
+ },
1117
+ "indexes": {},
1118
+ "foreignKeys": {
1119
+ "function_tools_agent_fk": {
1120
+ "name": "function_tools_agent_fk",
1121
+ "tableFrom": "function_tools",
1122
+ "tableTo": "agent",
1123
+ "columnsFrom": [
1124
+ "tenant_id",
1125
+ "project_id",
1126
+ "agent_id"
1127
+ ],
1128
+ "columnsTo": [
1129
+ "tenant_id",
1130
+ "project_id",
1131
+ "id"
1132
+ ],
1133
+ "onDelete": "cascade",
1134
+ "onUpdate": "no action"
1135
+ },
1136
+ "function_tools_function_fk": {
1137
+ "name": "function_tools_function_fk",
1138
+ "tableFrom": "function_tools",
1139
+ "tableTo": "functions",
1140
+ "columnsFrom": [
1141
+ "tenant_id",
1142
+ "project_id",
1143
+ "function_id"
1144
+ ],
1145
+ "columnsTo": [
1146
+ "tenant_id",
1147
+ "project_id",
1148
+ "id"
1149
+ ],
1150
+ "onDelete": "cascade",
1151
+ "onUpdate": "no action"
1152
+ }
1153
+ },
1154
+ "compositePrimaryKeys": {
1155
+ "function_tools_tenant_id_project_id_agent_id_id_pk": {
1156
+ "columns": [
1157
+ "tenant_id",
1158
+ "project_id",
1159
+ "agent_id",
1160
+ "id"
1161
+ ],
1162
+ "name": "function_tools_tenant_id_project_id_agent_id_id_pk"
1163
+ }
1164
+ },
1165
+ "uniqueConstraints": {},
1166
+ "checkConstraints": {}
1167
+ },
1168
+ "functions": {
1169
+ "name": "functions",
1170
+ "columns": {
1171
+ "tenant_id": {
1172
+ "name": "tenant_id",
1173
+ "type": "text",
1174
+ "primaryKey": false,
1175
+ "notNull": true,
1176
+ "autoincrement": false
1177
+ },
1178
+ "id": {
1179
+ "name": "id",
1180
+ "type": "text",
1181
+ "primaryKey": false,
1182
+ "notNull": true,
1183
+ "autoincrement": false
1184
+ },
1185
+ "project_id": {
1186
+ "name": "project_id",
1187
+ "type": "text",
1188
+ "primaryKey": false,
1189
+ "notNull": true,
1190
+ "autoincrement": false
1191
+ },
1192
+ "input_schema": {
1193
+ "name": "input_schema",
1194
+ "type": "blob",
1195
+ "primaryKey": false,
1196
+ "notNull": false,
1197
+ "autoincrement": false
1198
+ },
1199
+ "execute_code": {
1200
+ "name": "execute_code",
1201
+ "type": "text",
1202
+ "primaryKey": false,
1203
+ "notNull": true,
1204
+ "autoincrement": false
1205
+ },
1206
+ "dependencies": {
1207
+ "name": "dependencies",
1208
+ "type": "blob",
1209
+ "primaryKey": false,
1210
+ "notNull": false,
1211
+ "autoincrement": false
1212
+ },
1213
+ "created_at": {
1214
+ "name": "created_at",
1215
+ "type": "text",
1216
+ "primaryKey": false,
1217
+ "notNull": true,
1218
+ "autoincrement": false,
1219
+ "default": "CURRENT_TIMESTAMP"
1220
+ },
1221
+ "updated_at": {
1222
+ "name": "updated_at",
1223
+ "type": "text",
1224
+ "primaryKey": false,
1225
+ "notNull": true,
1226
+ "autoincrement": false,
1227
+ "default": "CURRENT_TIMESTAMP"
1228
+ }
1229
+ },
1230
+ "indexes": {},
1231
+ "foreignKeys": {
1232
+ "functions_project_fk": {
1233
+ "name": "functions_project_fk",
1234
+ "tableFrom": "functions",
1235
+ "tableTo": "projects",
1236
+ "columnsFrom": [
1237
+ "tenant_id",
1238
+ "project_id"
1239
+ ],
1240
+ "columnsTo": [
1241
+ "tenant_id",
1242
+ "id"
1243
+ ],
1244
+ "onDelete": "cascade",
1245
+ "onUpdate": "no action"
1246
+ }
1247
+ },
1248
+ "compositePrimaryKeys": {
1249
+ "functions_tenant_id_project_id_id_pk": {
1250
+ "columns": [
1251
+ "tenant_id",
1252
+ "project_id",
1253
+ "id"
1254
+ ],
1255
+ "name": "functions_tenant_id_project_id_id_pk"
1256
+ }
1257
+ },
1258
+ "uniqueConstraints": {},
1259
+ "checkConstraints": {}
1260
+ },
1261
+ "ledger_artifacts": {
1262
+ "name": "ledger_artifacts",
1263
+ "columns": {
1264
+ "tenant_id": {
1265
+ "name": "tenant_id",
1266
+ "type": "text",
1267
+ "primaryKey": false,
1268
+ "notNull": true,
1269
+ "autoincrement": false
1270
+ },
1271
+ "id": {
1272
+ "name": "id",
1273
+ "type": "text",
1274
+ "primaryKey": false,
1275
+ "notNull": true,
1276
+ "autoincrement": false
1277
+ },
1278
+ "project_id": {
1279
+ "name": "project_id",
1280
+ "type": "text",
1281
+ "primaryKey": false,
1282
+ "notNull": true,
1283
+ "autoincrement": false
1284
+ },
1285
+ "task_id": {
1286
+ "name": "task_id",
1287
+ "type": "text",
1288
+ "primaryKey": false,
1289
+ "notNull": true,
1290
+ "autoincrement": false
1291
+ },
1292
+ "tool_call_id": {
1293
+ "name": "tool_call_id",
1294
+ "type": "text",
1295
+ "primaryKey": false,
1296
+ "notNull": false,
1297
+ "autoincrement": false
1298
+ },
1299
+ "context_id": {
1300
+ "name": "context_id",
1301
+ "type": "text",
1302
+ "primaryKey": false,
1303
+ "notNull": true,
1304
+ "autoincrement": false
1305
+ },
1306
+ "type": {
1307
+ "name": "type",
1308
+ "type": "text",
1309
+ "primaryKey": false,
1310
+ "notNull": true,
1311
+ "autoincrement": false,
1312
+ "default": "'source'"
1313
+ },
1314
+ "name": {
1315
+ "name": "name",
1316
+ "type": "text",
1317
+ "primaryKey": false,
1318
+ "notNull": false,
1319
+ "autoincrement": false
1320
+ },
1321
+ "description": {
1322
+ "name": "description",
1323
+ "type": "text",
1324
+ "primaryKey": false,
1325
+ "notNull": false,
1326
+ "autoincrement": false
1327
+ },
1328
+ "parts": {
1329
+ "name": "parts",
1330
+ "type": "blob",
1331
+ "primaryKey": false,
1332
+ "notNull": false,
1333
+ "autoincrement": false
1334
+ },
1335
+ "metadata": {
1336
+ "name": "metadata",
1337
+ "type": "blob",
1338
+ "primaryKey": false,
1339
+ "notNull": false,
1340
+ "autoincrement": false
1341
+ },
1342
+ "summary": {
1343
+ "name": "summary",
1344
+ "type": "text",
1345
+ "primaryKey": false,
1346
+ "notNull": false,
1347
+ "autoincrement": false
1348
+ },
1349
+ "mime": {
1350
+ "name": "mime",
1351
+ "type": "blob",
1352
+ "primaryKey": false,
1353
+ "notNull": false,
1354
+ "autoincrement": false
1355
+ },
1356
+ "visibility": {
1357
+ "name": "visibility",
1358
+ "type": "text",
1359
+ "primaryKey": false,
1360
+ "notNull": false,
1361
+ "autoincrement": false,
1362
+ "default": "'context'"
1363
+ },
1364
+ "allowed_agents": {
1365
+ "name": "allowed_agents",
1366
+ "type": "blob",
1367
+ "primaryKey": false,
1368
+ "notNull": false,
1369
+ "autoincrement": false
1370
+ },
1371
+ "derived_from": {
1372
+ "name": "derived_from",
1373
+ "type": "text",
1374
+ "primaryKey": false,
1375
+ "notNull": false,
1376
+ "autoincrement": false
1377
+ },
1378
+ "created_at": {
1379
+ "name": "created_at",
1380
+ "type": "text",
1381
+ "primaryKey": false,
1382
+ "notNull": true,
1383
+ "autoincrement": false,
1384
+ "default": "CURRENT_TIMESTAMP"
1385
+ },
1386
+ "updated_at": {
1387
+ "name": "updated_at",
1388
+ "type": "text",
1389
+ "primaryKey": false,
1390
+ "notNull": true,
1391
+ "autoincrement": false,
1392
+ "default": "CURRENT_TIMESTAMP"
1393
+ }
1394
+ },
1395
+ "indexes": {
1396
+ "ledger_artifacts_task_id_idx": {
1397
+ "name": "ledger_artifacts_task_id_idx",
1398
+ "columns": [
1399
+ "task_id"
1400
+ ],
1401
+ "isUnique": false
1402
+ },
1403
+ "ledger_artifacts_tool_call_id_idx": {
1404
+ "name": "ledger_artifacts_tool_call_id_idx",
1405
+ "columns": [
1406
+ "tool_call_id"
1407
+ ],
1408
+ "isUnique": false
1409
+ },
1410
+ "ledger_artifacts_context_id_idx": {
1411
+ "name": "ledger_artifacts_context_id_idx",
1412
+ "columns": [
1413
+ "context_id"
1414
+ ],
1415
+ "isUnique": false
1416
+ },
1417
+ "ledger_artifacts_task_context_name_unique": {
1418
+ "name": "ledger_artifacts_task_context_name_unique",
1419
+ "columns": [
1420
+ "task_id",
1421
+ "context_id",
1422
+ "name"
1423
+ ],
1424
+ "isUnique": true
1425
+ }
1426
+ },
1427
+ "foreignKeys": {
1428
+ "ledger_artifacts_project_fk": {
1429
+ "name": "ledger_artifacts_project_fk",
1430
+ "tableFrom": "ledger_artifacts",
1431
+ "tableTo": "projects",
1432
+ "columnsFrom": [
1433
+ "tenant_id",
1434
+ "project_id"
1435
+ ],
1436
+ "columnsTo": [
1437
+ "tenant_id",
1438
+ "id"
1439
+ ],
1440
+ "onDelete": "cascade",
1441
+ "onUpdate": "no action"
1442
+ }
1443
+ },
1444
+ "compositePrimaryKeys": {
1445
+ "ledger_artifacts_tenant_id_project_id_id_task_id_pk": {
1446
+ "columns": [
1447
+ "tenant_id",
1448
+ "project_id",
1449
+ "id",
1450
+ "task_id"
1451
+ ],
1452
+ "name": "ledger_artifacts_tenant_id_project_id_id_task_id_pk"
1453
+ }
1454
+ },
1455
+ "uniqueConstraints": {},
1456
+ "checkConstraints": {}
1457
+ },
1458
+ "messages": {
1459
+ "name": "messages",
1460
+ "columns": {
1461
+ "tenant_id": {
1462
+ "name": "tenant_id",
1463
+ "type": "text",
1464
+ "primaryKey": false,
1465
+ "notNull": true,
1466
+ "autoincrement": false
1467
+ },
1468
+ "id": {
1469
+ "name": "id",
1470
+ "type": "text",
1471
+ "primaryKey": false,
1472
+ "notNull": true,
1473
+ "autoincrement": false
1474
+ },
1475
+ "project_id": {
1476
+ "name": "project_id",
1477
+ "type": "text",
1478
+ "primaryKey": false,
1479
+ "notNull": true,
1480
+ "autoincrement": false
1481
+ },
1482
+ "conversation_id": {
1483
+ "name": "conversation_id",
1484
+ "type": "text",
1485
+ "primaryKey": false,
1486
+ "notNull": true,
1487
+ "autoincrement": false
1488
+ },
1489
+ "role": {
1490
+ "name": "role",
1491
+ "type": "text",
1492
+ "primaryKey": false,
1493
+ "notNull": true,
1494
+ "autoincrement": false
1495
+ },
1496
+ "from_sub_agent_id": {
1497
+ "name": "from_sub_agent_id",
1498
+ "type": "text",
1499
+ "primaryKey": false,
1500
+ "notNull": false,
1501
+ "autoincrement": false
1502
+ },
1503
+ "to_sub_agent_id": {
1504
+ "name": "to_sub_agent_id",
1505
+ "type": "text",
1506
+ "primaryKey": false,
1507
+ "notNull": false,
1508
+ "autoincrement": false
1509
+ },
1510
+ "from_external_sub_agent_id": {
1511
+ "name": "from_external_sub_agent_id",
1512
+ "type": "text",
1513
+ "primaryKey": false,
1514
+ "notNull": false,
1515
+ "autoincrement": false
1516
+ },
1517
+ "to_external_sub_agent_id": {
1518
+ "name": "to_external_sub_agent_id",
1519
+ "type": "text",
1520
+ "primaryKey": false,
1521
+ "notNull": false,
1522
+ "autoincrement": false
1523
+ },
1524
+ "content": {
1525
+ "name": "content",
1526
+ "type": "blob",
1527
+ "primaryKey": false,
1528
+ "notNull": true,
1529
+ "autoincrement": false
1530
+ },
1531
+ "visibility": {
1532
+ "name": "visibility",
1533
+ "type": "text",
1534
+ "primaryKey": false,
1535
+ "notNull": true,
1536
+ "autoincrement": false,
1537
+ "default": "'user-facing'"
1538
+ },
1539
+ "message_type": {
1540
+ "name": "message_type",
1541
+ "type": "text",
1542
+ "primaryKey": false,
1543
+ "notNull": true,
1544
+ "autoincrement": false,
1545
+ "default": "'chat'"
1546
+ },
1547
+ "task_id": {
1548
+ "name": "task_id",
1549
+ "type": "text",
1550
+ "primaryKey": false,
1551
+ "notNull": false,
1552
+ "autoincrement": false
1553
+ },
1554
+ "parent_message_id": {
1555
+ "name": "parent_message_id",
1556
+ "type": "text",
1557
+ "primaryKey": false,
1558
+ "notNull": false,
1559
+ "autoincrement": false
1560
+ },
1561
+ "a2a_task_id": {
1562
+ "name": "a2a_task_id",
1563
+ "type": "text",
1564
+ "primaryKey": false,
1565
+ "notNull": false,
1566
+ "autoincrement": false
1567
+ },
1568
+ "a2a_session_id": {
1569
+ "name": "a2a_session_id",
1570
+ "type": "text",
1571
+ "primaryKey": false,
1572
+ "notNull": false,
1573
+ "autoincrement": false
1574
+ },
1575
+ "metadata": {
1576
+ "name": "metadata",
1577
+ "type": "blob",
1578
+ "primaryKey": false,
1579
+ "notNull": false,
1580
+ "autoincrement": false
1581
+ },
1582
+ "created_at": {
1583
+ "name": "created_at",
1584
+ "type": "text",
1585
+ "primaryKey": false,
1586
+ "notNull": true,
1587
+ "autoincrement": false,
1588
+ "default": "CURRENT_TIMESTAMP"
1589
+ },
1590
+ "updated_at": {
1591
+ "name": "updated_at",
1592
+ "type": "text",
1593
+ "primaryKey": false,
1594
+ "notNull": true,
1595
+ "autoincrement": false,
1596
+ "default": "CURRENT_TIMESTAMP"
1597
+ }
1598
+ },
1599
+ "indexes": {},
1600
+ "foreignKeys": {
1601
+ "messages_project_fk": {
1602
+ "name": "messages_project_fk",
1603
+ "tableFrom": "messages",
1604
+ "tableTo": "projects",
1605
+ "columnsFrom": [
1606
+ "tenant_id",
1607
+ "project_id"
1608
+ ],
1609
+ "columnsTo": [
1610
+ "tenant_id",
1611
+ "id"
1612
+ ],
1613
+ "onDelete": "cascade",
1614
+ "onUpdate": "no action"
1615
+ }
1616
+ },
1617
+ "compositePrimaryKeys": {
1618
+ "messages_tenant_id_project_id_id_pk": {
1619
+ "columns": [
1620
+ "tenant_id",
1621
+ "project_id",
1622
+ "id"
1623
+ ],
1624
+ "name": "messages_tenant_id_project_id_id_pk"
1625
+ }
1626
+ },
1627
+ "uniqueConstraints": {},
1628
+ "checkConstraints": {}
1629
+ },
1630
+ "projects": {
1631
+ "name": "projects",
1632
+ "columns": {
1633
+ "tenant_id": {
1634
+ "name": "tenant_id",
1635
+ "type": "text",
1636
+ "primaryKey": false,
1637
+ "notNull": true,
1638
+ "autoincrement": false
1639
+ },
1640
+ "id": {
1641
+ "name": "id",
1642
+ "type": "text",
1643
+ "primaryKey": false,
1644
+ "notNull": true,
1645
+ "autoincrement": false
1646
+ },
1647
+ "name": {
1648
+ "name": "name",
1649
+ "type": "text",
1650
+ "primaryKey": false,
1651
+ "notNull": true,
1652
+ "autoincrement": false
1653
+ },
1654
+ "description": {
1655
+ "name": "description",
1656
+ "type": "text",
1657
+ "primaryKey": false,
1658
+ "notNull": true,
1659
+ "autoincrement": false
1660
+ },
1661
+ "models": {
1662
+ "name": "models",
1663
+ "type": "text",
1664
+ "primaryKey": false,
1665
+ "notNull": false,
1666
+ "autoincrement": false
1667
+ },
1668
+ "stop_when": {
1669
+ "name": "stop_when",
1670
+ "type": "text",
1671
+ "primaryKey": false,
1672
+ "notNull": false,
1673
+ "autoincrement": false
1674
+ },
1675
+ "created_at": {
1676
+ "name": "created_at",
1677
+ "type": "text",
1678
+ "primaryKey": false,
1679
+ "notNull": true,
1680
+ "autoincrement": false,
1681
+ "default": "CURRENT_TIMESTAMP"
1682
+ },
1683
+ "updated_at": {
1684
+ "name": "updated_at",
1685
+ "type": "text",
1686
+ "primaryKey": false,
1687
+ "notNull": true,
1688
+ "autoincrement": false,
1689
+ "default": "CURRENT_TIMESTAMP"
1690
+ }
1691
+ },
1692
+ "indexes": {},
1693
+ "foreignKeys": {},
1694
+ "compositePrimaryKeys": {
1695
+ "projects_tenant_id_id_pk": {
1696
+ "columns": [
1697
+ "tenant_id",
1698
+ "id"
1699
+ ],
1700
+ "name": "projects_tenant_id_id_pk"
1701
+ }
1702
+ },
1703
+ "uniqueConstraints": {},
1704
+ "checkConstraints": {}
1705
+ },
1706
+ "sub_agent_artifact_components": {
1707
+ "name": "sub_agent_artifact_components",
1708
+ "columns": {
1709
+ "tenant_id": {
1710
+ "name": "tenant_id",
1711
+ "type": "text",
1712
+ "primaryKey": false,
1713
+ "notNull": true,
1714
+ "autoincrement": false
1715
+ },
1716
+ "id": {
1717
+ "name": "id",
1718
+ "type": "text",
1719
+ "primaryKey": false,
1720
+ "notNull": true,
1721
+ "autoincrement": false
1722
+ },
1723
+ "project_id": {
1724
+ "name": "project_id",
1725
+ "type": "text",
1726
+ "primaryKey": false,
1727
+ "notNull": true,
1728
+ "autoincrement": false
1729
+ },
1730
+ "agent_id": {
1731
+ "name": "agent_id",
1732
+ "type": "text",
1733
+ "primaryKey": false,
1734
+ "notNull": true,
1735
+ "autoincrement": false
1736
+ },
1737
+ "sub_agent_id": {
1738
+ "name": "sub_agent_id",
1739
+ "type": "text",
1740
+ "primaryKey": false,
1741
+ "notNull": true,
1742
+ "autoincrement": false
1743
+ },
1744
+ "artifact_component_id": {
1745
+ "name": "artifact_component_id",
1746
+ "type": "text",
1747
+ "primaryKey": false,
1748
+ "notNull": true,
1749
+ "autoincrement": false
1750
+ },
1751
+ "created_at": {
1752
+ "name": "created_at",
1753
+ "type": "text",
1754
+ "primaryKey": false,
1755
+ "notNull": true,
1756
+ "autoincrement": false,
1757
+ "default": "CURRENT_TIMESTAMP"
1758
+ }
1759
+ },
1760
+ "indexes": {},
1761
+ "foreignKeys": {
1762
+ "sub_agent_artifact_components_sub_agent_fk": {
1763
+ "name": "sub_agent_artifact_components_sub_agent_fk",
1764
+ "tableFrom": "sub_agent_artifact_components",
1765
+ "tableTo": "sub_agents",
1766
+ "columnsFrom": [
1767
+ "tenant_id",
1768
+ "project_id",
1769
+ "agent_id",
1770
+ "sub_agent_id"
1771
+ ],
1772
+ "columnsTo": [
1773
+ "tenant_id",
1774
+ "project_id",
1775
+ "agent_id",
1776
+ "id"
1777
+ ],
1778
+ "onDelete": "cascade",
1779
+ "onUpdate": "no action"
1780
+ },
1781
+ "sub_agent_artifact_components_artifact_component_fk": {
1782
+ "name": "sub_agent_artifact_components_artifact_component_fk",
1783
+ "tableFrom": "sub_agent_artifact_components",
1784
+ "tableTo": "artifact_components",
1785
+ "columnsFrom": [
1786
+ "tenant_id",
1787
+ "project_id",
1788
+ "artifact_component_id"
1789
+ ],
1790
+ "columnsTo": [
1791
+ "tenant_id",
1792
+ "project_id",
1793
+ "id"
1794
+ ],
1795
+ "onDelete": "cascade",
1796
+ "onUpdate": "no action"
1797
+ }
1798
+ },
1799
+ "compositePrimaryKeys": {
1800
+ "sub_agent_artifact_components_tenant_id_project_id_agent_id_sub_agent_id_id_pk": {
1801
+ "columns": [
1802
+ "tenant_id",
1803
+ "project_id",
1804
+ "agent_id",
1805
+ "sub_agent_id",
1806
+ "id"
1807
+ ],
1808
+ "name": "sub_agent_artifact_components_tenant_id_project_id_agent_id_sub_agent_id_id_pk"
1809
+ }
1810
+ },
1811
+ "uniqueConstraints": {},
1812
+ "checkConstraints": {}
1813
+ },
1814
+ "sub_agent_data_components": {
1815
+ "name": "sub_agent_data_components",
1816
+ "columns": {
1817
+ "tenant_id": {
1818
+ "name": "tenant_id",
1819
+ "type": "text",
1820
+ "primaryKey": false,
1821
+ "notNull": true,
1822
+ "autoincrement": false
1823
+ },
1824
+ "id": {
1825
+ "name": "id",
1826
+ "type": "text",
1827
+ "primaryKey": false,
1828
+ "notNull": true,
1829
+ "autoincrement": false
1830
+ },
1831
+ "project_id": {
1832
+ "name": "project_id",
1833
+ "type": "text",
1834
+ "primaryKey": false,
1835
+ "notNull": true,
1836
+ "autoincrement": false
1837
+ },
1838
+ "agent_id": {
1839
+ "name": "agent_id",
1840
+ "type": "text",
1841
+ "primaryKey": false,
1842
+ "notNull": true,
1843
+ "autoincrement": false
1844
+ },
1845
+ "sub_agent_id": {
1846
+ "name": "sub_agent_id",
1847
+ "type": "text",
1848
+ "primaryKey": false,
1849
+ "notNull": true,
1850
+ "autoincrement": false
1851
+ },
1852
+ "data_component_id": {
1853
+ "name": "data_component_id",
1854
+ "type": "text",
1855
+ "primaryKey": false,
1856
+ "notNull": true,
1857
+ "autoincrement": false
1858
+ },
1859
+ "created_at": {
1860
+ "name": "created_at",
1861
+ "type": "text",
1862
+ "primaryKey": false,
1863
+ "notNull": true,
1864
+ "autoincrement": false,
1865
+ "default": "CURRENT_TIMESTAMP"
1866
+ }
1867
+ },
1868
+ "indexes": {},
1869
+ "foreignKeys": {
1870
+ "sub_agent_data_components_sub_agent_fk": {
1871
+ "name": "sub_agent_data_components_sub_agent_fk",
1872
+ "tableFrom": "sub_agent_data_components",
1873
+ "tableTo": "sub_agents",
1874
+ "columnsFrom": [
1875
+ "tenant_id",
1876
+ "project_id",
1877
+ "agent_id",
1878
+ "sub_agent_id"
1879
+ ],
1880
+ "columnsTo": [
1881
+ "tenant_id",
1882
+ "project_id",
1883
+ "agent_id",
1884
+ "id"
1885
+ ],
1886
+ "onDelete": "cascade",
1887
+ "onUpdate": "no action"
1888
+ },
1889
+ "sub_agent_data_components_data_component_fk": {
1890
+ "name": "sub_agent_data_components_data_component_fk",
1891
+ "tableFrom": "sub_agent_data_components",
1892
+ "tableTo": "data_components",
1893
+ "columnsFrom": [
1894
+ "tenant_id",
1895
+ "project_id",
1896
+ "data_component_id"
1897
+ ],
1898
+ "columnsTo": [
1899
+ "tenant_id",
1900
+ "project_id",
1901
+ "id"
1902
+ ],
1903
+ "onDelete": "cascade",
1904
+ "onUpdate": "no action"
1905
+ }
1906
+ },
1907
+ "compositePrimaryKeys": {
1908
+ "sub_agent_data_components_tenant_id_project_id_id_pk": {
1909
+ "columns": [
1910
+ "tenant_id",
1911
+ "project_id",
1912
+ "id"
1913
+ ],
1914
+ "name": "sub_agent_data_components_tenant_id_project_id_id_pk"
1915
+ }
1916
+ },
1917
+ "uniqueConstraints": {},
1918
+ "checkConstraints": {}
1919
+ },
1920
+ "sub_agent_function_tool_relations": {
1921
+ "name": "sub_agent_function_tool_relations",
1922
+ "columns": {
1923
+ "tenant_id": {
1924
+ "name": "tenant_id",
1925
+ "type": "text",
1926
+ "primaryKey": false,
1927
+ "notNull": true,
1928
+ "autoincrement": false
1929
+ },
1930
+ "id": {
1931
+ "name": "id",
1932
+ "type": "text",
1933
+ "primaryKey": false,
1934
+ "notNull": true,
1935
+ "autoincrement": false
1936
+ },
1937
+ "project_id": {
1938
+ "name": "project_id",
1939
+ "type": "text",
1940
+ "primaryKey": false,
1941
+ "notNull": true,
1942
+ "autoincrement": false
1943
+ },
1944
+ "agent_id": {
1945
+ "name": "agent_id",
1946
+ "type": "text",
1947
+ "primaryKey": false,
1948
+ "notNull": true,
1949
+ "autoincrement": false
1950
+ },
1951
+ "sub_agent_id": {
1952
+ "name": "sub_agent_id",
1953
+ "type": "text",
1954
+ "primaryKey": false,
1955
+ "notNull": true,
1956
+ "autoincrement": false
1957
+ },
1958
+ "function_tool_id": {
1959
+ "name": "function_tool_id",
1960
+ "type": "text",
1961
+ "primaryKey": false,
1962
+ "notNull": true,
1963
+ "autoincrement": false
1964
+ },
1965
+ "created_at": {
1966
+ "name": "created_at",
1967
+ "type": "text",
1968
+ "primaryKey": false,
1969
+ "notNull": true,
1970
+ "autoincrement": false,
1971
+ "default": "CURRENT_TIMESTAMP"
1972
+ },
1973
+ "updated_at": {
1974
+ "name": "updated_at",
1975
+ "type": "text",
1976
+ "primaryKey": false,
1977
+ "notNull": true,
1978
+ "autoincrement": false,
1979
+ "default": "CURRENT_TIMESTAMP"
1980
+ }
1981
+ },
1982
+ "indexes": {},
1983
+ "foreignKeys": {
1984
+ "sub_agent_function_tool_relations_sub_agent_fk": {
1985
+ "name": "sub_agent_function_tool_relations_sub_agent_fk",
1986
+ "tableFrom": "sub_agent_function_tool_relations",
1987
+ "tableTo": "sub_agents",
1988
+ "columnsFrom": [
1989
+ "tenant_id",
1990
+ "project_id",
1991
+ "agent_id",
1992
+ "sub_agent_id"
1993
+ ],
1994
+ "columnsTo": [
1995
+ "tenant_id",
1996
+ "project_id",
1997
+ "agent_id",
1998
+ "id"
1999
+ ],
2000
+ "onDelete": "cascade",
2001
+ "onUpdate": "no action"
2002
+ },
2003
+ "sub_agent_function_tool_relations_function_tool_fk": {
2004
+ "name": "sub_agent_function_tool_relations_function_tool_fk",
2005
+ "tableFrom": "sub_agent_function_tool_relations",
2006
+ "tableTo": "function_tools",
2007
+ "columnsFrom": [
2008
+ "tenant_id",
2009
+ "project_id",
2010
+ "agent_id",
2011
+ "function_tool_id"
2012
+ ],
2013
+ "columnsTo": [
2014
+ "tenant_id",
2015
+ "project_id",
2016
+ "agent_id",
2017
+ "id"
2018
+ ],
2019
+ "onDelete": "cascade",
2020
+ "onUpdate": "no action"
2021
+ }
2022
+ },
2023
+ "compositePrimaryKeys": {
2024
+ "sub_agent_function_tool_relations_tenant_id_project_id_agent_id_id_pk": {
2025
+ "columns": [
2026
+ "tenant_id",
2027
+ "project_id",
2028
+ "agent_id",
2029
+ "id"
2030
+ ],
2031
+ "name": "sub_agent_function_tool_relations_tenant_id_project_id_agent_id_id_pk"
2032
+ }
2033
+ },
2034
+ "uniqueConstraints": {},
2035
+ "checkConstraints": {}
2036
+ },
2037
+ "sub_agent_relations": {
2038
+ "name": "sub_agent_relations",
2039
+ "columns": {
2040
+ "tenant_id": {
2041
+ "name": "tenant_id",
2042
+ "type": "text",
2043
+ "primaryKey": false,
2044
+ "notNull": true,
2045
+ "autoincrement": false
2046
+ },
2047
+ "id": {
2048
+ "name": "id",
2049
+ "type": "text",
2050
+ "primaryKey": false,
2051
+ "notNull": true,
2052
+ "autoincrement": false
2053
+ },
2054
+ "project_id": {
2055
+ "name": "project_id",
2056
+ "type": "text",
2057
+ "primaryKey": false,
2058
+ "notNull": true,
2059
+ "autoincrement": false
2060
+ },
2061
+ "agent_id": {
2062
+ "name": "agent_id",
2063
+ "type": "text",
2064
+ "primaryKey": false,
2065
+ "notNull": true,
2066
+ "autoincrement": false
2067
+ },
2068
+ "source_sub_agent_id": {
2069
+ "name": "source_sub_agent_id",
2070
+ "type": "text",
2071
+ "primaryKey": false,
2072
+ "notNull": true,
2073
+ "autoincrement": false
2074
+ },
2075
+ "target_sub_agent_id": {
2076
+ "name": "target_sub_agent_id",
2077
+ "type": "text",
2078
+ "primaryKey": false,
2079
+ "notNull": false,
2080
+ "autoincrement": false
2081
+ },
2082
+ "external_sub_agent_id": {
2083
+ "name": "external_sub_agent_id",
2084
+ "type": "text",
2085
+ "primaryKey": false,
2086
+ "notNull": false,
2087
+ "autoincrement": false
2088
+ },
2089
+ "relation_type": {
2090
+ "name": "relation_type",
2091
+ "type": "text",
2092
+ "primaryKey": false,
2093
+ "notNull": false,
2094
+ "autoincrement": false
2095
+ },
2096
+ "created_at": {
2097
+ "name": "created_at",
2098
+ "type": "text",
2099
+ "primaryKey": false,
2100
+ "notNull": true,
2101
+ "autoincrement": false,
2102
+ "default": "CURRENT_TIMESTAMP"
2103
+ },
2104
+ "updated_at": {
2105
+ "name": "updated_at",
2106
+ "type": "text",
2107
+ "primaryKey": false,
2108
+ "notNull": true,
2109
+ "autoincrement": false,
2110
+ "default": "CURRENT_TIMESTAMP"
2111
+ }
2112
+ },
2113
+ "indexes": {},
2114
+ "foreignKeys": {
2115
+ "sub_agent_relations_agent_fk": {
2116
+ "name": "sub_agent_relations_agent_fk",
2117
+ "tableFrom": "sub_agent_relations",
2118
+ "tableTo": "agent",
2119
+ "columnsFrom": [
2120
+ "tenant_id",
2121
+ "project_id",
2122
+ "agent_id"
2123
+ ],
2124
+ "columnsTo": [
2125
+ "tenant_id",
2126
+ "project_id",
2127
+ "id"
2128
+ ],
2129
+ "onDelete": "cascade",
2130
+ "onUpdate": "no action"
2131
+ }
2132
+ },
2133
+ "compositePrimaryKeys": {
2134
+ "sub_agent_relations_tenant_id_project_id_agent_id_id_pk": {
2135
+ "columns": [
2136
+ "tenant_id",
2137
+ "project_id",
2138
+ "agent_id",
2139
+ "id"
2140
+ ],
2141
+ "name": "sub_agent_relations_tenant_id_project_id_agent_id_id_pk"
2142
+ }
2143
+ },
2144
+ "uniqueConstraints": {},
2145
+ "checkConstraints": {}
2146
+ },
2147
+ "sub_agent_tool_relations": {
2148
+ "name": "sub_agent_tool_relations",
2149
+ "columns": {
2150
+ "tenant_id": {
2151
+ "name": "tenant_id",
2152
+ "type": "text",
2153
+ "primaryKey": false,
2154
+ "notNull": true,
2155
+ "autoincrement": false
2156
+ },
2157
+ "id": {
2158
+ "name": "id",
2159
+ "type": "text",
2160
+ "primaryKey": false,
2161
+ "notNull": true,
2162
+ "autoincrement": false
2163
+ },
2164
+ "project_id": {
2165
+ "name": "project_id",
2166
+ "type": "text",
2167
+ "primaryKey": false,
2168
+ "notNull": true,
2169
+ "autoincrement": false
2170
+ },
2171
+ "agent_id": {
2172
+ "name": "agent_id",
2173
+ "type": "text",
2174
+ "primaryKey": false,
2175
+ "notNull": true,
2176
+ "autoincrement": false
2177
+ },
2178
+ "sub_agent_id": {
2179
+ "name": "sub_agent_id",
2180
+ "type": "text",
2181
+ "primaryKey": false,
2182
+ "notNull": true,
2183
+ "autoincrement": false
2184
+ },
2185
+ "tool_id": {
2186
+ "name": "tool_id",
2187
+ "type": "text",
2188
+ "primaryKey": false,
2189
+ "notNull": true,
2190
+ "autoincrement": false
2191
+ },
2192
+ "selected_tools": {
2193
+ "name": "selected_tools",
2194
+ "type": "blob",
2195
+ "primaryKey": false,
2196
+ "notNull": false,
2197
+ "autoincrement": false
2198
+ },
2199
+ "headers": {
2200
+ "name": "headers",
2201
+ "type": "blob",
2202
+ "primaryKey": false,
2203
+ "notNull": false,
2204
+ "autoincrement": false
2205
+ },
2206
+ "created_at": {
2207
+ "name": "created_at",
2208
+ "type": "text",
2209
+ "primaryKey": false,
2210
+ "notNull": true,
2211
+ "autoincrement": false,
2212
+ "default": "CURRENT_TIMESTAMP"
2213
+ },
2214
+ "updated_at": {
2215
+ "name": "updated_at",
2216
+ "type": "text",
2217
+ "primaryKey": false,
2218
+ "notNull": true,
2219
+ "autoincrement": false,
2220
+ "default": "CURRENT_TIMESTAMP"
2221
+ }
2222
+ },
2223
+ "indexes": {},
2224
+ "foreignKeys": {
2225
+ "sub_agent_tool_relations_agent_fk": {
2226
+ "name": "sub_agent_tool_relations_agent_fk",
2227
+ "tableFrom": "sub_agent_tool_relations",
2228
+ "tableTo": "sub_agents",
2229
+ "columnsFrom": [
2230
+ "tenant_id",
2231
+ "project_id",
2232
+ "agent_id",
2233
+ "sub_agent_id"
2234
+ ],
2235
+ "columnsTo": [
2236
+ "tenant_id",
2237
+ "project_id",
2238
+ "agent_id",
2239
+ "id"
2240
+ ],
2241
+ "onDelete": "cascade",
2242
+ "onUpdate": "no action"
2243
+ },
2244
+ "sub_agent_tool_relations_tool_fk": {
2245
+ "name": "sub_agent_tool_relations_tool_fk",
2246
+ "tableFrom": "sub_agent_tool_relations",
2247
+ "tableTo": "tools",
2248
+ "columnsFrom": [
2249
+ "tenant_id",
2250
+ "project_id",
2251
+ "tool_id"
2252
+ ],
2253
+ "columnsTo": [
2254
+ "tenant_id",
2255
+ "project_id",
2256
+ "id"
2257
+ ],
2258
+ "onDelete": "cascade",
2259
+ "onUpdate": "no action"
2260
+ }
2261
+ },
2262
+ "compositePrimaryKeys": {
2263
+ "sub_agent_tool_relations_tenant_id_project_id_agent_id_id_pk": {
2264
+ "columns": [
2265
+ "tenant_id",
2266
+ "project_id",
2267
+ "agent_id",
2268
+ "id"
2269
+ ],
2270
+ "name": "sub_agent_tool_relations_tenant_id_project_id_agent_id_id_pk"
2271
+ }
2272
+ },
2273
+ "uniqueConstraints": {},
2274
+ "checkConstraints": {}
2275
+ },
2276
+ "sub_agents": {
2277
+ "name": "sub_agents",
2278
+ "columns": {
2279
+ "tenant_id": {
2280
+ "name": "tenant_id",
2281
+ "type": "text",
2282
+ "primaryKey": false,
2283
+ "notNull": true,
2284
+ "autoincrement": false
2285
+ },
2286
+ "id": {
2287
+ "name": "id",
2288
+ "type": "text",
2289
+ "primaryKey": false,
2290
+ "notNull": true,
2291
+ "autoincrement": false
2292
+ },
2293
+ "project_id": {
2294
+ "name": "project_id",
2295
+ "type": "text",
2296
+ "primaryKey": false,
2297
+ "notNull": true,
2298
+ "autoincrement": false
2299
+ },
2300
+ "agent_id": {
2301
+ "name": "agent_id",
2302
+ "type": "text",
2303
+ "primaryKey": false,
2304
+ "notNull": true,
2305
+ "autoincrement": false
2306
+ },
2307
+ "name": {
2308
+ "name": "name",
2309
+ "type": "text",
2310
+ "primaryKey": false,
2311
+ "notNull": true,
2312
+ "autoincrement": false
2313
+ },
2314
+ "description": {
2315
+ "name": "description",
2316
+ "type": "text",
2317
+ "primaryKey": false,
2318
+ "notNull": true,
2319
+ "autoincrement": false
2320
+ },
2321
+ "prompt": {
2322
+ "name": "prompt",
2323
+ "type": "text",
2324
+ "primaryKey": false,
2325
+ "notNull": true,
2326
+ "autoincrement": false
2327
+ },
2328
+ "conversation_history_config": {
2329
+ "name": "conversation_history_config",
2330
+ "type": "text",
2331
+ "primaryKey": false,
2332
+ "notNull": false,
2333
+ "autoincrement": false
2334
+ },
2335
+ "models": {
2336
+ "name": "models",
2337
+ "type": "text",
2338
+ "primaryKey": false,
2339
+ "notNull": false,
2340
+ "autoincrement": false
2341
+ },
2342
+ "stop_when": {
2343
+ "name": "stop_when",
2344
+ "type": "text",
2345
+ "primaryKey": false,
2346
+ "notNull": false,
2347
+ "autoincrement": false
2348
+ },
2349
+ "created_at": {
2350
+ "name": "created_at",
2351
+ "type": "text",
2352
+ "primaryKey": false,
2353
+ "notNull": true,
2354
+ "autoincrement": false,
2355
+ "default": "CURRENT_TIMESTAMP"
2356
+ },
2357
+ "updated_at": {
2358
+ "name": "updated_at",
2359
+ "type": "text",
2360
+ "primaryKey": false,
2361
+ "notNull": true,
2362
+ "autoincrement": false,
2363
+ "default": "CURRENT_TIMESTAMP"
2364
+ }
2365
+ },
2366
+ "indexes": {},
2367
+ "foreignKeys": {
2368
+ "sub_agents_agents_fk": {
2369
+ "name": "sub_agents_agents_fk",
2370
+ "tableFrom": "sub_agents",
2371
+ "tableTo": "agent",
2372
+ "columnsFrom": [
2373
+ "tenant_id",
2374
+ "project_id",
2375
+ "agent_id"
2376
+ ],
2377
+ "columnsTo": [
2378
+ "tenant_id",
2379
+ "project_id",
2380
+ "id"
2381
+ ],
2382
+ "onDelete": "cascade",
2383
+ "onUpdate": "no action"
2384
+ }
2385
+ },
2386
+ "compositePrimaryKeys": {
2387
+ "sub_agents_tenant_id_project_id_agent_id_id_pk": {
2388
+ "columns": [
2389
+ "tenant_id",
2390
+ "project_id",
2391
+ "agent_id",
2392
+ "id"
2393
+ ],
2394
+ "name": "sub_agents_tenant_id_project_id_agent_id_id_pk"
2395
+ }
2396
+ },
2397
+ "uniqueConstraints": {},
2398
+ "checkConstraints": {}
2399
+ },
2400
+ "task_relations": {
2401
+ "name": "task_relations",
2402
+ "columns": {
2403
+ "tenant_id": {
2404
+ "name": "tenant_id",
2405
+ "type": "text",
2406
+ "primaryKey": false,
2407
+ "notNull": true,
2408
+ "autoincrement": false
2409
+ },
2410
+ "id": {
2411
+ "name": "id",
2412
+ "type": "text",
2413
+ "primaryKey": false,
2414
+ "notNull": true,
2415
+ "autoincrement": false
2416
+ },
2417
+ "project_id": {
2418
+ "name": "project_id",
2419
+ "type": "text",
2420
+ "primaryKey": false,
2421
+ "notNull": true,
2422
+ "autoincrement": false
2423
+ },
2424
+ "parent_task_id": {
2425
+ "name": "parent_task_id",
2426
+ "type": "text",
2427
+ "primaryKey": false,
2428
+ "notNull": true,
2429
+ "autoincrement": false
2430
+ },
2431
+ "child_task_id": {
2432
+ "name": "child_task_id",
2433
+ "type": "text",
2434
+ "primaryKey": false,
2435
+ "notNull": true,
2436
+ "autoincrement": false
2437
+ },
2438
+ "relation_type": {
2439
+ "name": "relation_type",
2440
+ "type": "text",
2441
+ "primaryKey": false,
2442
+ "notNull": false,
2443
+ "autoincrement": false,
2444
+ "default": "'parent_child'"
2445
+ },
2446
+ "created_at": {
2447
+ "name": "created_at",
2448
+ "type": "text",
2449
+ "primaryKey": false,
2450
+ "notNull": true,
2451
+ "autoincrement": false,
2452
+ "default": "CURRENT_TIMESTAMP"
2453
+ },
2454
+ "updated_at": {
2455
+ "name": "updated_at",
2456
+ "type": "text",
2457
+ "primaryKey": false,
2458
+ "notNull": true,
2459
+ "autoincrement": false,
2460
+ "default": "CURRENT_TIMESTAMP"
2461
+ }
2462
+ },
2463
+ "indexes": {},
2464
+ "foreignKeys": {
2465
+ "task_relations_project_fk": {
2466
+ "name": "task_relations_project_fk",
2467
+ "tableFrom": "task_relations",
2468
+ "tableTo": "projects",
2469
+ "columnsFrom": [
2470
+ "tenant_id",
2471
+ "project_id"
2472
+ ],
2473
+ "columnsTo": [
2474
+ "tenant_id",
2475
+ "id"
2476
+ ],
2477
+ "onDelete": "cascade",
2478
+ "onUpdate": "no action"
2479
+ }
2480
+ },
2481
+ "compositePrimaryKeys": {
2482
+ "task_relations_tenant_id_project_id_id_pk": {
2483
+ "columns": [
2484
+ "tenant_id",
2485
+ "project_id",
2486
+ "id"
2487
+ ],
2488
+ "name": "task_relations_tenant_id_project_id_id_pk"
2489
+ }
2490
+ },
2491
+ "uniqueConstraints": {},
2492
+ "checkConstraints": {}
2493
+ },
2494
+ "tasks": {
2495
+ "name": "tasks",
2496
+ "columns": {
2497
+ "tenant_id": {
2498
+ "name": "tenant_id",
2499
+ "type": "text",
2500
+ "primaryKey": false,
2501
+ "notNull": true,
2502
+ "autoincrement": false
2503
+ },
2504
+ "id": {
2505
+ "name": "id",
2506
+ "type": "text",
2507
+ "primaryKey": false,
2508
+ "notNull": true,
2509
+ "autoincrement": false
2510
+ },
2511
+ "project_id": {
2512
+ "name": "project_id",
2513
+ "type": "text",
2514
+ "primaryKey": false,
2515
+ "notNull": true,
2516
+ "autoincrement": false
2517
+ },
2518
+ "agent_id": {
2519
+ "name": "agent_id",
2520
+ "type": "text",
2521
+ "primaryKey": false,
2522
+ "notNull": true,
2523
+ "autoincrement": false
2524
+ },
2525
+ "sub_agent_id": {
2526
+ "name": "sub_agent_id",
2527
+ "type": "text",
2528
+ "primaryKey": false,
2529
+ "notNull": true,
2530
+ "autoincrement": false
2531
+ },
2532
+ "context_id": {
2533
+ "name": "context_id",
2534
+ "type": "text",
2535
+ "primaryKey": false,
2536
+ "notNull": true,
2537
+ "autoincrement": false
2538
+ },
2539
+ "status": {
2540
+ "name": "status",
2541
+ "type": "text",
2542
+ "primaryKey": false,
2543
+ "notNull": true,
2544
+ "autoincrement": false
2545
+ },
2546
+ "metadata": {
2547
+ "name": "metadata",
2548
+ "type": "blob",
2549
+ "primaryKey": false,
2550
+ "notNull": false,
2551
+ "autoincrement": false
2552
+ },
2553
+ "created_at": {
2554
+ "name": "created_at",
2555
+ "type": "text",
2556
+ "primaryKey": false,
2557
+ "notNull": true,
2558
+ "autoincrement": false,
2559
+ "default": "CURRENT_TIMESTAMP"
2560
+ },
2561
+ "updated_at": {
2562
+ "name": "updated_at",
2563
+ "type": "text",
2564
+ "primaryKey": false,
2565
+ "notNull": true,
2566
+ "autoincrement": false,
2567
+ "default": "CURRENT_TIMESTAMP"
2568
+ }
2569
+ },
2570
+ "indexes": {},
2571
+ "foreignKeys": {
2572
+ "tasks_sub_agent_fk": {
2573
+ "name": "tasks_sub_agent_fk",
2574
+ "tableFrom": "tasks",
2575
+ "tableTo": "sub_agents",
2576
+ "columnsFrom": [
2577
+ "tenant_id",
2578
+ "project_id",
2579
+ "agent_id",
2580
+ "sub_agent_id"
2581
+ ],
2582
+ "columnsTo": [
2583
+ "tenant_id",
2584
+ "project_id",
2585
+ "agent_id",
2586
+ "id"
2587
+ ],
2588
+ "onDelete": "cascade",
2589
+ "onUpdate": "no action"
2590
+ }
2591
+ },
2592
+ "compositePrimaryKeys": {
2593
+ "tasks_tenant_id_project_id_id_pk": {
2594
+ "columns": [
2595
+ "tenant_id",
2596
+ "project_id",
2597
+ "id"
2598
+ ],
2599
+ "name": "tasks_tenant_id_project_id_id_pk"
2600
+ }
2601
+ },
2602
+ "uniqueConstraints": {},
2603
+ "checkConstraints": {}
2604
+ },
2605
+ "tools": {
2606
+ "name": "tools",
2607
+ "columns": {
2608
+ "tenant_id": {
2609
+ "name": "tenant_id",
2610
+ "type": "text",
2611
+ "primaryKey": false,
2612
+ "notNull": true,
2613
+ "autoincrement": false
2614
+ },
2615
+ "id": {
2616
+ "name": "id",
2617
+ "type": "text",
2618
+ "primaryKey": false,
2619
+ "notNull": true,
2620
+ "autoincrement": false
2621
+ },
2622
+ "project_id": {
2623
+ "name": "project_id",
2624
+ "type": "text",
2625
+ "primaryKey": false,
2626
+ "notNull": true,
2627
+ "autoincrement": false
2628
+ },
2629
+ "name": {
2630
+ "name": "name",
2631
+ "type": "text",
2632
+ "primaryKey": false,
2633
+ "notNull": true,
2634
+ "autoincrement": false
2635
+ },
2636
+ "description": {
2637
+ "name": "description",
2638
+ "type": "text",
2639
+ "primaryKey": false,
2640
+ "notNull": false,
2641
+ "autoincrement": false
2642
+ },
2643
+ "config": {
2644
+ "name": "config",
2645
+ "type": "blob",
2646
+ "primaryKey": false,
2647
+ "notNull": true,
2648
+ "autoincrement": false
2649
+ },
2650
+ "credential_reference_id": {
2651
+ "name": "credential_reference_id",
2652
+ "type": "text",
2653
+ "primaryKey": false,
2654
+ "notNull": false,
2655
+ "autoincrement": false
2656
+ },
2657
+ "headers": {
2658
+ "name": "headers",
2659
+ "type": "blob",
2660
+ "primaryKey": false,
2661
+ "notNull": false,
2662
+ "autoincrement": false
2663
+ },
2664
+ "image_url": {
2665
+ "name": "image_url",
2666
+ "type": "text",
2667
+ "primaryKey": false,
2668
+ "notNull": false,
2669
+ "autoincrement": false
2670
+ },
2671
+ "capabilities": {
2672
+ "name": "capabilities",
2673
+ "type": "blob",
2674
+ "primaryKey": false,
2675
+ "notNull": false,
2676
+ "autoincrement": false
2677
+ },
2678
+ "last_error": {
2679
+ "name": "last_error",
2680
+ "type": "text",
2681
+ "primaryKey": false,
2682
+ "notNull": false,
2683
+ "autoincrement": false
2684
+ },
2685
+ "created_at": {
2686
+ "name": "created_at",
2687
+ "type": "text",
2688
+ "primaryKey": false,
2689
+ "notNull": true,
2690
+ "autoincrement": false,
2691
+ "default": "CURRENT_TIMESTAMP"
2692
+ },
2693
+ "updated_at": {
2694
+ "name": "updated_at",
2695
+ "type": "text",
2696
+ "primaryKey": false,
2697
+ "notNull": true,
2698
+ "autoincrement": false,
2699
+ "default": "CURRENT_TIMESTAMP"
2700
+ }
2701
+ },
2702
+ "indexes": {},
2703
+ "foreignKeys": {
2704
+ "tools_project_fk": {
2705
+ "name": "tools_project_fk",
2706
+ "tableFrom": "tools",
2707
+ "tableTo": "projects",
2708
+ "columnsFrom": [
2709
+ "tenant_id",
2710
+ "project_id"
2711
+ ],
2712
+ "columnsTo": [
2713
+ "tenant_id",
2714
+ "id"
2715
+ ],
2716
+ "onDelete": "cascade",
2717
+ "onUpdate": "no action"
2718
+ }
2719
+ },
2720
+ "compositePrimaryKeys": {
2721
+ "tools_tenant_id_project_id_id_pk": {
2722
+ "columns": [
2723
+ "tenant_id",
2724
+ "project_id",
2725
+ "id"
2726
+ ],
2727
+ "name": "tools_tenant_id_project_id_id_pk"
2728
+ }
2729
+ },
2730
+ "uniqueConstraints": {},
2731
+ "checkConstraints": {}
2732
+ }
2733
+ },
2734
+ "views": {},
2735
+ "enums": {},
2736
+ "_meta": {
2737
+ "schemas": {},
2738
+ "tables": {},
2739
+ "columns": {}
2740
+ },
2741
+ "internal": {
2742
+ "indexes": {}
2743
+ }
2744
+ }