@inkeep/agents-core 0.15.0 → 0.16.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.
Files changed (40) hide show
  1. package/dist/{chunk-FLKAMXLV.js → chunk-L53XWAYG.js} +1 -1
  2. package/dist/chunk-R2EERZSW.js +223 -0
  3. package/dist/{chunk-FMCAYVO7.js → chunk-TO2HNKGP.js} +167 -10
  4. package/dist/{chunk-AHSEMW6N.js → chunk-VPJ6Z5QZ.js} +43 -7
  5. package/dist/client-exports.cjs +215 -21
  6. package/dist/client-exports.d.cts +16 -12
  7. package/dist/client-exports.d.ts +16 -12
  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 +3274 -2819
  14. package/dist/index.d.cts +365 -314
  15. package/dist/index.d.ts +365 -314
  16. package/dist/index.js +2519 -2494
  17. package/dist/props-validation-BMR1qNiy.d.cts +15 -0
  18. package/dist/props-validation-BMR1qNiy.d.ts +15 -0
  19. package/dist/{schema-D0E2bG9V.d.ts → schema-BtdvdyOA.d.ts} +253 -64
  20. package/dist/{schema-CTBfyt-o.d.cts → schema-DVnfWYwH.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-BMAHFZX6.d.cts → utility-BaVsvScm.d.cts} +873 -326
  24. package/dist/{utility-BMAHFZX6.d.ts → utility-BaVsvScm.d.ts} +873 -326
  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 +218 -14
  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,2559 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "b3f24031-5963-467c-8833-6c4c727dc532",
