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