@inkeep/agents-core 0.31.7 → 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 +7 -7
  7. package/dist/client-exports.d.ts +7 -7
  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 +409 -352
  15. package/dist/index.d.ts +409 -352
  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-lEFnfOQ-.d.ts → schema-CuEjPQt7.d.ts} +876 -1014
  20. package/dist/{schema-ztSm-Iv6.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-qLyZ45lb.d.cts → utility-DF5IUC9K.d.cts} +1230 -1394
  24. package/dist/{utility-qLyZ45lb.d.ts → utility-DF5IUC9K.d.ts} +1230 -1394
  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,2849 +0,0 @@
1
- {
2
- "version": "6",
3
- "dialect": "sqlite",
4
- "id": "2ada3416-9fba-48cc-a8cf-68d9cfc1d06e",
5
- "prevId": "af6fa18d-8ceb-4249-becb-d862ddc18494",
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
- "content": {
1515
- "name": "content",
1516
- "type": "blob",
1517
- "primaryKey": false,
1518
- "notNull": true,
1519
- "autoincrement": false
1520
- },
1521
- "visibility": {
1522
- "name": "visibility",
1523
- "type": "text",
1524
- "primaryKey": false,
1525
- "notNull": true,
1526
- "autoincrement": false,
1527
- "default": "'user-facing'"
1528
- },
1529
- "message_type": {
1530
- "name": "message_type",
1531
- "type": "text",
1532
- "primaryKey": false,
1533
- "notNull": true,
1534
- "autoincrement": false,
1535
- "default": "'chat'"
1536
- },
1537
- "task_id": {
1538
- "name": "task_id",
1539
- "type": "text",
1540
- "primaryKey": false,
1541
- "notNull": false,
1542
- "autoincrement": false
1543
- },
1544
- "parent_message_id": {
1545
- "name": "parent_message_id",
1546
- "type": "text",
1547
- "primaryKey": false,
1548
- "notNull": false,
1549
- "autoincrement": false
1550
- },
1551
- "a2a_task_id": {
1552
- "name": "a2a_task_id",
1553
- "type": "text",
1554
- "primaryKey": false,
1555
- "notNull": false,
1556
- "autoincrement": false
1557
- },
1558
- "a2a_session_id": {
1559
- "name": "a2a_session_id",
1560
- "type": "text",
1561
- "primaryKey": false,
1562
- "notNull": false,
1563
- "autoincrement": false
1564
- },
1565
- "metadata": {
1566
- "name": "metadata",
1567
- "type": "blob",
1568
- "primaryKey": false,
1569
- "notNull": false,
1570
- "autoincrement": false
1571
- },
1572
- "created_at": {
1573
- "name": "created_at",
1574
- "type": "text",
1575
- "primaryKey": false,
1576
- "notNull": true,
1577
- "autoincrement": false,
1578
- "default": "CURRENT_TIMESTAMP"
1579
- },
1580
- "updated_at": {
1581
- "name": "updated_at",
1582
- "type": "text",
1583
- "primaryKey": false,
1584
- "notNull": true,
1585
- "autoincrement": false,
1586
- "default": "CURRENT_TIMESTAMP"
1587
- }
1588
- },
1589
- "indexes": {},
1590
- "foreignKeys": {
1591
- "messages_project_fk": {
1592
- "name": "messages_project_fk",
1593
- "tableFrom": "messages",
1594
- "tableTo": "projects",
1595
- "columnsFrom": [
1596
- "tenant_id",
1597
- "project_id"
1598
- ],
1599
- "columnsTo": [
1600
- "tenant_id",
1601
- "id"
1602
- ],
1603
- "onDelete": "cascade",
1604
- "onUpdate": "no action"
1605
- }
1606
- },
1607
- "compositePrimaryKeys": {
1608
- "messages_tenant_id_project_id_id_pk": {
1609
- "columns": [
1610
- "tenant_id",
1611
- "project_id",
1612
- "id"
1613
- ],
1614
- "name": "messages_tenant_id_project_id_id_pk"
1615
- }
1616
- },
1617
- "uniqueConstraints": {},
1618
- "checkConstraints": {}
1619
- },
1620
- "projects": {
1621
- "name": "projects",
1622
- "columns": {
1623
- "tenant_id": {
1624
- "name": "tenant_id",
1625
- "type": "text",
1626
- "primaryKey": false,
1627
- "notNull": true,
1628
- "autoincrement": false
1629
- },
1630
- "id": {
1631
- "name": "id",
1632
- "type": "text",
1633
- "primaryKey": false,
1634
- "notNull": true,
1635
- "autoincrement": false
1636
- },
1637
- "name": {
1638
- "name": "name",
1639
- "type": "text",
1640
- "primaryKey": false,
1641
- "notNull": true,
1642
- "autoincrement": false
1643
- },
1644
- "description": {
1645
- "name": "description",
1646
- "type": "text",
1647
- "primaryKey": false,
1648
- "notNull": true,
1649
- "autoincrement": false
1650
- },
1651
- "models": {
1652
- "name": "models",
1653
- "type": "text",
1654
- "primaryKey": false,
1655
- "notNull": false,
1656
- "autoincrement": false
1657
- },
1658
- "stop_when": {
1659
- "name": "stop_when",
1660
- "type": "text",
1661
- "primaryKey": false,
1662
- "notNull": false,
1663
- "autoincrement": false
1664
- },
1665
- "created_at": {
1666
- "name": "created_at",
1667
- "type": "text",
1668
- "primaryKey": false,
1669
- "notNull": true,
1670
- "autoincrement": false,
1671
- "default": "CURRENT_TIMESTAMP"
1672
- },
1673
- "updated_at": {
1674
- "name": "updated_at",
1675
- "type": "text",
1676
- "primaryKey": false,
1677
- "notNull": true,
1678
- "autoincrement": false,
1679
- "default": "CURRENT_TIMESTAMP"
1680
- }
1681
- },
1682
- "indexes": {},
1683
- "foreignKeys": {},
1684
- "compositePrimaryKeys": {
1685
- "projects_tenant_id_id_pk": {
1686
- "columns": [
1687
- "tenant_id",
1688
- "id"
1689
- ],
1690
- "name": "projects_tenant_id_id_pk"
1691
- }
1692
- },
1693
- "uniqueConstraints": {},
1694
- "checkConstraints": {}
1695
- },
1696
- "sub_agent_artifact_components": {
1697
- "name": "sub_agent_artifact_components",
1698
- "columns": {
1699
- "tenant_id": {
1700
- "name": "tenant_id",
1701
- "type": "text",
1702
- "primaryKey": false,
1703
- "notNull": true,
1704
- "autoincrement": false
1705
- },
1706
- "id": {
1707
- "name": "id",
1708
- "type": "text",
1709
- "primaryKey": false,
1710
- "notNull": true,
1711
- "autoincrement": false
1712
- },
1713
- "project_id": {
1714
- "name": "project_id",
1715
- "type": "text",
1716
- "primaryKey": false,
1717
- "notNull": true,
1718
- "autoincrement": false
1719
- },
1720
- "agent_id": {
1721
- "name": "agent_id",
1722
- "type": "text",
1723
- "primaryKey": false,
1724
- "notNull": true,
1725
- "autoincrement": false
1726
- },
1727
- "sub_agent_id": {
1728
- "name": "sub_agent_id",
1729
- "type": "text",
1730
- "primaryKey": false,
1731
- "notNull": true,
1732
- "autoincrement": false
1733
- },
1734
- "artifact_component_id": {
1735
- "name": "artifact_component_id",
1736
- "type": "text",
1737
- "primaryKey": false,
1738
- "notNull": true,
1739
- "autoincrement": false
1740
- },
1741
- "created_at": {
1742
- "name": "created_at",
1743
- "type": "text",
1744
- "primaryKey": false,
1745
- "notNull": true,
1746
- "autoincrement": false,
1747
- "default": "CURRENT_TIMESTAMP"
1748
- }
1749
- },
1750
- "indexes": {},
1751
- "foreignKeys": {
1752
- "sub_agent_artifact_components_sub_agent_fk": {
1753
- "name": "sub_agent_artifact_components_sub_agent_fk",
1754
- "tableFrom": "sub_agent_artifact_components",
1755
- "tableTo": "sub_agents",
1756
- "columnsFrom": [
1757
- "tenant_id",
1758
- "project_id",
1759
- "agent_id",
1760
- "sub_agent_id"
1761
- ],
1762
- "columnsTo": [
1763
- "tenant_id",
1764
- "project_id",
1765
- "agent_id",
1766
- "id"
1767
- ],
1768
- "onDelete": "cascade",
1769
- "onUpdate": "no action"
1770
- },
1771
- "sub_agent_artifact_components_artifact_component_fk": {
1772
- "name": "sub_agent_artifact_components_artifact_component_fk",
1773
- "tableFrom": "sub_agent_artifact_components",
1774
- "tableTo": "artifact_components",
1775
- "columnsFrom": [
1776
- "tenant_id",
1777
- "project_id",
1778
- "artifact_component_id"
1779
- ],
1780
- "columnsTo": [
1781
- "tenant_id",
1782
- "project_id",
1783
- "id"
1784
- ],
1785
- "onDelete": "cascade",
1786
- "onUpdate": "no action"
1787
- }
1788
- },
1789
- "compositePrimaryKeys": {
1790
- "sub_agent_artifact_components_tenant_id_project_id_agent_id_sub_agent_id_id_pk": {
1791
- "columns": [
1792
- "tenant_id",
1793
- "project_id",
1794
- "agent_id",
1795
- "sub_agent_id",
1796
- "id"
1797
- ],
1798
- "name": "sub_agent_artifact_components_tenant_id_project_id_agent_id_sub_agent_id_id_pk"
1799
- }
1800
- },
1801
- "uniqueConstraints": {},
1802
- "checkConstraints": {}
1803
- },
1804
- "sub_agent_data_components": {
1805
- "name": "sub_agent_data_components",
1806
- "columns": {
1807
- "tenant_id": {
1808
- "name": "tenant_id",
1809
- "type": "text",
1810
- "primaryKey": false,
1811
- "notNull": true,
1812
- "autoincrement": false
1813
- },
1814
- "id": {
1815
- "name": "id",
1816
- "type": "text",
1817
- "primaryKey": false,
1818
- "notNull": true,
1819
- "autoincrement": false
1820
- },
1821
- "project_id": {
1822
- "name": "project_id",
1823
- "type": "text",
1824
- "primaryKey": false,
1825
- "notNull": true,
1826
- "autoincrement": false
1827
- },
1828
- "agent_id": {
1829
- "name": "agent_id",
1830
- "type": "text",
1831
- "primaryKey": false,
1832
- "notNull": true,
1833
- "autoincrement": false
1834
- },
1835
- "sub_agent_id": {
1836
- "name": "sub_agent_id",
1837
- "type": "text",
1838
- "primaryKey": false,
1839
- "notNull": true,
1840
- "autoincrement": false
1841
- },
1842
- "data_component_id": {
1843
- "name": "data_component_id",
1844
- "type": "text",
1845
- "primaryKey": false,
1846
- "notNull": true,
1847
- "autoincrement": false
1848
- },
1849
- "created_at": {
1850
- "name": "created_at",
1851
- "type": "text",
1852
- "primaryKey": false,
1853
- "notNull": true,
1854
- "autoincrement": false,
1855
- "default": "CURRENT_TIMESTAMP"
1856
- }
1857
- },
1858
- "indexes": {},
1859
- "foreignKeys": {
1860
- "sub_agent_data_components_sub_agent_fk": {
1861
- "name": "sub_agent_data_components_sub_agent_fk",
1862
- "tableFrom": "sub_agent_data_components",
1863
- "tableTo": "sub_agents",
1864
- "columnsFrom": [
1865
- "tenant_id",
1866
- "project_id",
1867
- "agent_id",
1868
- "sub_agent_id"
1869
- ],
1870
- "columnsTo": [
1871
- "tenant_id",
1872
- "project_id",
1873
- "agent_id",
1874
- "id"
1875
- ],
1876
- "onDelete": "cascade",
1877
- "onUpdate": "no action"
1878
- },
1879
- "sub_agent_data_components_data_component_fk": {
1880
- "name": "sub_agent_data_components_data_component_fk",
1881
- "tableFrom": "sub_agent_data_components",
1882
- "tableTo": "data_components",
1883
- "columnsFrom": [
1884
- "tenant_id",
1885
- "project_id",
1886
- "data_component_id"
1887
- ],
1888
- "columnsTo": [
1889
- "tenant_id",
1890
- "project_id",
1891
- "id"
1892
- ],
1893
- "onDelete": "cascade",
1894
- "onUpdate": "no action"
1895
- }
1896
- },
1897
- "compositePrimaryKeys": {
1898
- "sub_agent_data_components_tenant_id_project_id_id_pk": {
1899
- "columns": [
1900
- "tenant_id",
1901
- "project_id",
1902
- "id"
1903
- ],
1904
- "name": "sub_agent_data_components_tenant_id_project_id_id_pk"
1905
- }
1906
- },
1907
- "uniqueConstraints": {},
1908
- "checkConstraints": {}
1909
- },
1910
- "sub_agent_external_agent_relations": {
1911
- "name": "sub_agent_external_agent_relations",
1912
- "columns": {
1913
- "tenant_id": {
1914
- "name": "tenant_id",
1915
- "type": "text",
1916
- "primaryKey": false,
1917
- "notNull": true,
1918
- "autoincrement": false
1919
- },
1920
- "id": {
1921
- "name": "id",
1922
- "type": "text",
1923
- "primaryKey": false,
1924
- "notNull": true,
1925
- "autoincrement": false
1926
- },
1927
- "project_id": {
1928
- "name": "project_id",
1929
- "type": "text",
1930
- "primaryKey": false,
1931
- "notNull": true,
1932
- "autoincrement": false
1933
- },
1934
- "agent_id": {
1935
- "name": "agent_id",
1936
- "type": "text",
1937
- "primaryKey": false,
1938
- "notNull": true,
1939
- "autoincrement": false
1940
- },
1941
- "sub_agent_id": {
1942
- "name": "sub_agent_id",
1943
- "type": "text",
1944
- "primaryKey": false,
1945
- "notNull": true,
1946
- "autoincrement": false
1947
- },
1948
- "external_agent_id": {
1949
- "name": "external_agent_id",
1950
- "type": "text",
1951
- "primaryKey": false,
1952
- "notNull": true,
1953
- "autoincrement": false
1954
- },
1955
- "headers": {
1956
- "name": "headers",
1957
- "type": "blob",
1958
- "primaryKey": false,
1959
- "notNull": false,
1960
- "autoincrement": false
1961
- },
1962
- "created_at": {
1963
- "name": "created_at",
1964
- "type": "text",
1965
- "primaryKey": false,
1966
- "notNull": true,
1967
- "autoincrement": false,
1968
- "default": "CURRENT_TIMESTAMP"
1969
- },
1970
- "updated_at": {
1971
- "name": "updated_at",
1972
- "type": "text",
1973
- "primaryKey": false,
1974
- "notNull": true,
1975
- "autoincrement": false,
1976
- "default": "CURRENT_TIMESTAMP"
1977
- }
1978
- },
1979
- "indexes": {},
1980
- "foreignKeys": {
1981
- "sub_agent_external_agent_relations_sub_agent_fk": {
1982
- "name": "sub_agent_external_agent_relations_sub_agent_fk",
1983
- "tableFrom": "sub_agent_external_agent_relations",
1984
- "tableTo": "sub_agents",
1985
- "columnsFrom": [
1986
- "tenant_id",
1987
- "project_id",
1988
- "agent_id",
1989
- "sub_agent_id"
1990
- ],
1991
- "columnsTo": [
1992
- "tenant_id",
1993
- "project_id",
1994
- "agent_id",
1995
- "id"
1996
- ],
1997
- "onDelete": "cascade",
1998
- "onUpdate": "no action"
1999
- },
2000
- "sub_agent_external_agent_relations_external_agent_fk": {
2001
- "name": "sub_agent_external_agent_relations_external_agent_fk",
2002
- "tableFrom": "sub_agent_external_agent_relations",
2003
- "tableTo": "external_agents",
2004
- "columnsFrom": [
2005
- "tenant_id",
2006
- "project_id",
2007
- "external_agent_id"
2008
- ],
2009
- "columnsTo": [
2010
- "tenant_id",
2011
- "project_id",
2012
- "id"
2013
- ],
2014
- "onDelete": "cascade",
2015
- "onUpdate": "no action"
2016
- }
2017
- },
2018
- "compositePrimaryKeys": {
2019
- "sub_agent_external_agent_relations_tenant_id_project_id_agent_id_id_pk": {
2020
- "columns": [
2021
- "tenant_id",
2022
- "project_id",
2023
- "agent_id",
2024
- "id"
2025
- ],
2026
- "name": "sub_agent_external_agent_relations_tenant_id_project_id_agent_id_id_pk"
2027
- }
2028
- },
2029
- "uniqueConstraints": {},
2030
- "checkConstraints": {}
2031
- },
2032
- "sub_agent_function_tool_relations": {
2033
- "name": "sub_agent_function_tool_relations",
2034
- "columns": {
2035
- "tenant_id": {
2036
- "name": "tenant_id",
2037
- "type": "text",
2038
- "primaryKey": false,
2039
- "notNull": true,
2040
- "autoincrement": false
2041
- },
2042
- "id": {
2043
- "name": "id",
2044
- "type": "text",
2045
- "primaryKey": false,
2046
- "notNull": true,
2047
- "autoincrement": false
2048
- },
2049
- "project_id": {
2050
- "name": "project_id",
2051
- "type": "text",
2052
- "primaryKey": false,
2053
- "notNull": true,
2054
- "autoincrement": false
2055
- },
2056
- "agent_id": {
2057
- "name": "agent_id",
2058
- "type": "text",
2059
- "primaryKey": false,
2060
- "notNull": true,
2061
- "autoincrement": false
2062
- },
2063
- "sub_agent_id": {
2064
- "name": "sub_agent_id",
2065
- "type": "text",
2066
- "primaryKey": false,
2067
- "notNull": true,
2068
- "autoincrement": false
2069
- },
2070
- "function_tool_id": {
2071
- "name": "function_tool_id",
2072
- "type": "text",
2073
- "primaryKey": false,
2074
- "notNull": true,
2075
- "autoincrement": false
2076
- },
2077
- "created_at": {
2078
- "name": "created_at",
2079
- "type": "text",
2080
- "primaryKey": false,
2081
- "notNull": true,
2082
- "autoincrement": false,
2083
- "default": "CURRENT_TIMESTAMP"
2084
- },
2085
- "updated_at": {
2086
- "name": "updated_at",
2087
- "type": "text",
2088
- "primaryKey": false,
2089
- "notNull": true,
2090
- "autoincrement": false,
2091
- "default": "CURRENT_TIMESTAMP"
2092
- }
2093
- },
2094
- "indexes": {},
2095
- "foreignKeys": {
2096
- "sub_agent_function_tool_relations_sub_agent_fk": {
2097
- "name": "sub_agent_function_tool_relations_sub_agent_fk",
2098
- "tableFrom": "sub_agent_function_tool_relations",
2099
- "tableTo": "sub_agents",
2100
- "columnsFrom": [
2101
- "tenant_id",
2102
- "project_id",
2103
- "agent_id",
2104
- "sub_agent_id"
2105
- ],
2106
- "columnsTo": [
2107
- "tenant_id",
2108
- "project_id",
2109
- "agent_id",
2110
- "id"
2111
- ],
2112
- "onDelete": "cascade",
2113
- "onUpdate": "no action"
2114
- },
2115
- "sub_agent_function_tool_relations_function_tool_fk": {
2116
- "name": "sub_agent_function_tool_relations_function_tool_fk",
2117
- "tableFrom": "sub_agent_function_tool_relations",
2118
- "tableTo": "function_tools",
2119
- "columnsFrom": [
2120
- "tenant_id",
2121
- "project_id",
2122
- "agent_id",
2123
- "function_tool_id"
2124
- ],
2125
- "columnsTo": [
2126
- "tenant_id",
2127
- "project_id",
2128
- "agent_id",
2129
- "id"
2130
- ],
2131
- "onDelete": "cascade",
2132
- "onUpdate": "no action"
2133
- }
2134
- },
2135
- "compositePrimaryKeys": {
2136
- "sub_agent_function_tool_relations_tenant_id_project_id_agent_id_id_pk": {
2137
- "columns": [
2138
- "tenant_id",
2139
- "project_id",
2140
- "agent_id",
2141
- "id"
2142
- ],
2143
- "name": "sub_agent_function_tool_relations_tenant_id_project_id_agent_id_id_pk"
2144
- }
2145
- },
2146
- "uniqueConstraints": {},
2147
- "checkConstraints": {}
2148
- },
2149
- "sub_agent_relations": {
2150
- "name": "sub_agent_relations",
2151
- "columns": {
2152
- "tenant_id": {
2153
- "name": "tenant_id",
2154
- "type": "text",
2155
- "primaryKey": false,
2156
- "notNull": true,
2157
- "autoincrement": false
2158
- },
2159
- "id": {
2160
- "name": "id",
2161
- "type": "text",
2162
- "primaryKey": false,
2163
- "notNull": true,
2164
- "autoincrement": false
2165
- },
2166
- "project_id": {
2167
- "name": "project_id",
2168
- "type": "text",
2169
- "primaryKey": false,
2170
- "notNull": true,
2171
- "autoincrement": false
2172
- },
2173
- "agent_id": {
2174
- "name": "agent_id",
2175
- "type": "text",
2176
- "primaryKey": false,
2177
- "notNull": true,
2178
- "autoincrement": false
2179
- },
2180
- "source_sub_agent_id": {
2181
- "name": "source_sub_agent_id",
2182
- "type": "text",
2183
- "primaryKey": false,
2184
- "notNull": true,
2185
- "autoincrement": false
2186
- },
2187
- "target_sub_agent_id": {
2188
- "name": "target_sub_agent_id",
2189
- "type": "text",
2190
- "primaryKey": false,
2191
- "notNull": false,
2192
- "autoincrement": false
2193
- },
2194
- "relation_type": {
2195
- "name": "relation_type",
2196
- "type": "text",
2197
- "primaryKey": false,
2198
- "notNull": false,
2199
- "autoincrement": false
2200
- },
2201
- "created_at": {
2202
- "name": "created_at",
2203
- "type": "text",
2204
- "primaryKey": false,
2205
- "notNull": true,
2206
- "autoincrement": false,
2207
- "default": "CURRENT_TIMESTAMP"
2208
- },
2209
- "updated_at": {
2210
- "name": "updated_at",
2211
- "type": "text",
2212
- "primaryKey": false,
2213
- "notNull": true,
2214
- "autoincrement": false,
2215
- "default": "CURRENT_TIMESTAMP"
2216
- }
2217
- },
2218
- "indexes": {},
2219
- "foreignKeys": {
2220
- "sub_agent_relations_agent_fk": {
2221
- "name": "sub_agent_relations_agent_fk",
2222
- "tableFrom": "sub_agent_relations",
2223
- "tableTo": "agent",
2224
- "columnsFrom": [
2225
- "tenant_id",
2226
- "project_id",
2227
- "agent_id"
2228
- ],
2229
- "columnsTo": [
2230
- "tenant_id",
2231
- "project_id",
2232
- "id"
2233
- ],
2234
- "onDelete": "cascade",
2235
- "onUpdate": "no action"
2236
- }
2237
- },
2238
- "compositePrimaryKeys": {
2239
- "sub_agent_relations_tenant_id_project_id_agent_id_id_pk": {
2240
- "columns": [
2241
- "tenant_id",
2242
- "project_id",
2243
- "agent_id",
2244
- "id"
2245
- ],
2246
- "name": "sub_agent_relations_tenant_id_project_id_agent_id_id_pk"
2247
- }
2248
- },
2249
- "uniqueConstraints": {},
2250
- "checkConstraints": {}
2251
- },
2252
- "sub_agent_tool_relations": {
2253
- "name": "sub_agent_tool_relations",
2254
- "columns": {
2255
- "tenant_id": {
2256
- "name": "tenant_id",
2257
- "type": "text",
2258
- "primaryKey": false,
2259
- "notNull": true,
2260
- "autoincrement": false
2261
- },
2262
- "id": {
2263
- "name": "id",
2264
- "type": "text",
2265
- "primaryKey": false,
2266
- "notNull": true,
2267
- "autoincrement": false
2268
- },
2269
- "project_id": {
2270
- "name": "project_id",
2271
- "type": "text",
2272
- "primaryKey": false,
2273
- "notNull": true,
2274
- "autoincrement": false
2275
- },
2276
- "agent_id": {
2277
- "name": "agent_id",
2278
- "type": "text",
2279
- "primaryKey": false,
2280
- "notNull": true,
2281
- "autoincrement": false
2282
- },
2283
- "sub_agent_id": {
2284
- "name": "sub_agent_id",
2285
- "type": "text",
2286
- "primaryKey": false,
2287
- "notNull": true,
2288
- "autoincrement": false
2289
- },
2290
- "tool_id": {
2291
- "name": "tool_id",
2292
- "type": "text",
2293
- "primaryKey": false,
2294
- "notNull": true,
2295
- "autoincrement": false
2296
- },
2297
- "selected_tools": {
2298
- "name": "selected_tools",
2299
- "type": "blob",
2300
- "primaryKey": false,
2301
- "notNull": false,
2302
- "autoincrement": false
2303
- },
2304
- "headers": {
2305
- "name": "headers",
2306
- "type": "blob",
2307
- "primaryKey": false,
2308
- "notNull": false,
2309
- "autoincrement": false
2310
- },
2311
- "created_at": {
2312
- "name": "created_at",
2313
- "type": "text",
2314
- "primaryKey": false,
2315
- "notNull": true,
2316
- "autoincrement": false,
2317
- "default": "CURRENT_TIMESTAMP"
2318
- },
2319
- "updated_at": {
2320
- "name": "updated_at",
2321
- "type": "text",
2322
- "primaryKey": false,
2323
- "notNull": true,
2324
- "autoincrement": false,
2325
- "default": "CURRENT_TIMESTAMP"
2326
- }
2327
- },
2328
- "indexes": {},
2329
- "foreignKeys": {
2330
- "sub_agent_tool_relations_agent_fk": {
2331
- "name": "sub_agent_tool_relations_agent_fk",
2332
- "tableFrom": "sub_agent_tool_relations",
2333
- "tableTo": "sub_agents",
2334
- "columnsFrom": [
2335
- "tenant_id",
2336
- "project_id",
2337
- "agent_id",
2338
- "sub_agent_id"
2339
- ],
2340
- "columnsTo": [
2341
- "tenant_id",
2342
- "project_id",
2343
- "agent_id",
2344
- "id"
2345
- ],
2346
- "onDelete": "cascade",
2347
- "onUpdate": "no action"
2348
- },
2349
- "sub_agent_tool_relations_tool_fk": {
2350
- "name": "sub_agent_tool_relations_tool_fk",
2351
- "tableFrom": "sub_agent_tool_relations",
2352
- "tableTo": "tools",
2353
- "columnsFrom": [
2354
- "tenant_id",
2355
- "project_id",
2356
- "tool_id"
2357
- ],
2358
- "columnsTo": [
2359
- "tenant_id",
2360
- "project_id",
2361
- "id"
2362
- ],
2363
- "onDelete": "cascade",
2364
- "onUpdate": "no action"
2365
- }
2366
- },
2367
- "compositePrimaryKeys": {
2368
- "sub_agent_tool_relations_tenant_id_project_id_agent_id_id_pk": {
2369
- "columns": [
2370
- "tenant_id",
2371
- "project_id",
2372
- "agent_id",
2373
- "id"
2374
- ],
2375
- "name": "sub_agent_tool_relations_tenant_id_project_id_agent_id_id_pk"
2376
- }
2377
- },
2378
- "uniqueConstraints": {},
2379
- "checkConstraints": {}
2380
- },
2381
- "sub_agents": {
2382
- "name": "sub_agents",
2383
- "columns": {
2384
- "tenant_id": {
2385
- "name": "tenant_id",
2386
- "type": "text",
2387
- "primaryKey": false,
2388
- "notNull": true,
2389
- "autoincrement": false
2390
- },
2391
- "id": {
2392
- "name": "id",
2393
- "type": "text",
2394
- "primaryKey": false,
2395
- "notNull": true,
2396
- "autoincrement": false
2397
- },
2398
- "project_id": {
2399
- "name": "project_id",
2400
- "type": "text",
2401
- "primaryKey": false,
2402
- "notNull": true,
2403
- "autoincrement": false
2404
- },
2405
- "agent_id": {
2406
- "name": "agent_id",
2407
- "type": "text",
2408
- "primaryKey": false,
2409
- "notNull": true,
2410
- "autoincrement": false
2411
- },
2412
- "name": {
2413
- "name": "name",
2414
- "type": "text",
2415
- "primaryKey": false,
2416
- "notNull": true,
2417
- "autoincrement": false
2418
- },
2419
- "description": {
2420
- "name": "description",
2421
- "type": "text",
2422
- "primaryKey": false,
2423
- "notNull": true,
2424
- "autoincrement": false
2425
- },
2426
- "prompt": {
2427
- "name": "prompt",
2428
- "type": "text",
2429
- "primaryKey": false,
2430
- "notNull": true,
2431
- "autoincrement": false
2432
- },
2433
- "conversation_history_config": {
2434
- "name": "conversation_history_config",
2435
- "type": "text",
2436
- "primaryKey": false,
2437
- "notNull": false,
2438
- "autoincrement": false
2439
- },
2440
- "models": {
2441
- "name": "models",
2442
- "type": "text",
2443
- "primaryKey": false,
2444
- "notNull": false,
2445
- "autoincrement": false
2446
- },
2447
- "stop_when": {
2448
- "name": "stop_when",
2449
- "type": "text",
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_agents_agents_fk": {
2474
- "name": "sub_agents_agents_fk",
2475
- "tableFrom": "sub_agents",
2476
- "tableTo": "agent",
2477
- "columnsFrom": [
2478
- "tenant_id",
2479
- "project_id",
2480
- "agent_id"
2481
- ],
2482
- "columnsTo": [
2483
- "tenant_id",
2484
- "project_id",
2485
- "id"
2486
- ],
2487
- "onDelete": "cascade",
2488
- "onUpdate": "no action"
2489
- }
2490
- },
2491
- "compositePrimaryKeys": {
2492
- "sub_agents_tenant_id_project_id_agent_id_id_pk": {
2493
- "columns": [
2494
- "tenant_id",
2495
- "project_id",
2496
- "agent_id",
2497
- "id"
2498
- ],
2499
- "name": "sub_agents_tenant_id_project_id_agent_id_id_pk"
2500
- }
2501
- },
2502
- "uniqueConstraints": {},
2503
- "checkConstraints": {}
2504
- },
2505
- "task_relations": {
2506
- "name": "task_relations",
2507
- "columns": {
2508
- "tenant_id": {
2509
- "name": "tenant_id",
2510
- "type": "text",
2511
- "primaryKey": false,
2512
- "notNull": true,
2513
- "autoincrement": false
2514
- },
2515
- "id": {
2516
- "name": "id",
2517
- "type": "text",
2518
- "primaryKey": false,
2519
- "notNull": true,
2520
- "autoincrement": false
2521
- },
2522
- "project_id": {
2523
- "name": "project_id",
2524
- "type": "text",
2525
- "primaryKey": false,
2526
- "notNull": true,
2527
- "autoincrement": false
2528
- },
2529
- "parent_task_id": {
2530
- "name": "parent_task_id",
2531
- "type": "text",
2532
- "primaryKey": false,
2533
- "notNull": true,
2534
- "autoincrement": false
2535
- },
2536
- "child_task_id": {
2537
- "name": "child_task_id",
2538
- "type": "text",
2539
- "primaryKey": false,
2540
- "notNull": true,
2541
- "autoincrement": false
2542
- },
2543
- "relation_type": {
2544
- "name": "relation_type",
2545
- "type": "text",
2546
- "primaryKey": false,
2547
- "notNull": false,
2548
- "autoincrement": false,
2549
- "default": "'parent_child'"
2550
- },
2551
- "created_at": {
2552
- "name": "created_at",
2553
- "type": "text",
2554
- "primaryKey": false,
2555
- "notNull": true,
2556
- "autoincrement": false,
2557
- "default": "CURRENT_TIMESTAMP"
2558
- },
2559
- "updated_at": {
2560
- "name": "updated_at",
2561
- "type": "text",
2562
- "primaryKey": false,
2563
- "notNull": true,
2564
- "autoincrement": false,
2565
- "default": "CURRENT_TIMESTAMP"
2566
- }
2567
- },
2568
- "indexes": {},
2569
- "foreignKeys": {
2570
- "task_relations_project_fk": {
2571
- "name": "task_relations_project_fk",
2572
- "tableFrom": "task_relations",
2573
- "tableTo": "projects",
2574
- "columnsFrom": [
2575
- "tenant_id",
2576
- "project_id"
2577
- ],
2578
- "columnsTo": [
2579
- "tenant_id",
2580
- "id"
2581
- ],
2582
- "onDelete": "cascade",
2583
- "onUpdate": "no action"
2584
- }
2585
- },
2586
- "compositePrimaryKeys": {
2587
- "task_relations_tenant_id_project_id_id_pk": {
2588
- "columns": [
2589
- "tenant_id",
2590
- "project_id",
2591
- "id"
2592
- ],
2593
- "name": "task_relations_tenant_id_project_id_id_pk"
2594
- }
2595
- },
2596
- "uniqueConstraints": {},
2597
- "checkConstraints": {}
2598
- },
2599
- "tasks": {
2600
- "name": "tasks",
2601
- "columns": {
2602
- "tenant_id": {
2603
- "name": "tenant_id",
2604
- "type": "text",
2605
- "primaryKey": false,
2606
- "notNull": true,
2607
- "autoincrement": false
2608
- },
2609
- "id": {
2610
- "name": "id",
2611
- "type": "text",
2612
- "primaryKey": false,
2613
- "notNull": true,
2614
- "autoincrement": false
2615
- },
2616
- "project_id": {
2617
- "name": "project_id",
2618
- "type": "text",
2619
- "primaryKey": false,
2620
- "notNull": true,
2621
- "autoincrement": false
2622
- },
2623
- "agent_id": {
2624
- "name": "agent_id",
2625
- "type": "text",
2626
- "primaryKey": false,
2627
- "notNull": true,
2628
- "autoincrement": false
2629
- },
2630
- "sub_agent_id": {
2631
- "name": "sub_agent_id",
2632
- "type": "text",
2633
- "primaryKey": false,
2634
- "notNull": true,
2635
- "autoincrement": false
2636
- },
2637
- "context_id": {
2638
- "name": "context_id",
2639
- "type": "text",
2640
- "primaryKey": false,
2641
- "notNull": true,
2642
- "autoincrement": false
2643
- },
2644
- "status": {
2645
- "name": "status",
2646
- "type": "text",
2647
- "primaryKey": false,
2648
- "notNull": true,
2649
- "autoincrement": false
2650
- },
2651
- "metadata": {
2652
- "name": "metadata",
2653
- "type": "blob",
2654
- "primaryKey": false,
2655
- "notNull": false,
2656
- "autoincrement": false
2657
- },
2658
- "created_at": {
2659
- "name": "created_at",
2660
- "type": "text",
2661
- "primaryKey": false,
2662
- "notNull": true,
2663
- "autoincrement": false,
2664
- "default": "CURRENT_TIMESTAMP"
2665
- },
2666
- "updated_at": {
2667
- "name": "updated_at",
2668
- "type": "text",
2669
- "primaryKey": false,
2670
- "notNull": true,
2671
- "autoincrement": false,
2672
- "default": "CURRENT_TIMESTAMP"
2673
- }
2674
- },
2675
- "indexes": {},
2676
- "foreignKeys": {
2677
- "tasks_sub_agent_fk": {
2678
- "name": "tasks_sub_agent_fk",
2679
- "tableFrom": "tasks",
2680
- "tableTo": "sub_agents",
2681
- "columnsFrom": [
2682
- "tenant_id",
2683
- "project_id",
2684
- "agent_id",
2685
- "sub_agent_id"
2686
- ],
2687
- "columnsTo": [
2688
- "tenant_id",
2689
- "project_id",
2690
- "agent_id",
2691
- "id"
2692
- ],
2693
- "onDelete": "cascade",
2694
- "onUpdate": "no action"
2695
- }
2696
- },
2697
- "compositePrimaryKeys": {
2698
- "tasks_tenant_id_project_id_id_pk": {
2699
- "columns": [
2700
- "tenant_id",
2701
- "project_id",
2702
- "id"
2703
- ],
2704
- "name": "tasks_tenant_id_project_id_id_pk"
2705
- }
2706
- },
2707
- "uniqueConstraints": {},
2708
- "checkConstraints": {}
2709
- },
2710
- "tools": {
2711
- "name": "tools",
2712
- "columns": {
2713
- "tenant_id": {
2714
- "name": "tenant_id",
2715
- "type": "text",
2716
- "primaryKey": false,
2717
- "notNull": true,
2718
- "autoincrement": false
2719
- },
2720
- "id": {
2721
- "name": "id",
2722
- "type": "text",
2723
- "primaryKey": false,
2724
- "notNull": true,
2725
- "autoincrement": false
2726
- },
2727
- "project_id": {
2728
- "name": "project_id",
2729
- "type": "text",
2730
- "primaryKey": false,
2731
- "notNull": true,
2732
- "autoincrement": false
2733
- },
2734
- "name": {
2735
- "name": "name",
2736
- "type": "text",
2737
- "primaryKey": false,
2738
- "notNull": true,
2739
- "autoincrement": false
2740
- },
2741
- "description": {
2742
- "name": "description",
2743
- "type": "text",
2744
- "primaryKey": false,
2745
- "notNull": false,
2746
- "autoincrement": false
2747
- },
2748
- "config": {
2749
- "name": "config",
2750
- "type": "blob",
2751
- "primaryKey": false,
2752
- "notNull": true,
2753
- "autoincrement": false
2754
- },
2755
- "credential_reference_id": {
2756
- "name": "credential_reference_id",
2757
- "type": "text",
2758
- "primaryKey": false,
2759
- "notNull": false,
2760
- "autoincrement": false
2761
- },
2762
- "headers": {
2763
- "name": "headers",
2764
- "type": "blob",
2765
- "primaryKey": false,
2766
- "notNull": false,
2767
- "autoincrement": false
2768
- },
2769
- "image_url": {
2770
- "name": "image_url",
2771
- "type": "text",
2772
- "primaryKey": false,
2773
- "notNull": false,
2774
- "autoincrement": false
2775
- },
2776
- "capabilities": {
2777
- "name": "capabilities",
2778
- "type": "blob",
2779
- "primaryKey": false,
2780
- "notNull": false,
2781
- "autoincrement": false
2782
- },
2783
- "last_error": {
2784
- "name": "last_error",
2785
- "type": "text",
2786
- "primaryKey": false,
2787
- "notNull": false,
2788
- "autoincrement": false
2789
- },
2790
- "created_at": {
2791
- "name": "created_at",
2792
- "type": "text",
2793
- "primaryKey": false,
2794
- "notNull": true,
2795
- "autoincrement": false,
2796
- "default": "CURRENT_TIMESTAMP"
2797
- },
2798
- "updated_at": {
2799
- "name": "updated_at",
2800
- "type": "text",
2801
- "primaryKey": false,
2802
- "notNull": true,
2803
- "autoincrement": false,
2804
- "default": "CURRENT_TIMESTAMP"
2805
- }
2806
- },
2807
- "indexes": {},
2808
- "foreignKeys": {
2809
- "tools_project_fk": {
2810
- "name": "tools_project_fk",
2811
- "tableFrom": "tools",
2812
- "tableTo": "projects",
2813
- "columnsFrom": [
2814
- "tenant_id",
2815
- "project_id"
2816
- ],
2817
- "columnsTo": [
2818
- "tenant_id",
2819
- "id"
2820
- ],
2821
- "onDelete": "cascade",
2822
- "onUpdate": "no action"
2823
- }
2824
- },
2825
- "compositePrimaryKeys": {
2826
- "tools_tenant_id_project_id_id_pk": {
2827
- "columns": [
2828
- "tenant_id",
2829
- "project_id",
2830
- "id"
2831
- ],
2832
- "name": "tools_tenant_id_project_id_id_pk"
2833
- }
2834
- },
2835
- "uniqueConstraints": {},
2836
- "checkConstraints": {}
2837
- }
2838
- },
2839
- "views": {},
2840
- "enums": {},
2841
- "_meta": {
2842
- "schemas": {},
2843
- "tables": {},
2844
- "columns": {}
2845
- },
2846
- "internal": {
2847
- "indexes": {}
2848
- }
2849
- }