5
+ "prevId": "39a038ad-52c0-488f-bf8d-51883000f913",
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
+ "name": {
1134
+ "name": "name",
1135
+ "type": "text",
1136
+ "primaryKey": false,
1137
+ "notNull": true,
1138
+ "autoincrement": false
1139
+ },
1140
+ "description": {
1141
+ "name": "description",
1142
+ "type": "text",
1143
+ "primaryKey": false,
1144
+ "notNull": true,
1145
+ "autoincrement": false
1146
+ },
1147
+ "request_context_schema": {
1148
+ "name": "request_context_schema",
1149
+ "type": "blob",
1150
+ "primaryKey": false,
1151
+ "notNull": false,
1152
+ "autoincrement": false
1153
+ },
1154
+ "context_variables": {
1155
+ "name": "context_variables",
1156
+ "type": "blob",
1157
+ "primaryKey": false,
1158
+ "notNull": false,
1159
+ "autoincrement": false
1160
+ },
1161
+ "created_at": {
1162
+ "name": "created_at",
1163
+ "type": "text",
1164
+ "primaryKey": false,
1165
+ "notNull": true,
1166
+ "autoincrement": false,
1167
+ "default": "CURRENT_TIMESTAMP"
1168
+ },
1169
+ "updated_at": {
1170
+ "name": "updated_at",
1171
+ "type": "text",
1172
+ "primaryKey": false,
1173
+ "notNull": true,
1174
+ "autoincrement": false,
1175
+ "default": "CURRENT_TIMESTAMP"
1176
+ }
1177
+ },
1178
+ "indexes": {},
1179
+ "foreignKeys": {
1180
+ "context_configs_graph_fk": {
1181
+ "name": "context_configs_graph_fk",
1182
+ "tableFrom": "context_configs",
1183
+ "tableTo": "agent_graph",
1184
+ "columnsFrom": [
1185
+ "tenant_id",
1186
+ "project_id",
1187
+ "graph_id"
1188
+ ],
1189
+ "columnsTo": [
1190
+ "tenant_id",
1191
+ "project_id",
1192
+ "id"
1193
+ ],
1194
+ "onDelete": "cascade",
1195
+ "onUpdate": "no action"
1196
+ }
1197
+ },
1198
+ "compositePrimaryKeys": {
1199
+ "context_configs_tenant_id_project_id_graph_id_id_pk": {
1200
+ "columns": [
1201
+ "tenant_id",
1202
+ "project_id",
1203
+ "graph_id",
1204
+ "id"
1205
+ ],
1206
+ "name": "context_configs_tenant_id_project_id_graph_id_id_pk"
1207
+ }
1208
+ },
1209
+ "uniqueConstraints": {},
1210
+ "checkConstraints": {}
1211
+ },
1212
+ "conversations": {
1213
+ "name": "conversations",
1214
+ "columns": {
1215
+ "tenant_id": {
1216
+ "name": "tenant_id",
1217
+ "type": "text",
1218
+ "primaryKey": false,
1219
+ "notNull": true,
1220
+ "autoincrement": false
1221
+ },
1222
+ "id": {
1223
+ "name": "id",
1224
+ "type": "text",
1225
+ "primaryKey": false,
1226
+ "notNull": true,
1227
+ "autoincrement": false
1228
+ },
1229
+ "project_id": {
1230
+ "name": "project_id",
1231
+ "type": "text",
1232
+ "primaryKey": false,
1233
+ "notNull": true,
1234
+ "autoincrement": false
1235
+ },
1236
+ "user_id": {
1237
+ "name": "user_id",
1238
+ "type": "text",
1239
+ "primaryKey": false,
1240
+ "notNull": false,
1241
+ "autoincrement": false
1242
+ },
1243
+ "active_agent_id": {
1244
+ "name": "active_agent_id",
1245
+ "type": "text",
1246
+ "primaryKey": false,
1247
+ "notNull": true,
1248
+ "autoincrement": false
1249
+ },
1250
+ "title": {
1251
+ "name": "title",
1252
+ "type": "text",
1253
+ "primaryKey": false,
1254
+ "notNull": false,
1255
+ "autoincrement": false
1256
+ },
1257
+ "last_context_resolution": {
1258
+ "name": "last_context_resolution",
1259
+ "type": "text",
1260
+ "primaryKey": false,
1261
+ "notNull": false,
1262
+ "autoincrement": false
1263
+ },
1264
+ "metadata": {
1265
+ "name": "metadata",
1266
+ "type": "blob",
1267
+ "primaryKey": false,
1268
+ "notNull": false,
1269
+ "autoincrement": false
1270
+ },
1271
+ "created_at": {
1272
+ "name": "created_at",
1273
+ "type": "text",
1274
+ "primaryKey": false,
1275
+ "notNull": true,
1276
+ "autoincrement": false,
1277
+ "default": "CURRENT_TIMESTAMP"
1278
+ },
1279
+ "updated_at": {
1280
+ "name": "updated_at",
1281
+ "type": "text",
1282
+ "primaryKey": false,
1283
+ "notNull": true,
1284
+ "autoincrement": false,
1285
+ "default": "CURRENT_TIMESTAMP"
1286
+ }
1287
+ },
1288
+ "indexes": {},
1289
+ "foreignKeys": {
1290
+ "conversations_project_fk": {
1291
+ "name": "conversations_project_fk",
1292
+ "tableFrom": "conversations",
1293
+ "tableTo": "projects",
1294
+ "columnsFrom": [
1295
+ "tenant_id",
1296
+ "project_id"
1297
+ ],
1298
+ "columnsTo": [
1299
+ "tenant_id",
1300
+ "id"
1301
+ ],
1302
+ "onDelete": "cascade",
1303
+ "onUpdate": "no action"
1304
+ }
1305
+ },
1306
+ "compositePrimaryKeys": {
1307
+ "conversations_tenant_id_project_id_id_pk": {
1308
+ "columns": [
1309
+ "tenant_id",
1310
+ "project_id",
1311
+ "id"
1312
+ ],
1313
+ "name": "conversations_tenant_id_project_id_id_pk"
1314
+ }
1315
+ },
1316
+ "uniqueConstraints": {},
1317
+ "checkConstraints": {}
1318
+ },
1319
+ "credential_references": {
1320
+ "name": "credential_references",
1321
+ "columns": {
1322
+ "tenant_id": {
1323
+ "name": "tenant_id",
1324
+ "type": "text",
1325
+ "primaryKey": false,
1326
+ "notNull": true,
1327
+ "autoincrement": false
1328
+ },
1329
+ "id": {
1330
+ "name": "id",
1331
+ "type": "text",
1332
+ "primaryKey": false,
1333
+ "notNull": true,
1334
+ "autoincrement": false
1335
+ },
1336
+ "project_id": {
1337
+ "name": "project_id",
1338
+ "type": "text",
1339
+ "primaryKey": false,
1340
+ "notNull": true,
1341
+ "autoincrement": false
1342
+ },
1343
+ "type": {
1344
+ "name": "type",
1345
+ "type": "text",
1346
+ "primaryKey": false,
1347
+ "notNull": true,
1348
+ "autoincrement": false
1349
+ },
1350
+ "credential_store_id": {
1351
+ "name": "credential_store_id",
1352
+ "type": "text",
1353
+ "primaryKey": false,
1354
+ "notNull": true,
1355
+ "autoincrement": false
1356
+ },
1357
+ "retrieval_params": {
1358
+ "name": "retrieval_params",
1359
+ "type": "blob",
1360
+ "primaryKey": false,
1361
+ "notNull": false,
1362
+ "autoincrement": false
1363
+ },
1364
+ "created_at": {
1365
+ "name": "created_at",
1366
+ "type": "text",
1367
+ "primaryKey": false,
1368
+ "notNull": true,
1369
+ "autoincrement": false,
1370
+ "default": "CURRENT_TIMESTAMP"
1371
+ },
1372
+ "updated_at": {
1373
+ "name": "updated_at",
1374
+ "type": "text",
1375
+ "primaryKey": false,
1376
+ "notNull": true,
1377
+ "autoincrement": false,
1378
+ "default": "CURRENT_TIMESTAMP"
1379
+ }
1380
+ },
1381
+ "indexes": {},
1382
+ "foreignKeys": {
1383
+ "credential_references_project_fk": {
1384
+ "name": "credential_references_project_fk",
1385
+ "tableFrom": "credential_references",
1386
+ "tableTo": "projects",
1387
+ "columnsFrom": [
1388
+ "tenant_id",
1389
+ "project_id"
1390
+ ],
1391
+ "columnsTo": [
1392
+ "tenant_id",
1393
+ "id"
1394
+ ],
1395
+ "onDelete": "cascade",
1396
+ "onUpdate": "no action"
1397
+ }
1398
+ },
1399
+ "compositePrimaryKeys": {
1400
+ "credential_references_tenant_id_project_id_id_pk": {
1401
+ "columns": [
1402
+ "tenant_id",
1403
+ "project_id",
1404
+ "id"
1405
+ ],
1406
+ "name": "credential_references_tenant_id_project_id_id_pk"
1407
+ }
1408
+ },
1409
+ "uniqueConstraints": {},
1410
+ "checkConstraints": {}
1411
+ },
1412
+ "data_components": {
1413
+ "name": "data_components",
1414
+ "columns": {
1415
+ "tenant_id": {
1416
+ "name": "tenant_id",
1417
+ "type": "text",
1418
+ "primaryKey": false,
1419
+ "notNull": true,
1420
+ "autoincrement": false
1421
+ },
1422
+ "id": {
1423
+ "name": "id",
1424
+ "type": "text",
1425
+ "primaryKey": false,
1426
+ "notNull": true,
1427
+ "autoincrement": false
1428
+ },
1429
+ "project_id": {
1430
+ "name": "project_id",
1431
+ "type": "text",
1432
+ "primaryKey": false,
1433
+ "notNull": true,
1434
+ "autoincrement": false
1435
+ },
1436
+ "name": {
1437
+ "name": "name",
1438
+ "type": "text",
1439
+ "primaryKey": false,
1440
+ "notNull": true,
1441
+ "autoincrement": false
1442
+ },
1443
+ "description": {
1444
+ "name": "description",
1445
+ "type": "text",
1446
+ "primaryKey": false,
1447
+ "notNull": true,
1448
+ "autoincrement": false
1449
+ },
1450
+ "props": {
1451
+ "name": "props",
1452
+ "type": "blob",
1453
+ "primaryKey": false,
1454
+ "notNull": false,
1455
+ "autoincrement": false
1456
+ },
1457
+ "created_at": {
1458
+ "name": "created_at",
1459
+ "type": "text",
1460
+ "primaryKey": false,
1461
+ "notNull": true,
1462
+ "autoincrement": false,
1463
+ "default": "CURRENT_TIMESTAMP"
1464
+ },
1465
+ "updated_at": {
1466
+ "name": "updated_at",
1467
+ "type": "text",
1468
+ "primaryKey": false,
1469
+ "notNull": true,
1470
+ "autoincrement": false,
1471
+ "default": "CURRENT_TIMESTAMP"
1472
+ }
1473
+ },
1474
+ "indexes": {},
1475
+ "foreignKeys": {
1476
+ "data_components_project_fk": {
1477
+ "name": "data_components_project_fk",
1478
+ "tableFrom": "data_components",
1479
+ "tableTo": "projects",
1480
+ "columnsFrom": [
1481
+ "tenant_id",
1482
+ "project_id"
1483
+ ],
1484
+ "columnsTo": [
1485
+ "tenant_id",
1486
+ "id"
1487
+ ],
1488
+ "onDelete": "cascade",
1489
+ "onUpdate": "no action"
1490
+ }
1491
+ },
1492
+ "compositePrimaryKeys": {
1493
+ "data_components_tenant_id_project_id_id_pk": {
1494
+ "columns": [
1495
+ "tenant_id",
1496
+ "project_id",
1497
+ "id"
1498
+ ],
1499
+ "name": "data_components_tenant_id_project_id_id_pk"
1500
+ }
1501
+ },
1502
+ "uniqueConstraints": {},
1503
+ "checkConstraints": {}
1504
+ },
1505
+ "external_agents": {
1506
+ "name": "external_agents",
1507
+ "columns": {
1508
+ "tenant_id": {
1509
+ "name": "tenant_id",
1510
+ "type": "text",
1511
+ "primaryKey": false,
1512
+ "notNull": true,
1513
+ "autoincrement": false
1514
+ },
1515
+ "id": {
1516
+ "name": "id",
1517
+ "type": "text",
1518
+ "primaryKey": false,
1519
+ "notNull": true,
1520
+ "autoincrement": false
1521
+ },
1522
+ "project_id": {
1523
+ "name": "project_id",
1524
+ "type": "text",
1525
+ "primaryKey": false,
1526
+ "notNull": true,
1527
+ "autoincrement": false
1528
+ },
1529
+ "graph_id": {
1530
+ "name": "graph_id",
1531
+ "type": "text",
1532
+ "primaryKey": false,
1533
+ "notNull": true,
1534
+ "autoincrement": false
1535
+ },
1536
+ "name": {
1537
+ "name": "name",
1538
+ "type": "text",
1539
+ "primaryKey": false,
1540
+ "notNull": true,
1541
+ "autoincrement": false
1542
+ },
1543
+ "description": {
1544
+ "name": "description",
1545
+ "type": "text",
1546
+ "primaryKey": false,
1547
+ "notNull": true,
1548
+ "autoincrement": false
1549
+ },
1550
+ "base_url": {
1551
+ "name": "base_url",
1552
+ "type": "text",
1553
+ "primaryKey": false,
1554
+ "notNull": true,
1555
+ "autoincrement": false
1556
+ },
1557
+ "credential_reference_id": {
1558
+ "name": "credential_reference_id",
1559
+ "type": "text",
1560
+ "primaryKey": false,
1561
+ "notNull": false,
1562
+ "autoincrement": false
1563
+ },
1564
+ "headers": {
1565
+ "name": "headers",
1566
+ "type": "blob",
1567
+ "primaryKey": false,
1568
+ "notNull": false,
1569
+ "autoincrement": false
1570
+ },
1571
+ "created_at": {
1572
+ "name": "created_at",
1573
+ "type": "text",
1574
+ "primaryKey": false,
1575
+ "notNull": true,
1576
+ "autoincrement": false,
1577
+ "default": "CURRENT_TIMESTAMP"
1578
+ },
1579
+ "updated_at": {
1580
+ "name": "updated_at",
1581
+ "type": "text",
1582
+ "primaryKey": false,
1583
+ "notNull": true,
1584
+ "autoincrement": false,
1585
+ "default": "CURRENT_TIMESTAMP"
1586
+ }
1587
+ },
1588
+ "indexes": {},
1589
+ "foreignKeys": {
1590
+ "external_agents_graph_fk": {
1591
+ "name": "external_agents_graph_fk",
1592
+ "tableFrom": "external_agents",
1593
+ "tableTo": "agent_graph",
1594
+ "columnsFrom": [
1595
+ "tenant_id",
1596
+ "project_id",
1597
+ "graph_id"
1598
+ ],
1599
+ "columnsTo": [
1600
+ "tenant_id",
1601
+ "project_id",
1602
+ "id"
1603
+ ],
1604
+ "onDelete": "cascade",
1605
+ "onUpdate": "no action"
1606
+ },
1607
+ "external_agents_credential_reference_fk": {
1608
+ "name": "external_agents_credential_reference_fk",
1609
+ "tableFrom": "external_agents",
1610
+ "tableTo": "credential_references",
1611
+ "columnsFrom": [
1612
+ "tenant_id",
1613
+ "project_id",
1614
+ "credential_reference_id"
1615
+ ],
1616
+ "columnsTo": [
1617
+ "tenant_id",
1618
+ "project_id",
1619
+ "id"
1620
+ ],
1621
+ "onDelete": "set null",
1622
+ "onUpdate": "no action"
1623
+ }
1624
+ },
1625
+ "compositePrimaryKeys": {
1626
+ "external_agents_tenant_id_project_id_graph_id_id_pk": {
1627
+ "columns": [
1628
+ "tenant_id",
1629
+ "project_id",
1630
+ "graph_id",
1631
+ "id"
1632
+ ],
1633
+ "name": "external_agents_tenant_id_project_id_graph_id_id_pk"
1634
+ }
1635
+ },
1636
+ "uniqueConstraints": {},
1637
+ "checkConstraints": {}
1638
+ },
1639
+ "functions": {
1640
+ "name": "functions",
1641
+ "columns": {
1642
+ "tenant_id": {
1643
+ "name": "tenant_id",
1644
+ "type": "text",
1645
+ "primaryKey": false,
1646
+ "notNull": true,
1647
+ "autoincrement": false
1648
+ },
1649
+ "id": {
1650
+ "name": "id",
1651
+ "type": "text",
1652
+ "primaryKey": false,
1653
+ "notNull": true,
1654
+ "autoincrement": false
1655
+ },
1656
+ "project_id": {
1657
+ "name": "project_id",
1658
+ "type": "text",
1659
+ "primaryKey": false,
1660
+ "notNull": true,
1661
+ "autoincrement": false
1662
+ },
1663
+ "input_schema": {
1664
+ "name": "input_schema",
1665
+ "type": "blob",
1666
+ "primaryKey": false,
1667
+ "notNull": false,
1668
+ "autoincrement": false
1669
+ },
1670
+ "execute_code": {
1671
+ "name": "execute_code",
1672
+ "type": "text",
1673
+ "primaryKey": false,
1674
+ "notNull": true,
1675
+ "autoincrement": false
1676
+ },
1677
+ "dependencies": {
1678
+ "name": "dependencies",
1679
+ "type": "blob",
1680
+ "primaryKey": false,
1681
+ "notNull": false,
1682
+ "autoincrement": false
1683
+ },
1684
+ "created_at": {
1685
+ "name": "created_at",
1686
+ "type": "text",
1687
+ "primaryKey": false,
1688
+ "notNull": true,
1689
+ "autoincrement": false,
1690
+ "default": "CURRENT_TIMESTAMP"
1691
+ },
1692
+ "updated_at": {
1693
+ "name": "updated_at",
1694
+ "type": "text",
1695
+ "primaryKey": false,
1696
+ "notNull": true,
1697
+ "autoincrement": false,
1698
+ "default": "CURRENT_TIMESTAMP"
1699
+ }
1700
+ },
1701
+ "indexes": {},
1702
+ "foreignKeys": {
1703
+ "functions_project_fk": {
1704
+ "name": "functions_project_fk",
1705
+ "tableFrom": "functions",
1706
+ "tableTo": "projects",
1707
+ "columnsFrom": [
1708
+ "tenant_id",
1709
+ "project_id"
1710
+ ],
1711
+ "columnsTo": [
1712
+ "tenant_id",
1713
+ "id"
1714
+ ],
1715
+ "onDelete": "cascade",
1716
+ "onUpdate": "no action"
1717
+ }
1718
+ },
1719
+ "compositePrimaryKeys": {
1720
+ "functions_tenant_id_project_id_id_pk": {
1721
+ "columns": [
1722
+ "tenant_id",
1723
+ "project_id",
1724
+ "id"
1725
+ ],
1726
+ "name": "functions_tenant_id_project_id_id_pk"
1727
+ }
1728
+ },
1729
+ "uniqueConstraints": {},
1730
+ "checkConstraints": {}
1731
+ },
1732
+ "ledger_artifacts": {
1733
+ "name": "ledger_artifacts",
1734
+ "columns": {
1735
+ "tenant_id": {
1736
+ "name": "tenant_id",
1737
+ "type": "text",
1738
+ "primaryKey": false,
1739
+ "notNull": true,
1740
+ "autoincrement": false
1741
+ },
1742
+ "id": {
1743
+ "name": "id",
1744
+ "type": "text",
1745
+ "primaryKey": false,
1746
+ "notNull": true,
1747
+ "autoincrement": false
1748
+ },
1749
+ "project_id": {
1750
+ "name": "project_id",
1751
+ "type": "text",
1752
+ "primaryKey": false,
1753
+ "notNull": true,
1754
+ "autoincrement": false
1755
+ },
1756
+ "task_id": {
1757
+ "name": "task_id",
1758
+ "type": "text",
1759
+ "primaryKey": false,
1760
+ "notNull": true,
1761
+ "autoincrement": false
1762
+ },
1763
+ "tool_call_id": {
1764
+ "name": "tool_call_id",
1765
+ "type": "text",
1766
+ "primaryKey": false,
1767
+ "notNull": false,
1768
+ "autoincrement": false
1769
+ },
1770
+ "context_id": {
1771
+ "name": "context_id",
1772
+ "type": "text",
1773
+ "primaryKey": false,
1774
+ "notNull": true,
1775
+ "autoincrement": false
1776
+ },
1777
+ "type": {
1778
+ "name": "type",
1779
+ "type": "text",
1780
+ "primaryKey": false,
1781
+ "notNull": true,
1782
+ "autoincrement": false,
1783
+ "default": "'source'"
1784
+ },
1785
+ "name": {
1786
+ "name": "name",
1787
+ "type": "text",
1788
+ "primaryKey": false,
1789
+ "notNull": false,
1790
+ "autoincrement": false
1791
+ },
1792
+ "description": {
1793
+ "name": "description",
1794
+ "type": "text",
1795
+ "primaryKey": false,
1796
+ "notNull": false,
1797
+ "autoincrement": false
1798
+ },
1799
+ "parts": {
1800
+ "name": "parts",
1801
+ "type": "blob",
1802
+ "primaryKey": false,
1803
+ "notNull": false,
1804
+ "autoincrement": false
1805
+ },
1806
+ "metadata": {
1807
+ "name": "metadata",
1808
+ "type": "blob",
1809
+ "primaryKey": false,
1810
+ "notNull": false,
1811
+ "autoincrement": false
1812
+ },
1813
+ "summary": {
1814
+ "name": "summary",
1815
+ "type": "text",
1816
+ "primaryKey": false,
1817
+ "notNull": false,
1818
+ "autoincrement": false
1819
+ },
1820
+ "mime": {
1821
+ "name": "mime",
1822
+ "type": "blob",
1823
+ "primaryKey": false,
1824
+ "notNull": false,
1825
+ "autoincrement": false
1826
+ },
1827
+ "visibility": {
1828
+ "name": "visibility",
1829
+ "type": "text",
1830
+ "primaryKey": false,
1831
+ "notNull": false,
1832
+ "autoincrement": false,
1833
+ "default": "'context'"
1834
+ },
1835
+ "allowed_agents": {
1836
+ "name": "allowed_agents",
1837
+ "type": "blob",
1838
+ "primaryKey": false,
1839
+ "notNull": false,
1840
+ "autoincrement": false
1841
+ },
1842
+ "derived_from": {
1843
+ "name": "derived_from",
1844
+ "type": "text",
1845
+ "primaryKey": false,
1846
+ "notNull": false,
1847
+ "autoincrement": false
1848
+ },
1849
+ "created_at": {
1850
+ "name": "created_at",
1851
+ "type": "text",
1852
+ "primaryKey": false,
1853
+ "notNull": true,
1854
+ "autoincrement": false,
1855
+ "default": "CURRENT_TIMESTAMP"
1856
+ },
1857
+ "updated_at": {
1858
+ "name": "updated_at",
1859
+ "type": "text",
1860
+ "primaryKey": false,
1861
+ "notNull": true,
1862
+ "autoincrement": false,
1863
+ "default": "CURRENT_TIMESTAMP"
1864
+ }
1865
+ },
1866
+ "indexes": {
1867
+ "ledger_artifacts_task_id_idx": {
1868
+ "name": "ledger_artifacts_task_id_idx",
1869
+ "columns": [
1870
+ "task_id"
1871
+ ],
1872
+ "isUnique": false
1873
+ },
1874
+ "ledger_artifacts_tool_call_id_idx": {
1875
+ "name": "ledger_artifacts_tool_call_id_idx",
1876
+ "columns": [
1877
+ "tool_call_id"
1878
+ ],
1879
+ "isUnique": false
1880
+ },
1881
+ "ledger_artifacts_context_id_idx": {
1882
+ "name": "ledger_artifacts_context_id_idx",
1883
+ "columns": [
1884
+ "context_id"
1885
+ ],
1886
+ "isUnique": false
1887
+ },
1888
+ "ledger_artifacts_task_context_name_unique": {
1889
+ "name": "ledger_artifacts_task_context_name_unique",
1890
+ "columns": [
1891
+ "task_id",
1892
+ "context_id",
1893
+ "name"
1894
+ ],
1895
+ "isUnique": true
1896
+ }
1897
+ },
1898
+ "foreignKeys": {
1899
+ "ledger_artifacts_project_fk": {
1900
+ "name": "ledger_artifacts_project_fk",
1901
+ "tableFrom": "ledger_artifacts",
1902
+ "tableTo": "projects",
1903
+ "columnsFrom": [
1904
+ "tenant_id",
1905
+ "project_id"
1906
+ ],
1907
+ "columnsTo": [
1908
+ "tenant_id",
1909
+ "id"
1910
+ ],
1911
+ "onDelete": "cascade",
1912
+ "onUpdate": "no action"
1913
+ }
1914
+ },
1915
+ "compositePrimaryKeys": {
1916
+ "ledger_artifacts_tenant_id_project_id_id_task_id_pk": {
1917
+ "columns": [
1918
+ "tenant_id",
1919
+ "project_id",
1920
+ "id",
1921
+ "task_id"
1922
+ ],
1923
+ "name": "ledger_artifacts_tenant_id_project_id_id_task_id_pk"
1924
+ }
1925
+ },
1926
+ "uniqueConstraints": {},
1927
+ "checkConstraints": {}
1928
+ },
1929
+ "messages": {
1930
+ "name": "messages",
1931
+ "columns": {
1932
+ "tenant_id": {
1933
+ "name": "tenant_id",
1934
+ "type": "text",
1935
+ "primaryKey": false,
1936
+ "notNull": true,
1937
+ "autoincrement": false
1938
+ },
1939
+ "id": {
1940
+ "name": "id",
1941
+ "type": "text",
1942
+ "primaryKey": false,
1943
+ "notNull": true,
1944
+ "autoincrement": false
1945
+ },
1946
+ "project_id": {
1947
+ "name": "project_id",
1948
+ "type": "text",
1949
+ "primaryKey": false,
1950
+ "notNull": true,
1951
+ "autoincrement": false
1952
+ },
1953
+ "conversation_id": {
1954
+ "name": "conversation_id",
1955
+ "type": "text",
1956
+ "primaryKey": false,
1957
+ "notNull": true,
1958
+ "autoincrement": false
1959
+ },
1960
+ "role": {
1961
+ "name": "role",
1962
+ "type": "text",
1963
+ "primaryKey": false,
1964
+ "notNull": true,
1965
+ "autoincrement": false
1966
+ },
1967
+ "from_agent_id": {
1968
+ "name": "from_agent_id",
1969
+ "type": "text",
1970
+ "primaryKey": false,
1971
+ "notNull": false,
1972
+ "autoincrement": false
1973
+ },
1974
+ "to_agent_id": {
1975
+ "name": "to_agent_id",
1976
+ "type": "text",
1977
+ "primaryKey": false,
1978
+ "notNull": false,
1979
+ "autoincrement": false
1980
+ },
1981
+ "from_external_agent_id": {
1982
+ "name": "from_external_agent_id",
1983
+ "type": "text",
1984
+ "primaryKey": false,
1985
+ "notNull": false,
1986
+ "autoincrement": false
1987
+ },
1988
+ "to_external_agent_id": {
1989
+ "name": "to_external_agent_id",
1990
+ "type": "text",
1991
+ "primaryKey": false,
1992
+ "notNull": false,
1993
+ "autoincrement": false
1994
+ },
1995
+ "content": {
1996
+ "name": "content",
1997
+ "type": "blob",
1998
+ "primaryKey": false,
1999
+ "notNull": true,
2000
+ "autoincrement": false
2001
+ },
2002
+ "visibility": {
2003
+ "name": "visibility",
2004
+ "type": "text",
2005
+ "primaryKey": false,
2006
+ "notNull": true,
2007
+ "autoincrement": false,
2008
+ "default": "'user-facing'"
2009
+ },
2010
+ "message_type": {
2011
+ "name": "message_type",
2012
+ "type": "text",
2013
+ "primaryKey": false,
2014
+ "notNull": true,
2015
+ "autoincrement": false,
2016
+ "default": "'chat'"
2017
+ },
2018
+ "agent_id": {
2019
+ "name": "agent_id",
2020
+ "type": "text",
2021
+ "primaryKey": false,
2022
+ "notNull": false,
2023
+ "autoincrement": false
2024
+ },
2025
+ "task_id": {
2026
+ "name": "task_id",
2027
+ "type": "text",
2028
+ "primaryKey": false,
2029
+ "notNull": false,
2030
+ "autoincrement": false
2031
+ },
2032
+ "parent_message_id": {
2033
+ "name": "parent_message_id",
2034
+ "type": "text",
2035
+ "primaryKey": false,
2036
+ "notNull": false,
2037
+ "autoincrement": false
2038
+ },
2039
+ "a2a_task_id": {
2040
+ "name": "a2a_task_id",
2041
+ "type": "text",
2042
+ "primaryKey": false,
2043
+ "notNull": false,
2044
+ "autoincrement": false
2045
+ },
2046
+ "a2a_session_id": {
2047
+ "name": "a2a_session_id",
2048
+ "type": "text",
2049
+ "primaryKey": false,
2050
+ "notNull": false,
2051
+ "autoincrement": false
2052
+ },
2053
+ "metadata": {
2054
+ "name": "metadata",
2055
+ "type": "blob",
2056
+ "primaryKey": false,
2057
+ "notNull": false,
2058
+ "autoincrement": false
2059
+ },
2060
+ "created_at": {
2061
+ "name": "created_at",
2062
+ "type": "text",
2063
+ "primaryKey": false,
2064
+ "notNull": true,
2065
+ "autoincrement": false,
2066
+ "default": "CURRENT_TIMESTAMP"
2067
+ },
2068
+ "updated_at": {
2069
+ "name": "updated_at",
2070
+ "type": "text",
2071
+ "primaryKey": false,
2072
+ "notNull": true,
2073
+ "autoincrement": false,
2074
+ "default": "CURRENT_TIMESTAMP"
2075
+ }
2076
+ },
2077
+ "indexes": {},
2078
+ "foreignKeys": {
2079
+ "messages_project_fk": {
2080
+ "name": "messages_project_fk",
2081
+ "tableFrom": "messages",
2082
+ "tableTo": "projects",
2083
+ "columnsFrom": [
2084
+ "tenant_id",
2085
+ "project_id"
2086
+ ],
2087
+ "columnsTo": [
2088
+ "tenant_id",
2089
+ "id"
2090
+ ],
2091
+ "onDelete": "cascade",
2092
+ "onUpdate": "no action"
2093
+ }
2094
+ },
2095
+ "compositePrimaryKeys": {
2096
+ "messages_tenant_id_project_id_id_pk": {
2097
+ "columns": [
2098
+ "tenant_id",
2099
+ "project_id",
2100
+ "id"
2101
+ ],
2102
+ "name": "messages_tenant_id_project_id_id_pk"
2103
+ }
2104
+ },
2105
+ "uniqueConstraints": {},
2106
+ "checkConstraints": {}
2107
+ },
2108
+ "projects": {
2109
+ "name": "projects",
2110
+ "columns": {
2111
+ "tenant_id": {
2112
+ "name": "tenant_id",
2113
+ "type": "text",
2114
+ "primaryKey": false,
2115
+ "notNull": true,
2116
+ "autoincrement": false
2117
+ },
2118
+ "id": {
2119
+ "name": "id",
2120
+ "type": "text",
2121
+ "primaryKey": false,
2122
+ "notNull": true,
2123
+ "autoincrement": false
2124
+ },
2125
+ "name": {
2126
+ "name": "name",
2127
+ "type": "text",
2128
+ "primaryKey": false,
2129
+ "notNull": true,
2130
+ "autoincrement": false
2131
+ },
2132
+ "description": {
2133
+ "name": "description",
2134
+ "type": "text",
2135
+ "primaryKey": false,
2136
+ "notNull": true,
2137
+ "autoincrement": false
2138
+ },
2139
+ "models": {
2140
+ "name": "models",
2141
+ "type": "text",
2142
+ "primaryKey": false,
2143
+ "notNull": false,
2144
+ "autoincrement": false
2145
+ },
2146
+ "stop_when": {
2147
+ "name": "stop_when",
2148
+ "type": "text",
2149
+ "primaryKey": false,
2150
+ "notNull": false,
2151
+ "autoincrement": false
2152
+ },
2153
+ "sandbox_config": {
2154
+ "name": "sandbox_config",
2155
+ "type": "text",
2156
+ "primaryKey": false,
2157
+ "notNull": false,
2158
+ "autoincrement": false
2159
+ },
2160
+ "created_at": {
2161
+ "name": "created_at",
2162
+ "type": "text",
2163
+ "primaryKey": false,
2164
+ "notNull": true,
2165
+ "autoincrement": false,
2166
+ "default": "CURRENT_TIMESTAMP"
2167
+ },
2168
+ "updated_at": {
2169
+ "name": "updated_at",
2170
+ "type": "text",
2171
+ "primaryKey": false,
2172
+ "notNull": true,
2173
+ "autoincrement": false,
2174
+ "default": "CURRENT_TIMESTAMP"
2175
+ }
2176
+ },
2177
+ "indexes": {},
2178
+ "foreignKeys": {},
2179
+ "compositePrimaryKeys": {
2180
+ "projects_tenant_id_id_pk": {
2181
+ "columns": [
2182
+ "tenant_id",
2183
+ "id"
2184
+ ],
2185
+ "name": "projects_tenant_id_id_pk"
2186
+ }
2187
+ },
2188
+ "uniqueConstraints": {},
2189
+ "checkConstraints": {}
2190
+ },
2191
+ "task_relations": {
2192
+ "name": "task_relations",
2193
+ "columns": {
2194
+ "tenant_id": {
2195
+ "name": "tenant_id",
2196
+ "type": "text",
2197
+ "primaryKey": false,
2198
+ "notNull": true,
2199
+ "autoincrement": false
2200
+ },
2201
+ "id": {
2202
+ "name": "id",
2203
+ "type": "text",
2204
+ "primaryKey": false,
2205
+ "notNull": true,
2206
+ "autoincrement": false
2207
+ },
2208
+ "project_id": {
2209
+ "name": "project_id",
2210
+ "type": "text",
2211
+ "primaryKey": false,
2212
+ "notNull": true,
2213
+ "autoincrement": false
2214
+ },
2215
+ "parent_task_id": {
2216
+ "name": "parent_task_id",
2217
+ "type": "text",
2218
+ "primaryKey": false,
2219
+ "notNull": true,
2220
+ "autoincrement": false
2221
+ },
2222
+ "child_task_id": {
2223
+ "name": "child_task_id",
2224
+ "type": "text",
2225
+ "primaryKey": false,
2226
+ "notNull": true,
2227
+ "autoincrement": false
2228
+ },
2229
+ "relation_type": {
2230
+ "name": "relation_type",
2231
+ "type": "text",
2232
+ "primaryKey": false,
2233
+ "notNull": false,
2234
+ "autoincrement": false,
2235
+ "default": "'parent_child'"
2236
+ },
2237
+ "created_at": {
2238
+ "name": "created_at",
2239
+ "type": "text",
2240
+ "primaryKey": false,
2241
+ "notNull": true,
2242
+ "autoincrement": false,
2243
+ "default": "CURRENT_TIMESTAMP"
2244
+ },
2245
+ "updated_at": {
2246
+ "name": "updated_at",
2247
+ "type": "text",
2248
+ "primaryKey": false,
2249
+ "notNull": true,
2250
+ "autoincrement": false,
2251
+ "default": "CURRENT_TIMESTAMP"
2252
+ }
2253
+ },
2254
+ "indexes": {},
2255
+ "foreignKeys": {
2256
+ "task_relations_project_fk": {
2257
+ "name": "task_relations_project_fk",
2258
+ "tableFrom": "task_relations",
2259
+ "tableTo": "projects",
2260
+ "columnsFrom": [
2261
+ "tenant_id",
2262
+ "project_id"
2263
+ ],
2264
+ "columnsTo": [
2265
+ "tenant_id",
2266
+ "id"
2267
+ ],
2268
+ "onDelete": "cascade",
2269
+ "onUpdate": "no action"
2270
+ }
2271
+ },
2272
+ "compositePrimaryKeys": {
2273
+ "task_relations_tenant_id_project_id_id_pk": {
2274
+ "columns": [
2275
+ "tenant_id",
2276
+ "project_id",
2277
+ "id"
2278
+ ],
2279
+ "name": "task_relations_tenant_id_project_id_id_pk"
2280
+ }
2281
+ },
2282
+ "uniqueConstraints": {},
2283
+ "checkConstraints": {}
2284
+ },
2285
+ "tasks": {
2286
+ "name": "tasks",
2287
+ "columns": {
2288
+ "tenant_id": {
2289
+ "name": "tenant_id",
2290
+ "type": "text",
2291
+ "primaryKey": false,
2292
+ "notNull": true,
2293
+ "autoincrement": false
2294
+ },
2295
+ "id": {
2296
+ "name": "id",
2297
+ "type": "text",
2298
+ "primaryKey": false,
2299
+ "notNull": true,
2300
+ "autoincrement": false
2301
+ },
2302
+ "project_id": {
2303
+ "name": "project_id",
2304
+ "type": "text",
2305
+ "primaryKey": false,
2306
+ "notNull": true,
2307
+ "autoincrement": false
2308
+ },
2309
+ "graph_id": {
2310
+ "name": "graph_id",
2311
+ "type": "text",
2312
+ "primaryKey": false,
2313
+ "notNull": true,
2314
+ "autoincrement": false
2315
+ },
2316
+ "agent_id": {
2317
+ "name": "agent_id",
2318
+ "type": "text",
2319
+ "primaryKey": false,
2320
+ "notNull": true,
2321
+ "autoincrement": false
2322
+ },
2323
+ "context_id": {
2324
+ "name": "context_id",
2325
+ "type": "text",
2326
+ "primaryKey": false,
2327
+ "notNull": true,
2328
+ "autoincrement": false
2329
+ },
2330
+ "status": {
2331
+ "name": "status",
2332
+ "type": "text",
2333
+ "primaryKey": false,
2334
+ "notNull": true,
2335
+ "autoincrement": false
2336
+ },
2337
+ "metadata": {
2338
+ "name": "metadata",
2339
+ "type": "blob",
2340
+ "primaryKey": false,
2341
+ "notNull": false,
2342
+ "autoincrement": false
2343
+ },
2344
+ "created_at": {
2345
+ "name": "created_at",
2346
+ "type": "text",
2347
+ "primaryKey": false,
2348
+ "notNull": true,
2349
+ "autoincrement": false,
2350
+ "default": "CURRENT_TIMESTAMP"
2351
+ },
2352
+ "updated_at": {
2353
+ "name": "updated_at",
2354
+ "type": "text",
2355
+ "primaryKey": false,
2356
+ "notNull": true,
2357
+ "autoincrement": false,
2358
+ "default": "CURRENT_TIMESTAMP"
2359
+ }
2360
+ },
2361
+ "indexes": {},
2362
+ "foreignKeys": {
2363
+ "tasks_agent_fk": {
2364
+ "name": "tasks_agent_fk",
2365
+ "tableFrom": "tasks",
2366
+ "tableTo": "agents",
2367
+ "columnsFrom": [
2368
+ "tenant_id",
2369
+ "project_id",
2370
+ "graph_id",
2371
+ "agent_id"
2372
+ ],
2373
+ "columnsTo": [
2374
+ "tenant_id",
2375
+ "project_id",
2376
+ "graph_id",
2377
+ "id"
2378
+ ],
2379
+ "onDelete": "cascade",
2380
+ "onUpdate": "no action"
2381
+ }
2382
+ },
2383
+ "compositePrimaryKeys": {
2384
+ "tasks_tenant_id_project_id_id_pk": {
2385
+ "columns": [
2386
+ "tenant_id",
2387
+ "project_id",
2388
+ "id"
2389
+ ],
2390
+ "name": "tasks_tenant_id_project_id_id_pk"
2391
+ }
2392
+ },
2393
+ "uniqueConstraints": {},
2394
+ "checkConstraints": {}
2395
+ },
2396
+ "tools": {
2397
+ "name": "tools",
2398
+ "columns": {
2399
+ "tenant_id": {
2400
+ "name": "tenant_id",
2401
+ "type": "text",
2402
+ "primaryKey": false,
2403
+ "notNull": true,
2404
+ "autoincrement": false
2405
+ },
2406
+ "id": {
2407
+ "name": "id",
2408
+ "type": "text",
2409
+ "primaryKey": false,
2410
+ "notNull": true,
2411
+ "autoincrement": false
2412
+ },
2413
+ "project_id": {
2414
+ "name": "project_id",
2415
+ "type": "text",
2416
+ "primaryKey": false,
2417
+ "notNull": true,
2418
+ "autoincrement": false
2419
+ },
2420
+ "name": {
2421
+ "name": "name",
2422
+ "type": "text",
2423
+ "primaryKey": false,
2424
+ "notNull": true,
2425
+ "autoincrement": false
2426
+ },
2427
+ "description": {
2428
+ "name": "description",
2429
+ "type": "text",
2430
+ "primaryKey": false,
2431
+ "notNull": false,
2432
+ "autoincrement": false
2433
+ },
2434
+ "config": {
2435
+ "name": "config",
2436
+ "type": "blob",
2437
+ "primaryKey": false,
2438
+ "notNull": true,
2439
+ "autoincrement": false
2440
+ },
2441
+ "function_id": {
2442
+ "name": "function_id",
2443
+ "type": "text",
2444
+ "primaryKey": false,
2445
+ "notNull": false,
2446
+ "autoincrement": false
2447
+ },
2448
+ "credential_reference_id": {
2449
+ "name": "credential_reference_id",
2450
+ "type": "text",
2451
+ "primaryKey": false,
2452
+ "notNull": false,
2453
+ "autoincrement": false
2454
+ },
2455
+ "headers": {
2456
+ "name": "headers",
2457
+ "type": "blob",
2458
+ "primaryKey": false,
2459
+ "notNull": false,
2460
+ "autoincrement": false
2461
+ },
2462
+ "image_url": {
2463
+ "name": "image_url",
2464
+ "type": "text",
2465
+ "primaryKey": false,
2466
+ "notNull": false,
2467
+ "autoincrement": false
2468
+ },
2469
+ "capabilities": {
2470
+ "name": "capabilities",
2471
+ "type": "blob",
2472
+ "primaryKey": false,
2473
+ "notNull": false,
2474
+ "autoincrement": false
2475
+ },
2476
+ "last_error": {
2477
+ "name": "last_error",
2478
+ "type": "text",
2479
+ "primaryKey": false,
2480
+ "notNull": false,
2481
+ "autoincrement": false
2482
+ },
2483
+ "created_at": {
2484
+ "name": "created_at",
2485
+ "type": "text",
2486
+ "primaryKey": false,
2487
+ "notNull": true,
2488
+ "autoincrement": false,
2489
+ "default": "CURRENT_TIMESTAMP"
2490
+ },
2491
+ "updated_at": {
2492
+ "name": "updated_at",
2493
+ "type": "text",
2494
+ "primaryKey": false,
2495
+ "notNull": true,
2496
+ "autoincrement": false,
2497
+ "default": "CURRENT_TIMESTAMP"
2498
+ }
2499
+ },
2500
+ "indexes": {},
2501
+ "foreignKeys": {
2502
+ "tools_project_fk": {
2503
+ "name": "tools_project_fk",
2504
+ "tableFrom": "tools",
2505
+ "tableTo": "projects",
2506
+ "columnsFrom": [
2507
+ "tenant_id",
2508
+ "project_id"
2509
+ ],
2510
+ "columnsTo": [
2511
+ "tenant_id",
2512
+ "id"
2513
+ ],
2514
+ "onDelete": "cascade",
2515
+ "onUpdate": "no action"
2516
+ },
2517
+ "tools_function_fk": {
2518
+ "name": "tools_function_fk",
2519
+ "tableFrom": "tools",
2520
+ "tableTo": "functions",
2521
+ "columnsFrom": [
2522
+ "tenant_id",
2523
+ "project_id",
2524
+ "function_id"
2525
+ ],
2526
+ "columnsTo": [
2527
+ "tenant_id",
2528
+ "project_id",
2529
+ "id"
2530
+ ],
2531
+ "onDelete": "cascade",
2532
+ "onUpdate": "no action"
2533
+ }
2534
+ },
2535
+ "compositePrimaryKeys": {
2536
+ "tools_tenant_id_project_id_id_pk": {
2537
+ "columns": [
2538
+ "tenant_id",
2539
+ "project_id",
2540
+ "id"
2541
+ ],
2542
+ "name": "tools_tenant_id_project_id_id_pk"
2543
+ }
2544
+ },
2545
+ "uniqueConstraints": {},
2546
+ "checkConstraints": {}
2547
+ }
2548
+ },
2549
+ "views": {},
2550
+ "enums": {},
2551
+ "_meta": {
2552
+ "schemas": {},
2553
+ "tables": {},
2554
+ "columns": {}
2555
+ },
2556
+ "internal": {
2557
+ "indexes": {}
2558
+ }
2559
+ }