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