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