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