@inkeep/agents-core 0.50.5 → 0.50.6

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 (30) hide show
  1. package/dist/auth/auth-schema.d.ts +105 -105
  2. package/dist/auth/auth-validation-schemas.d.ts +148 -148
  3. package/dist/auth/auth.d.ts +18 -18
  4. package/dist/auth/permissions.d.ts +9 -9
  5. package/dist/data-access/manage/agents.d.ts +48 -48
  6. package/dist/data-access/manage/artifactComponents.d.ts +14 -14
  7. package/dist/data-access/manage/contextConfigs.d.ts +20 -20
  8. package/dist/data-access/manage/dataComponents.d.ts +6 -6
  9. package/dist/data-access/manage/functionTools.d.ts +18 -18
  10. package/dist/data-access/manage/scope-helpers.d.ts +5 -5
  11. package/dist/data-access/manage/skills.d.ts +17 -17
  12. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
  13. package/dist/data-access/manage/subAgentRelations.d.ts +30 -30
  14. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
  15. package/dist/data-access/manage/subAgents.d.ts +24 -24
  16. package/dist/data-access/manage/tools.d.ts +30 -30
  17. package/dist/data-access/manage/triggers.d.ts +2 -2
  18. package/dist/data-access/runtime/apiKeys.d.ts +16 -16
  19. package/dist/data-access/runtime/conversations.d.ts +20 -20
  20. package/dist/data-access/runtime/messages.d.ts +15 -15
  21. package/dist/data-access/runtime/tasks.d.ts +5 -5
  22. package/dist/db/manage/manage-schema.d.ts +96 -96
  23. package/dist/db/manage/manage-schema.js +1 -1
  24. package/dist/db/runtime/runtime-schema.d.ts +28 -28
  25. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  26. package/dist/validation/schemas.d.ts +404 -404
  27. package/drizzle/manage/meta/_journal.json +0 -7
  28. package/package.json +1 -1
  29. package/drizzle/manage/0010_oval_angel.sql +0 -2
  30. package/drizzle/manage/meta/0010_snapshot.json +0 -3673
@@ -1,3673 +0,0 @@
1
- {
2
- "id": "daf21616-0c4f-434f-9558-1edb390da841",
3
- "prevId": "9f565fbc-4ecf-462f-93f5-c9793e3737f6",
4
- "version": "7",
5
- "dialect": "postgresql",
6
- "tables": {
7
- "public.agent": {
8
- "name": "agent",
9
- "schema": "",
10
- "columns": {
11
- "tenant_id": {
12
- "name": "tenant_id",
13
- "type": "varchar(256)",
14
- "primaryKey": false,
15
- "notNull": true
16
- },
17
- "id": {
18
- "name": "id",
19
- "type": "varchar(256)",
20
- "primaryKey": false,
21
- "notNull": true
22
- },
23
- "project_id": {
24
- "name": "project_id",
25
- "type": "varchar(256)",
26
- "primaryKey": false,
27
- "notNull": true
28
- },
29
- "name": {
30
- "name": "name",
31
- "type": "varchar(256)",
32
- "primaryKey": false,
33
- "notNull": true
34
- },
35
- "description": {
36
- "name": "description",
37
- "type": "text",
38
- "primaryKey": false,
39
- "notNull": false
40
- },
41
- "default_sub_agent_id": {
42
- "name": "default_sub_agent_id",
43
- "type": "varchar(256)",
44
- "primaryKey": false,
45
- "notNull": false
46
- },
47
- "context_config_id": {
48
- "name": "context_config_id",
49
- "type": "varchar(256)",
50
- "primaryKey": false,
51
- "notNull": false
52
- },
53
- "models": {
54
- "name": "models",
55
- "type": "jsonb",
56
- "primaryKey": false,
57
- "notNull": false
58
- },
59
- "status_updates": {
60
- "name": "status_updates",
61
- "type": "jsonb",
62
- "primaryKey": false,
63
- "notNull": false
64
- },
65
- "prompt": {
66
- "name": "prompt",
67
- "type": "text",
68
- "primaryKey": false,
69
- "notNull": false
70
- },
71
- "stop_when": {
72
- "name": "stop_when",
73
- "type": "jsonb",
74
- "primaryKey": false,
75
- "notNull": false
76
- },
77
- "created_at": {
78
- "name": "created_at",
79
- "type": "timestamp",
80
- "primaryKey": false,
81
- "notNull": true,
82
- "default": "now()"
83
- },
84
- "updated_at": {
85
- "name": "updated_at",
86
- "type": "timestamp",
87
- "primaryKey": false,
88
- "notNull": true,
89
- "default": "now()"
90
- }
91
- },
92
- "indexes": {},
93
- "foreignKeys": {
94
- "agent_project_fk": {
95
- "name": "agent_project_fk",
96
- "tableFrom": "agent",
97
- "tableTo": "projects",
98
- "columnsFrom": [
99
- "tenant_id",
100
- "project_id"
101
- ],
102
- "columnsTo": [
103
- "tenant_id",
104
- "id"
105
- ],
106
- "onDelete": "cascade",
107
- "onUpdate": "no action"
108
- }
109
- },
110
- "compositePrimaryKeys": {
111
- "agent_tenant_id_project_id_id_pk": {
112
- "name": "agent_tenant_id_project_id_id_pk",
113
- "columns": [
114
- "tenant_id",
115
- "project_id",
116
- "id"
117
- ]
118
- }
119
- },
120
- "uniqueConstraints": {},
121
- "policies": {},
122
- "checkConstraints": {},
123
- "isRLSEnabled": false
124
- },
125
- "public.artifact_components": {
126
- "name": "artifact_components",
127
- "schema": "",
128
- "columns": {
129
- "tenant_id": {
130
- "name": "tenant_id",
131
- "type": "varchar(256)",
132
- "primaryKey": false,
133
- "notNull": true
134
- },
135
- "id": {
136
- "name": "id",
137
- "type": "varchar(256)",
138
- "primaryKey": false,
139
- "notNull": true
140
- },
141
- "project_id": {
142
- "name": "project_id",
143
- "type": "varchar(256)",
144
- "primaryKey": false,
145
- "notNull": true
146
- },
147
- "name": {
148
- "name": "name",
149
- "type": "varchar(256)",
150
- "primaryKey": false,
151
- "notNull": true
152
- },
153
- "description": {
154
- "name": "description",
155
- "type": "text",
156
- "primaryKey": false,
157
- "notNull": false
158
- },
159
- "props": {
160
- "name": "props",
161
- "type": "jsonb",
162
- "primaryKey": false,
163
- "notNull": false
164
- },
165
- "render": {
166
- "name": "render",
167
- "type": "jsonb",
168
- "primaryKey": false,
169
- "notNull": false
170
- },
171
- "created_at": {
172
- "name": "created_at",
173
- "type": "timestamp",
174
- "primaryKey": false,
175
- "notNull": true,
176
- "default": "now()"
177
- },
178
- "updated_at": {
179
- "name": "updated_at",
180
- "type": "timestamp",
181
- "primaryKey": false,
182
- "notNull": true,
183
- "default": "now()"
184
- }
185
- },
186
- "indexes": {},
187
- "foreignKeys": {
188
- "artifact_components_project_fk": {
189
- "name": "artifact_components_project_fk",
190
- "tableFrom": "artifact_components",
191
- "tableTo": "projects",
192
- "columnsFrom": [
193
- "tenant_id",
194
- "project_id"
195
- ],
196
- "columnsTo": [
197
- "tenant_id",
198
- "id"
199
- ],
200
- "onDelete": "cascade",
201
- "onUpdate": "no action"
202
- }
203
- },
204
- "compositePrimaryKeys": {
205
- "artifact_components_tenant_id_project_id_id_pk": {
206
- "name": "artifact_components_tenant_id_project_id_id_pk",
207
- "columns": [
208
- "tenant_id",
209
- "project_id",
210
- "id"
211
- ]
212
- }
213
- },
214
- "uniqueConstraints": {},
215
- "policies": {},
216
- "checkConstraints": {},
217
- "isRLSEnabled": false
218
- },
219
- "public.context_configs": {
220
- "name": "context_configs",
221
- "schema": "",
222
- "columns": {
223
- "tenant_id": {
224
- "name": "tenant_id",
225
- "type": "varchar(256)",
226
- "primaryKey": false,
227
- "notNull": true
228
- },
229
- "id": {
230
- "name": "id",
231
- "type": "varchar(256)",
232
- "primaryKey": false,
233
- "notNull": true
234
- },
235
- "project_id": {
236
- "name": "project_id",
237
- "type": "varchar(256)",
238
- "primaryKey": false,
239
- "notNull": true
240
- },
241
- "agent_id": {
242
- "name": "agent_id",
243
- "type": "varchar(256)",
244
- "primaryKey": false,
245
- "notNull": true
246
- },
247
- "headers_schema": {
248
- "name": "headers_schema",
249
- "type": "jsonb",
250
- "primaryKey": false,
251
- "notNull": false
252
- },
253
- "context_variables": {
254
- "name": "context_variables",
255
- "type": "jsonb",
256
- "primaryKey": false,
257
- "notNull": false
258
- },
259
- "created_at": {
260
- "name": "created_at",
261
- "type": "timestamp",
262
- "primaryKey": false,
263
- "notNull": true,
264
- "default": "now()"
265
- },
266
- "updated_at": {
267
- "name": "updated_at",
268
- "type": "timestamp",
269
- "primaryKey": false,
270
- "notNull": true,
271
- "default": "now()"
272
- }
273
- },
274
- "indexes": {},
275
- "foreignKeys": {
276
- "context_configs_agent_fk": {
277
- "name": "context_configs_agent_fk",
278
- "tableFrom": "context_configs",
279
- "tableTo": "agent",
280
- "columnsFrom": [
281
- "tenant_id",
282
- "project_id",
283
- "agent_id"
284
- ],
285
- "columnsTo": [
286
- "tenant_id",
287
- "project_id",
288
- "id"
289
- ],
290
- "onDelete": "cascade",
291
- "onUpdate": "no action"
292
- }
293
- },
294
- "compositePrimaryKeys": {
295
- "context_configs_tenant_id_project_id_agent_id_id_pk": {
296
- "name": "context_configs_tenant_id_project_id_agent_id_id_pk",
297
- "columns": [
298
- "tenant_id",
299
- "project_id",
300
- "agent_id",
301
- "id"
302
- ]
303
- }
304
- },
305
- "uniqueConstraints": {},
306
- "policies": {},
307
- "checkConstraints": {},
308
- "isRLSEnabled": false
309
- },
310
- "public.credential_references": {
311
- "name": "credential_references",
312
- "schema": "",
313
- "columns": {
314
- "tenant_id": {
315
- "name": "tenant_id",
316
- "type": "varchar(256)",
317
- "primaryKey": false,
318
- "notNull": true
319
- },
320
- "id": {
321
- "name": "id",
322
- "type": "varchar(256)",
323
- "primaryKey": false,
324
- "notNull": true
325
- },
326
- "project_id": {
327
- "name": "project_id",
328
- "type": "varchar(256)",
329
- "primaryKey": false,
330
- "notNull": true
331
- },
332
- "name": {
333
- "name": "name",
334
- "type": "varchar(256)",
335
- "primaryKey": false,
336
- "notNull": true
337
- },
338
- "type": {
339
- "name": "type",
340
- "type": "varchar(256)",
341
- "primaryKey": false,
342
- "notNull": true
343
- },
344
- "credential_store_id": {
345
- "name": "credential_store_id",
346
- "type": "varchar(256)",
347
- "primaryKey": false,
348
- "notNull": true
349
- },
350
- "retrieval_params": {
351
- "name": "retrieval_params",
352
- "type": "jsonb",
353
- "primaryKey": false,
354
- "notNull": false
355
- },
356
- "tool_id": {
357
- "name": "tool_id",
358
- "type": "varchar(256)",
359
- "primaryKey": false,
360
- "notNull": false
361
- },
362
- "user_id": {
363
- "name": "user_id",
364
- "type": "varchar(256)",
365
- "primaryKey": false,
366
- "notNull": false
367
- },
368
- "created_by": {
369
- "name": "created_by",
370
- "type": "varchar(256)",
371
- "primaryKey": false,
372
- "notNull": false
373
- },
374
- "created_at": {
375
- "name": "created_at",
376
- "type": "timestamp",
377
- "primaryKey": false,
378
- "notNull": true,
379
- "default": "now()"
380
- },
381
- "updated_at": {
382
- "name": "updated_at",
383
- "type": "timestamp",
384
- "primaryKey": false,
385
- "notNull": true,
386
- "default": "now()"
387
- }
388
- },
389
- "indexes": {},
390
- "foreignKeys": {
391
- "credential_references_project_fk": {
392
- "name": "credential_references_project_fk",
393
- "tableFrom": "credential_references",
394
- "tableTo": "projects",
395
- "columnsFrom": [
396
- "tenant_id",
397
- "project_id"
398
- ],
399
- "columnsTo": [
400
- "tenant_id",
401
- "id"
402
- ],
403
- "onDelete": "cascade",
404
- "onUpdate": "no action"
405
- }
406
- },
407
- "compositePrimaryKeys": {
408
- "credential_references_tenant_id_project_id_id_pk": {
409
- "name": "credential_references_tenant_id_project_id_id_pk",
410
- "columns": [
411
- "tenant_id",
412
- "project_id",
413
- "id"
414
- ]
415
- }
416
- },
417
- "uniqueConstraints": {
418
- "credential_references_id_unique": {
419
- "name": "credential_references_id_unique",
420
- "nullsNotDistinct": false,
421
- "columns": [
422
- "id"
423
- ]
424
- },
425
- "credential_references_tool_user_unique": {
426
- "name": "credential_references_tool_user_unique",
427
- "nullsNotDistinct": false,
428
- "columns": [
429
- "tool_id",
430
- "user_id"
431
- ]
432
- }
433
- },
434
- "policies": {},
435
- "checkConstraints": {},
436
- "isRLSEnabled": false
437
- },
438
- "public.data_components": {
439
- "name": "data_components",
440
- "schema": "",
441
- "columns": {
442
- "tenant_id": {
443
- "name": "tenant_id",
444
- "type": "varchar(256)",
445
- "primaryKey": false,
446
- "notNull": true
447
- },
448
- "id": {
449
- "name": "id",
450
- "type": "varchar(256)",
451
- "primaryKey": false,
452
- "notNull": true
453
- },
454
- "project_id": {
455
- "name": "project_id",
456
- "type": "varchar(256)",
457
- "primaryKey": false,
458
- "notNull": true
459
- },
460
- "name": {
461
- "name": "name",
462
- "type": "varchar(256)",
463
- "primaryKey": false,
464
- "notNull": true
465
- },
466
- "description": {
467
- "name": "description",
468
- "type": "text",
469
- "primaryKey": false,
470
- "notNull": false
471
- },
472
- "props": {
473
- "name": "props",
474
- "type": "jsonb",
475
- "primaryKey": false,
476
- "notNull": true
477
- },
478
- "render": {
479
- "name": "render",
480
- "type": "jsonb",
481
- "primaryKey": false,
482
- "notNull": false
483
- },
484
- "created_at": {
485
- "name": "created_at",
486
- "type": "timestamp",
487
- "primaryKey": false,
488
- "notNull": true,
489
- "default": "now()"
490
- },
491
- "updated_at": {
492
- "name": "updated_at",
493
- "type": "timestamp",
494
- "primaryKey": false,
495
- "notNull": true,
496
- "default": "now()"
497
- }
498
- },
499
- "indexes": {},
500
- "foreignKeys": {
501
- "data_components_project_fk": {
502
- "name": "data_components_project_fk",
503
- "tableFrom": "data_components",
504
- "tableTo": "projects",
505
- "columnsFrom": [
506
- "tenant_id",
507
- "project_id"
508
- ],
509
- "columnsTo": [
510
- "tenant_id",
511
- "id"
512
- ],
513
- "onDelete": "cascade",
514
- "onUpdate": "no action"
515
- }
516
- },
517
- "compositePrimaryKeys": {
518
- "data_components_tenant_id_project_id_id_pk": {
519
- "name": "data_components_tenant_id_project_id_id_pk",
520
- "columns": [
521
- "tenant_id",
522
- "project_id",
523
- "id"
524
- ]
525
- }
526
- },
527
- "uniqueConstraints": {},
528
- "policies": {},
529
- "checkConstraints": {},
530
- "isRLSEnabled": false
531
- },
532
- "public.dataset": {
533
- "name": "dataset",
534
- "schema": "",
535
- "columns": {
536
- "tenant_id": {
537
- "name": "tenant_id",
538
- "type": "varchar(256)",
539
- "primaryKey": false,
540
- "notNull": true
541
- },
542
- "id": {
543
- "name": "id",
544
- "type": "varchar(256)",
545
- "primaryKey": false,
546
- "notNull": true
547
- },
548
- "project_id": {
549
- "name": "project_id",
550
- "type": "varchar(256)",
551
- "primaryKey": false,
552
- "notNull": true
553
- },
554
- "name": {
555
- "name": "name",
556
- "type": "varchar(256)",
557
- "primaryKey": false,
558
- "notNull": true
559
- },
560
- "created_at": {
561
- "name": "created_at",
562
- "type": "timestamp",
563
- "primaryKey": false,
564
- "notNull": true,
565
- "default": "now()"
566
- },
567
- "updated_at": {
568
- "name": "updated_at",
569
- "type": "timestamp",
570
- "primaryKey": false,
571
- "notNull": true,
572
- "default": "now()"
573
- }
574
- },
575
- "indexes": {},
576
- "foreignKeys": {
577
- "dataset_project_fk": {
578
- "name": "dataset_project_fk",
579
- "tableFrom": "dataset",
580
- "tableTo": "projects",
581
- "columnsFrom": [
582
- "tenant_id",
583
- "project_id"
584
- ],
585
- "columnsTo": [
586
- "tenant_id",
587
- "id"
588
- ],
589
- "onDelete": "cascade",
590
- "onUpdate": "no action"
591
- }
592
- },
593
- "compositePrimaryKeys": {
594
- "dataset_tenant_id_project_id_id_pk": {
595
- "name": "dataset_tenant_id_project_id_id_pk",
596
- "columns": [
597
- "tenant_id",
598
- "project_id",
599
- "id"
600
- ]
601
- }
602
- },
603
- "uniqueConstraints": {},
604
- "policies": {},
605
- "checkConstraints": {},
606
- "isRLSEnabled": false
607
- },
608
- "public.dataset_item": {
609
- "name": "dataset_item",
610
- "schema": "",
611
- "columns": {
612
- "tenant_id": {
613
- "name": "tenant_id",
614
- "type": "varchar(256)",
615
- "primaryKey": false,
616
- "notNull": true
617
- },
618
- "id": {
619
- "name": "id",
620
- "type": "varchar(256)",
621
- "primaryKey": false,
622
- "notNull": true
623
- },
624
- "project_id": {
625
- "name": "project_id",
626
- "type": "varchar(256)",
627
- "primaryKey": false,
628
- "notNull": true
629
- },
630
- "dataset_id": {
631
- "name": "dataset_id",
632
- "type": "varchar(256)",
633
- "primaryKey": false,
634
- "notNull": true
635
- },
636
- "input": {
637
- "name": "input",
638
- "type": "jsonb",
639
- "primaryKey": false,
640
- "notNull": true
641
- },
642
- "expected_output": {
643
- "name": "expected_output",
644
- "type": "jsonb",
645
- "primaryKey": false,
646
- "notNull": false
647
- },
648
- "simulation_agent": {
649
- "name": "simulation_agent",
650
- "type": "jsonb",
651
- "primaryKey": false,
652
- "notNull": false
653
- },
654
- "created_at": {
655
- "name": "created_at",
656
- "type": "timestamp",
657
- "primaryKey": false,
658
- "notNull": true,
659
- "default": "now()"
660
- },
661
- "updated_at": {
662
- "name": "updated_at",
663
- "type": "timestamp",
664
- "primaryKey": false,
665
- "notNull": true,
666
- "default": "now()"
667
- }
668
- },
669
- "indexes": {},
670
- "foreignKeys": {
671
- "dataset_item_dataset_fk": {
672
- "name": "dataset_item_dataset_fk",
673
- "tableFrom": "dataset_item",
674
- "tableTo": "dataset",
675
- "columnsFrom": [
676
- "tenant_id",
677
- "project_id",
678
- "dataset_id"
679
- ],
680
- "columnsTo": [
681
- "tenant_id",
682
- "project_id",
683
- "id"
684
- ],
685
- "onDelete": "cascade",
686
- "onUpdate": "no action"
687
- }
688
- },
689
- "compositePrimaryKeys": {
690
- "dataset_item_tenant_id_project_id_id_pk": {
691
- "name": "dataset_item_tenant_id_project_id_id_pk",
692
- "columns": [
693
- "tenant_id",
694
- "project_id",
695
- "id"
696
- ]
697
- }
698
- },
699
- "uniqueConstraints": {},
700
- "policies": {},
701
- "checkConstraints": {},
702
- "isRLSEnabled": false
703
- },
704
- "public.dataset_run_config": {
705
- "name": "dataset_run_config",
706
- "schema": "",
707
- "columns": {
708
- "tenant_id": {
709
- "name": "tenant_id",
710
- "type": "varchar(256)",
711
- "primaryKey": false,
712
- "notNull": true
713
- },
714
- "id": {
715
- "name": "id",
716
- "type": "varchar(256)",
717
- "primaryKey": false,
718
- "notNull": true
719
- },
720
- "project_id": {
721
- "name": "project_id",
722
- "type": "varchar(256)",
723
- "primaryKey": false,
724
- "notNull": true
725
- },
726
- "name": {
727
- "name": "name",
728
- "type": "varchar(256)",
729
- "primaryKey": false,
730
- "notNull": true
731
- },
732
- "description": {
733
- "name": "description",
734
- "type": "text",
735
- "primaryKey": false,
736
- "notNull": false
737
- },
738
- "dataset_id": {
739
- "name": "dataset_id",
740
- "type": "varchar(256)",
741
- "primaryKey": false,
742
- "notNull": true
743
- },
744
- "created_at": {
745
- "name": "created_at",
746
- "type": "timestamp",
747
- "primaryKey": false,
748
- "notNull": true,
749
- "default": "now()"
750
- },
751
- "updated_at": {
752
- "name": "updated_at",
753
- "type": "timestamp",
754
- "primaryKey": false,
755
- "notNull": true,
756
- "default": "now()"
757
- }
758
- },
759
- "indexes": {},
760
- "foreignKeys": {
761
- "dataset_run_config_project_fk": {
762
- "name": "dataset_run_config_project_fk",
763
- "tableFrom": "dataset_run_config",
764
- "tableTo": "projects",
765
- "columnsFrom": [
766
- "tenant_id",
767
- "project_id"
768
- ],
769
- "columnsTo": [
770
- "tenant_id",
771
- "id"
772
- ],
773
- "onDelete": "cascade",
774
- "onUpdate": "no action"
775
- },
776
- "dataset_run_config_dataset_fk": {
777
- "name": "dataset_run_config_dataset_fk",
778
- "tableFrom": "dataset_run_config",
779
- "tableTo": "dataset",
780
- "columnsFrom": [
781
- "tenant_id",
782
- "project_id",
783
- "dataset_id"
784
- ],
785
- "columnsTo": [
786
- "tenant_id",
787
- "project_id",
788
- "id"
789
- ],
790
- "onDelete": "cascade",
791
- "onUpdate": "no action"
792
- }
793
- },
794
- "compositePrimaryKeys": {
795
- "dataset_run_config_tenant_id_project_id_id_pk": {
796
- "name": "dataset_run_config_tenant_id_project_id_id_pk",
797
- "columns": [
798
- "tenant_id",
799
- "project_id",
800
- "id"
801
- ]
802
- }
803
- },
804
- "uniqueConstraints": {},
805
- "policies": {},
806
- "checkConstraints": {},
807
- "isRLSEnabled": false
808
- },
809
- "public.dataset_run_config_agent_relations": {
810
- "name": "dataset_run_config_agent_relations",
811
- "schema": "",
812
- "columns": {
813
- "tenant_id": {
814
- "name": "tenant_id",
815
- "type": "varchar(256)",
816
- "primaryKey": false,
817
- "notNull": true
818
- },
819
- "id": {
820
- "name": "id",
821
- "type": "varchar(256)",
822
- "primaryKey": false,
823
- "notNull": true
824
- },
825
- "project_id": {
826
- "name": "project_id",
827
- "type": "varchar(256)",
828
- "primaryKey": false,
829
- "notNull": true
830
- },
831
- "dataset_run_config_id": {
832
- "name": "dataset_run_config_id",
833
- "type": "varchar(256)",
834
- "primaryKey": false,
835
- "notNull": true
836
- },
837
- "agent_id": {
838
- "name": "agent_id",
839
- "type": "varchar(256)",
840
- "primaryKey": false,
841
- "notNull": true
842
- },
843
- "created_at": {
844
- "name": "created_at",
845
- "type": "timestamp",
846
- "primaryKey": false,
847
- "notNull": true,
848
- "default": "now()"
849
- },
850
- "updated_at": {
851
- "name": "updated_at",
852
- "type": "timestamp",
853
- "primaryKey": false,
854
- "notNull": true,
855
- "default": "now()"
856
- }
857
- },
858
- "indexes": {},
859
- "foreignKeys": {
860
- "dataset_run_config_agent_relations_dataset_run_config_fk": {
861
- "name": "dataset_run_config_agent_relations_dataset_run_config_fk",
862
- "tableFrom": "dataset_run_config_agent_relations",
863
- "tableTo": "dataset_run_config",
864
- "columnsFrom": [
865
- "tenant_id",
866
- "project_id",
867
- "dataset_run_config_id"
868
- ],
869
- "columnsTo": [
870
- "tenant_id",
871
- "project_id",
872
- "id"
873
- ],
874
- "onDelete": "cascade",
875
- "onUpdate": "no action"
876
- },
877
- "dataset_run_config_agent_relations_agent_fk": {
878
- "name": "dataset_run_config_agent_relations_agent_fk",
879
- "tableFrom": "dataset_run_config_agent_relations",
880
- "tableTo": "agent",
881
- "columnsFrom": [
882
- "tenant_id",
883
- "project_id",
884
- "agent_id"
885
- ],
886
- "columnsTo": [
887
- "tenant_id",
888
- "project_id",
889
- "id"
890
- ],
891
- "onDelete": "cascade",
892
- "onUpdate": "no action"
893
- }
894
- },
895
- "compositePrimaryKeys": {
896
- "dataset_run_config_agent_relations_tenant_id_project_id_id_pk": {
897
- "name": "dataset_run_config_agent_relations_tenant_id_project_id_id_pk",
898
- "columns": [
899
- "tenant_id",
900
- "project_id",
901
- "id"
902
- ]
903
- }
904
- },
905
- "uniqueConstraints": {},
906
- "policies": {},
907
- "checkConstraints": {},
908
- "isRLSEnabled": false
909
- },
910
- "public.evaluation_job_config": {
911
- "name": "evaluation_job_config",
912
- "schema": "",
913
- "columns": {
914
- "tenant_id": {
915
- "name": "tenant_id",
916
- "type": "varchar(256)",
917
- "primaryKey": false,
918
- "notNull": true
919
- },
920
- "id": {
921
- "name": "id",
922
- "type": "varchar(256)",
923
- "primaryKey": false,
924
- "notNull": true
925
- },
926
- "project_id": {
927
- "name": "project_id",
928
- "type": "varchar(256)",
929
- "primaryKey": false,
930
- "notNull": true
931
- },
932
- "job_filters": {
933
- "name": "job_filters",
934
- "type": "jsonb",
935
- "primaryKey": false,
936
- "notNull": false
937
- },
938
- "created_at": {
939
- "name": "created_at",
940
- "type": "timestamp",
941
- "primaryKey": false,
942
- "notNull": true,
943
- "default": "now()"
944
- },
945
- "updated_at": {
946
- "name": "updated_at",
947
- "type": "timestamp",
948
- "primaryKey": false,
949
- "notNull": true,
950
- "default": "now()"
951
- }
952
- },
953
- "indexes": {},
954
- "foreignKeys": {
955
- "evaluation_job_config_project_fk": {
956
- "name": "evaluation_job_config_project_fk",
957
- "tableFrom": "evaluation_job_config",
958
- "tableTo": "projects",
959
- "columnsFrom": [
960
- "tenant_id",
961
- "project_id"
962
- ],
963
- "columnsTo": [
964
- "tenant_id",
965
- "id"
966
- ],
967
- "onDelete": "cascade",
968
- "onUpdate": "no action"
969
- }
970
- },
971
- "compositePrimaryKeys": {
972
- "evaluation_job_config_tenant_id_project_id_id_pk": {
973
- "name": "evaluation_job_config_tenant_id_project_id_id_pk",
974
- "columns": [
975
- "tenant_id",
976
- "project_id",
977
- "id"
978
- ]
979
- }
980
- },
981
- "uniqueConstraints": {},
982
- "policies": {},
983
- "checkConstraints": {},
984
- "isRLSEnabled": false
985
- },
986
- "public.evaluation_job_config_evaluator_relations": {
987
- "name": "evaluation_job_config_evaluator_relations",
988
- "schema": "",
989
- "columns": {
990
- "tenant_id": {
991
- "name": "tenant_id",
992
- "type": "varchar(256)",
993
- "primaryKey": false,
994
- "notNull": true
995
- },
996
- "id": {
997
- "name": "id",
998
- "type": "varchar(256)",
999
- "primaryKey": false,
1000
- "notNull": true
1001
- },
1002
- "project_id": {
1003
- "name": "project_id",
1004
- "type": "varchar(256)",
1005
- "primaryKey": false,
1006
- "notNull": true
1007
- },
1008
- "evaluation_job_config_id": {
1009
- "name": "evaluation_job_config_id",
1010
- "type": "varchar(256)",
1011
- "primaryKey": false,
1012
- "notNull": true
1013
- },
1014
- "evaluator_id": {
1015
- "name": "evaluator_id",
1016
- "type": "varchar(256)",
1017
- "primaryKey": false,
1018
- "notNull": true
1019
- },
1020
- "created_at": {
1021
- "name": "created_at",
1022
- "type": "timestamp",
1023
- "primaryKey": false,
1024
- "notNull": true,
1025
- "default": "now()"
1026
- },
1027
- "updated_at": {
1028
- "name": "updated_at",
1029
- "type": "timestamp",
1030
- "primaryKey": false,
1031
- "notNull": true,
1032
- "default": "now()"
1033
- }
1034
- },
1035
- "indexes": {},
1036
- "foreignKeys": {
1037
- "eval_job_cfg_evaluator_rel_job_cfg_fk": {
1038
- "name": "eval_job_cfg_evaluator_rel_job_cfg_fk",
1039
- "tableFrom": "evaluation_job_config_evaluator_relations",
1040
- "tableTo": "evaluation_job_config",
1041
- "columnsFrom": [
1042
- "tenant_id",
1043
- "project_id",
1044
- "evaluation_job_config_id"
1045
- ],
1046
- "columnsTo": [
1047
- "tenant_id",
1048
- "project_id",
1049
- "id"
1050
- ],
1051
- "onDelete": "cascade",
1052
- "onUpdate": "no action"
1053
- },
1054
- "eval_job_cfg_evaluator_rel_evaluator_fk": {
1055
- "name": "eval_job_cfg_evaluator_rel_evaluator_fk",
1056
- "tableFrom": "evaluation_job_config_evaluator_relations",
1057
- "tableTo": "evaluator",
1058
- "columnsFrom": [
1059
- "tenant_id",
1060
- "project_id",
1061
- "evaluator_id"
1062
- ],
1063
- "columnsTo": [
1064
- "tenant_id",
1065
- "project_id",
1066
- "id"
1067
- ],
1068
- "onDelete": "cascade",
1069
- "onUpdate": "no action"
1070
- }
1071
- },
1072
- "compositePrimaryKeys": {
1073
- "eval_job_cfg_evaluator_rel_pk": {
1074
- "name": "eval_job_cfg_evaluator_rel_pk",
1075
- "columns": [
1076
- "tenant_id",
1077
- "project_id",
1078
- "id"
1079
- ]
1080
- }
1081
- },
1082
- "uniqueConstraints": {},
1083
- "policies": {},
1084
- "checkConstraints": {},
1085
- "isRLSEnabled": false
1086
- },
1087
- "public.evaluation_run_config": {
1088
- "name": "evaluation_run_config",
1089
- "schema": "",
1090
- "columns": {
1091
- "tenant_id": {
1092
- "name": "tenant_id",
1093
- "type": "varchar(256)",
1094
- "primaryKey": false,
1095
- "notNull": true
1096
- },
1097
- "id": {
1098
- "name": "id",
1099
- "type": "varchar(256)",
1100
- "primaryKey": false,
1101
- "notNull": true
1102
- },
1103
- "project_id": {
1104
- "name": "project_id",
1105
- "type": "varchar(256)",
1106
- "primaryKey": false,
1107
- "notNull": true
1108
- },
1109
- "name": {
1110
- "name": "name",
1111
- "type": "varchar(256)",
1112
- "primaryKey": false,
1113
- "notNull": true
1114
- },
1115
- "description": {
1116
- "name": "description",
1117
- "type": "text",
1118
- "primaryKey": false,
1119
- "notNull": false
1120
- },
1121
- "is_active": {
1122
- "name": "is_active",
1123
- "type": "boolean",
1124
- "primaryKey": false,
1125
- "notNull": true,
1126
- "default": true
1127
- },
1128
- "created_at": {
1129
- "name": "created_at",
1130
- "type": "timestamp",
1131
- "primaryKey": false,
1132
- "notNull": true,
1133
- "default": "now()"
1134
- },
1135
- "updated_at": {
1136
- "name": "updated_at",
1137
- "type": "timestamp",
1138
- "primaryKey": false,
1139
- "notNull": true,
1140
- "default": "now()"
1141
- }
1142
- },
1143
- "indexes": {},
1144
- "foreignKeys": {
1145
- "evaluation_run_config_project_fk": {
1146
- "name": "evaluation_run_config_project_fk",
1147
- "tableFrom": "evaluation_run_config",
1148
- "tableTo": "projects",
1149
- "columnsFrom": [
1150
- "tenant_id",
1151
- "project_id"
1152
- ],
1153
- "columnsTo": [
1154
- "tenant_id",
1155
- "id"
1156
- ],
1157
- "onDelete": "cascade",
1158
- "onUpdate": "no action"
1159
- }
1160
- },
1161
- "compositePrimaryKeys": {
1162
- "evaluation_run_config_tenant_id_project_id_id_pk": {
1163
- "name": "evaluation_run_config_tenant_id_project_id_id_pk",
1164
- "columns": [
1165
- "tenant_id",
1166
- "project_id",
1167
- "id"
1168
- ]
1169
- }
1170
- },
1171
- "uniqueConstraints": {},
1172
- "policies": {},
1173
- "checkConstraints": {},
1174
- "isRLSEnabled": false
1175
- },
1176
- "public.evaluation_run_config_evaluation_suite_config_relations": {
1177
- "name": "evaluation_run_config_evaluation_suite_config_relations",
1178
- "schema": "",
1179
- "columns": {
1180
- "tenant_id": {
1181
- "name": "tenant_id",
1182
- "type": "varchar(256)",
1183
- "primaryKey": false,
1184
- "notNull": true
1185
- },
1186
- "id": {
1187
- "name": "id",
1188
- "type": "varchar(256)",
1189
- "primaryKey": false,
1190
- "notNull": true
1191
- },
1192
- "project_id": {
1193
- "name": "project_id",
1194
- "type": "varchar(256)",
1195
- "primaryKey": false,
1196
- "notNull": true
1197
- },
1198
- "evaluation_run_config_id": {
1199
- "name": "evaluation_run_config_id",
1200
- "type": "varchar(256)",
1201
- "primaryKey": false,
1202
- "notNull": true
1203
- },
1204
- "evaluation_suite_config_id": {
1205
- "name": "evaluation_suite_config_id",
1206
- "type": "varchar(256)",
1207
- "primaryKey": false,
1208
- "notNull": true
1209
- },
1210
- "created_at": {
1211
- "name": "created_at",
1212
- "type": "timestamp",
1213
- "primaryKey": false,
1214
- "notNull": true,
1215
- "default": "now()"
1216
- },
1217
- "updated_at": {
1218
- "name": "updated_at",
1219
- "type": "timestamp",
1220
- "primaryKey": false,
1221
- "notNull": true,
1222
- "default": "now()"
1223
- }
1224
- },
1225
- "indexes": {},
1226
- "foreignKeys": {
1227
- "eval_run_cfg_eval_suite_rel_run_cfg_fk": {
1228
- "name": "eval_run_cfg_eval_suite_rel_run_cfg_fk",
1229
- "tableFrom": "evaluation_run_config_evaluation_suite_config_relations",
1230
- "tableTo": "evaluation_run_config",
1231
- "columnsFrom": [
1232
- "tenant_id",
1233
- "project_id",
1234
- "evaluation_run_config_id"
1235
- ],
1236
- "columnsTo": [
1237
- "tenant_id",
1238
- "project_id",
1239
- "id"
1240
- ],
1241
- "onDelete": "cascade",
1242
- "onUpdate": "no action"
1243
- },
1244
- "eval_run_cfg_eval_suite_rel_suite_cfg_fk": {
1245
- "name": "eval_run_cfg_eval_suite_rel_suite_cfg_fk",
1246
- "tableFrom": "evaluation_run_config_evaluation_suite_config_relations",
1247
- "tableTo": "evaluation_suite_config",
1248
- "columnsFrom": [
1249
- "tenant_id",
1250
- "project_id",
1251
- "evaluation_suite_config_id"
1252
- ],
1253
- "columnsTo": [
1254
- "tenant_id",
1255
- "project_id",
1256
- "id"
1257
- ],
1258
- "onDelete": "cascade",
1259
- "onUpdate": "no action"
1260
- }
1261
- },
1262
- "compositePrimaryKeys": {
1263
- "eval_run_cfg_eval_suite_cfg_rel_pk": {
1264
- "name": "eval_run_cfg_eval_suite_cfg_rel_pk",
1265
- "columns": [
1266
- "tenant_id",
1267
- "project_id",
1268
- "id"
1269
- ]
1270
- }
1271
- },
1272
- "uniqueConstraints": {},
1273
- "policies": {},
1274
- "checkConstraints": {},
1275
- "isRLSEnabled": false
1276
- },
1277
- "public.evaluation_suite_config": {
1278
- "name": "evaluation_suite_config",
1279
- "schema": "",
1280
- "columns": {
1281
- "tenant_id": {
1282
- "name": "tenant_id",
1283
- "type": "varchar(256)",
1284
- "primaryKey": false,
1285
- "notNull": true
1286
- },
1287
- "id": {
1288
- "name": "id",
1289
- "type": "varchar(256)",
1290
- "primaryKey": false,
1291
- "notNull": true
1292
- },
1293
- "project_id": {
1294
- "name": "project_id",
1295
- "type": "varchar(256)",
1296
- "primaryKey": false,
1297
- "notNull": true
1298
- },
1299
- "filters": {
1300
- "name": "filters",
1301
- "type": "jsonb",
1302
- "primaryKey": false,
1303
- "notNull": false
1304
- },
1305
- "sample_rate": {
1306
- "name": "sample_rate",
1307
- "type": "double precision",
1308
- "primaryKey": false,
1309
- "notNull": false
1310
- },
1311
- "created_at": {
1312
- "name": "created_at",
1313
- "type": "timestamp",
1314
- "primaryKey": false,
1315
- "notNull": true,
1316
- "default": "now()"
1317
- },
1318
- "updated_at": {
1319
- "name": "updated_at",
1320
- "type": "timestamp",
1321
- "primaryKey": false,
1322
- "notNull": true,
1323
- "default": "now()"
1324
- }
1325
- },
1326
- "indexes": {},
1327
- "foreignKeys": {
1328
- "evaluation_suite_config_project_fk": {
1329
- "name": "evaluation_suite_config_project_fk",
1330
- "tableFrom": "evaluation_suite_config",
1331
- "tableTo": "projects",
1332
- "columnsFrom": [
1333
- "tenant_id",
1334
- "project_id"
1335
- ],
1336
- "columnsTo": [
1337
- "tenant_id",
1338
- "id"
1339
- ],
1340
- "onDelete": "cascade",
1341
- "onUpdate": "no action"
1342
- }
1343
- },
1344
- "compositePrimaryKeys": {
1345
- "evaluation_suite_config_tenant_id_project_id_id_pk": {
1346
- "name": "evaluation_suite_config_tenant_id_project_id_id_pk",
1347
- "columns": [
1348
- "tenant_id",
1349
- "project_id",
1350
- "id"
1351
- ]
1352
- }
1353
- },
1354
- "uniqueConstraints": {},
1355
- "policies": {},
1356
- "checkConstraints": {},
1357
- "isRLSEnabled": false
1358
- },
1359
- "public.evaluation_suite_config_evaluator_relations": {
1360
- "name": "evaluation_suite_config_evaluator_relations",
1361
- "schema": "",
1362
- "columns": {
1363
- "tenant_id": {
1364
- "name": "tenant_id",
1365
- "type": "varchar(256)",
1366
- "primaryKey": false,
1367
- "notNull": true
1368
- },
1369
- "id": {
1370
- "name": "id",
1371
- "type": "varchar(256)",
1372
- "primaryKey": false,
1373
- "notNull": true
1374
- },
1375
- "project_id": {
1376
- "name": "project_id",
1377
- "type": "varchar(256)",
1378
- "primaryKey": false,
1379
- "notNull": true
1380
- },
1381
- "evaluation_suite_config_id": {
1382
- "name": "evaluation_suite_config_id",
1383
- "type": "varchar(256)",
1384
- "primaryKey": false,
1385
- "notNull": true
1386
- },
1387
- "evaluator_id": {
1388
- "name": "evaluator_id",
1389
- "type": "varchar(256)",
1390
- "primaryKey": false,
1391
- "notNull": true
1392
- },
1393
- "created_at": {
1394
- "name": "created_at",
1395
- "type": "timestamp",
1396
- "primaryKey": false,
1397
- "notNull": true,
1398
- "default": "now()"
1399
- },
1400
- "updated_at": {
1401
- "name": "updated_at",
1402
- "type": "timestamp",
1403
- "primaryKey": false,
1404
- "notNull": true,
1405
- "default": "now()"
1406
- }
1407
- },
1408
- "indexes": {},
1409
- "foreignKeys": {
1410
- "eval_suite_cfg_evaluator_rel_suite_cfg_fk": {
1411
- "name": "eval_suite_cfg_evaluator_rel_suite_cfg_fk",
1412
- "tableFrom": "evaluation_suite_config_evaluator_relations",
1413
- "tableTo": "evaluation_suite_config",
1414
- "columnsFrom": [
1415
- "tenant_id",
1416
- "project_id",
1417
- "evaluation_suite_config_id"
1418
- ],
1419
- "columnsTo": [
1420
- "tenant_id",
1421
- "project_id",
1422
- "id"
1423
- ],
1424
- "onDelete": "cascade",
1425
- "onUpdate": "no action"
1426
- },
1427
- "eval_suite_cfg_evaluator_rel_evaluator_fk": {
1428
- "name": "eval_suite_cfg_evaluator_rel_evaluator_fk",
1429
- "tableFrom": "evaluation_suite_config_evaluator_relations",
1430
- "tableTo": "evaluator",
1431
- "columnsFrom": [
1432
- "tenant_id",
1433
- "project_id",
1434
- "evaluator_id"
1435
- ],
1436
- "columnsTo": [
1437
- "tenant_id",
1438
- "project_id",
1439
- "id"
1440
- ],
1441
- "onDelete": "cascade",
1442
- "onUpdate": "no action"
1443
- }
1444
- },
1445
- "compositePrimaryKeys": {
1446
- "eval_suite_cfg_evaluator_rel_pk": {
1447
- "name": "eval_suite_cfg_evaluator_rel_pk",
1448
- "columns": [
1449
- "tenant_id",
1450
- "project_id",
1451
- "id"
1452
- ]
1453
- }
1454
- },
1455
- "uniqueConstraints": {},
1456
- "policies": {},
1457
- "checkConstraints": {},
1458
- "isRLSEnabled": false
1459
- },
1460
- "public.evaluator": {
1461
- "name": "evaluator",
1462
- "schema": "",
1463
- "columns": {
1464
- "tenant_id": {
1465
- "name": "tenant_id",
1466
- "type": "varchar(256)",
1467
- "primaryKey": false,
1468
- "notNull": true
1469
- },
1470
- "id": {
1471
- "name": "id",
1472
- "type": "varchar(256)",
1473
- "primaryKey": false,
1474
- "notNull": true
1475
- },
1476
- "project_id": {
1477
- "name": "project_id",
1478
- "type": "varchar(256)",
1479
- "primaryKey": false,
1480
- "notNull": true
1481
- },
1482
- "name": {
1483
- "name": "name",
1484
- "type": "varchar(256)",
1485
- "primaryKey": false,
1486
- "notNull": true
1487
- },
1488
- "description": {
1489
- "name": "description",
1490
- "type": "text",
1491
- "primaryKey": false,
1492
- "notNull": false
1493
- },
1494
- "prompt": {
1495
- "name": "prompt",
1496
- "type": "text",
1497
- "primaryKey": false,
1498
- "notNull": true
1499
- },
1500
- "schema": {
1501
- "name": "schema",
1502
- "type": "jsonb",
1503
- "primaryKey": false,
1504
- "notNull": true
1505
- },
1506
- "model": {
1507
- "name": "model",
1508
- "type": "jsonb",
1509
- "primaryKey": false,
1510
- "notNull": true
1511
- },
1512
- "pass_criteria": {
1513
- "name": "pass_criteria",
1514
- "type": "jsonb",
1515
- "primaryKey": false,
1516
- "notNull": false
1517
- },
1518
- "created_at": {
1519
- "name": "created_at",
1520
- "type": "timestamp",
1521
- "primaryKey": false,
1522
- "notNull": true,
1523
- "default": "now()"
1524
- },
1525
- "updated_at": {
1526
- "name": "updated_at",
1527
- "type": "timestamp",
1528
- "primaryKey": false,
1529
- "notNull": true,
1530
- "default": "now()"
1531
- }
1532
- },
1533
- "indexes": {},
1534
- "foreignKeys": {
1535
- "evaluator_project_fk": {
1536
- "name": "evaluator_project_fk",
1537
- "tableFrom": "evaluator",
1538
- "tableTo": "projects",
1539
- "columnsFrom": [
1540
- "tenant_id",
1541
- "project_id"
1542
- ],
1543
- "columnsTo": [
1544
- "tenant_id",
1545
- "id"
1546
- ],
1547
- "onDelete": "cascade",
1548
- "onUpdate": "no action"
1549
- }
1550
- },
1551
- "compositePrimaryKeys": {
1552
- "evaluator_tenant_id_project_id_id_pk": {
1553
- "name": "evaluator_tenant_id_project_id_id_pk",
1554
- "columns": [
1555
- "tenant_id",
1556
- "project_id",
1557
- "id"
1558
- ]
1559
- }
1560
- },
1561
- "uniqueConstraints": {},
1562
- "policies": {},
1563
- "checkConstraints": {},
1564
- "isRLSEnabled": false
1565
- },
1566
- "public.external_agents": {
1567
- "name": "external_agents",
1568
- "schema": "",
1569
- "columns": {
1570
- "tenant_id": {
1571
- "name": "tenant_id",
1572
- "type": "varchar(256)",
1573
- "primaryKey": false,
1574
- "notNull": true
1575
- },
1576
- "id": {
1577
- "name": "id",
1578
- "type": "varchar(256)",
1579
- "primaryKey": false,
1580
- "notNull": true
1581
- },
1582
- "project_id": {
1583
- "name": "project_id",
1584
- "type": "varchar(256)",
1585
- "primaryKey": false,
1586
- "notNull": true
1587
- },
1588
- "name": {
1589
- "name": "name",
1590
- "type": "varchar(256)",
1591
- "primaryKey": false,
1592
- "notNull": true
1593
- },
1594
- "description": {
1595
- "name": "description",
1596
- "type": "text",
1597
- "primaryKey": false,
1598
- "notNull": false
1599
- },
1600
- "base_url": {
1601
- "name": "base_url",
1602
- "type": "text",
1603
- "primaryKey": false,
1604
- "notNull": true
1605
- },
1606
- "credential_reference_id": {
1607
- "name": "credential_reference_id",
1608
- "type": "varchar(256)",
1609
- "primaryKey": false,
1610
- "notNull": false
1611
- },
1612
- "created_at": {
1613
- "name": "created_at",
1614
- "type": "timestamp",
1615
- "primaryKey": false,
1616
- "notNull": true,
1617
- "default": "now()"
1618
- },
1619
- "updated_at": {
1620
- "name": "updated_at",
1621
- "type": "timestamp",
1622
- "primaryKey": false,
1623
- "notNull": true,
1624
- "default": "now()"
1625
- }
1626
- },
1627
- "indexes": {},
1628
- "foreignKeys": {
1629
- "external_agents_project_fk": {
1630
- "name": "external_agents_project_fk",
1631
- "tableFrom": "external_agents",
1632
- "tableTo": "projects",
1633
- "columnsFrom": [
1634
- "tenant_id",
1635
- "project_id"
1636
- ],
1637
- "columnsTo": [
1638
- "tenant_id",
1639
- "id"
1640
- ],
1641
- "onDelete": "cascade",
1642
- "onUpdate": "no action"
1643
- },
1644
- "external_agents_credential_reference_fk": {
1645
- "name": "external_agents_credential_reference_fk",
1646
- "tableFrom": "external_agents",
1647
- "tableTo": "credential_references",
1648
- "columnsFrom": [
1649
- "credential_reference_id"
1650
- ],
1651
- "columnsTo": [
1652
- "id"
1653
- ],
1654
- "onDelete": "set null",
1655
- "onUpdate": "no action"
1656
- }
1657
- },
1658
- "compositePrimaryKeys": {
1659
- "external_agents_tenant_id_project_id_id_pk": {
1660
- "name": "external_agents_tenant_id_project_id_id_pk",
1661
- "columns": [
1662
- "tenant_id",
1663
- "project_id",
1664
- "id"
1665
- ]
1666
- }
1667
- },
1668
- "uniqueConstraints": {},
1669
- "policies": {},
1670
- "checkConstraints": {},
1671
- "isRLSEnabled": false
1672
- },
1673
- "public.function_tools": {
1674
- "name": "function_tools",
1675
- "schema": "",
1676
- "columns": {
1677
- "tenant_id": {
1678
- "name": "tenant_id",
1679
- "type": "varchar(256)",
1680
- "primaryKey": false,
1681
- "notNull": true
1682
- },
1683
- "id": {
1684
- "name": "id",
1685
- "type": "varchar(256)",
1686
- "primaryKey": false,
1687
- "notNull": true
1688
- },
1689
- "project_id": {
1690
- "name": "project_id",
1691
- "type": "varchar(256)",
1692
- "primaryKey": false,
1693
- "notNull": true
1694
- },
1695
- "agent_id": {
1696
- "name": "agent_id",
1697
- "type": "varchar(256)",
1698
- "primaryKey": false,
1699
- "notNull": true
1700
- },
1701
- "name": {
1702
- "name": "name",
1703
- "type": "varchar(256)",
1704
- "primaryKey": false,
1705
- "notNull": true
1706
- },
1707
- "description": {
1708
- "name": "description",
1709
- "type": "text",
1710
- "primaryKey": false,
1711
- "notNull": false
1712
- },
1713
- "function_id": {
1714
- "name": "function_id",
1715
- "type": "varchar(256)",
1716
- "primaryKey": false,
1717
- "notNull": true
1718
- },
1719
- "created_at": {
1720
- "name": "created_at",
1721
- "type": "timestamp",
1722
- "primaryKey": false,
1723
- "notNull": true,
1724
- "default": "now()"
1725
- },
1726
- "updated_at": {
1727
- "name": "updated_at",
1728
- "type": "timestamp",
1729
- "primaryKey": false,
1730
- "notNull": true,
1731
- "default": "now()"
1732
- }
1733
- },
1734
- "indexes": {},
1735
- "foreignKeys": {
1736
- "function_tools_agent_fk": {
1737
- "name": "function_tools_agent_fk",
1738
- "tableFrom": "function_tools",
1739
- "tableTo": "agent",
1740
- "columnsFrom": [
1741
- "tenant_id",
1742
- "project_id",
1743
- "agent_id"
1744
- ],
1745
- "columnsTo": [
1746
- "tenant_id",
1747
- "project_id",
1748
- "id"
1749
- ],
1750
- "onDelete": "cascade",
1751
- "onUpdate": "no action"
1752
- },
1753
- "function_tools_function_fk": {
1754
- "name": "function_tools_function_fk",
1755
- "tableFrom": "function_tools",
1756
- "tableTo": "functions",
1757
- "columnsFrom": [
1758
- "tenant_id",
1759
- "project_id",
1760
- "function_id"
1761
- ],
1762
- "columnsTo": [
1763
- "tenant_id",
1764
- "project_id",
1765
- "id"
1766
- ],
1767
- "onDelete": "cascade",
1768
- "onUpdate": "no action"
1769
- }
1770
- },
1771
- "compositePrimaryKeys": {
1772
- "function_tools_tenant_id_project_id_agent_id_id_pk": {
1773
- "name": "function_tools_tenant_id_project_id_agent_id_id_pk",
1774
- "columns": [
1775
- "tenant_id",
1776
- "project_id",
1777
- "agent_id",
1778
- "id"
1779
- ]
1780
- }
1781
- },
1782
- "uniqueConstraints": {},
1783
- "policies": {},
1784
- "checkConstraints": {},
1785
- "isRLSEnabled": false
1786
- },
1787
- "public.functions": {
1788
- "name": "functions",
1789
- "schema": "",
1790
- "columns": {
1791
- "tenant_id": {
1792
- "name": "tenant_id",
1793
- "type": "varchar(256)",
1794
- "primaryKey": false,
1795
- "notNull": true
1796
- },
1797
- "id": {
1798
- "name": "id",
1799
- "type": "varchar(256)",
1800
- "primaryKey": false,
1801
- "notNull": true
1802
- },
1803
- "project_id": {
1804
- "name": "project_id",
1805
- "type": "varchar(256)",
1806
- "primaryKey": false,
1807
- "notNull": true
1808
- },
1809
- "input_schema": {
1810
- "name": "input_schema",
1811
- "type": "jsonb",
1812
- "primaryKey": false,
1813
- "notNull": false
1814
- },
1815
- "execute_code": {
1816
- "name": "execute_code",
1817
- "type": "text",
1818
- "primaryKey": false,
1819
- "notNull": true
1820
- },
1821
- "dependencies": {
1822
- "name": "dependencies",
1823
- "type": "jsonb",
1824
- "primaryKey": false,
1825
- "notNull": false
1826
- },
1827
- "created_at": {
1828
- "name": "created_at",
1829
- "type": "timestamp",
1830
- "primaryKey": false,
1831
- "notNull": true,
1832
- "default": "now()"
1833
- },
1834
- "updated_at": {
1835
- "name": "updated_at",
1836
- "type": "timestamp",
1837
- "primaryKey": false,
1838
- "notNull": true,
1839
- "default": "now()"
1840
- }
1841
- },
1842
- "indexes": {},
1843
- "foreignKeys": {
1844
- "functions_project_fk": {
1845
- "name": "functions_project_fk",
1846
- "tableFrom": "functions",
1847
- "tableTo": "projects",
1848
- "columnsFrom": [
1849
- "tenant_id",
1850
- "project_id"
1851
- ],
1852
- "columnsTo": [
1853
- "tenant_id",
1854
- "id"
1855
- ],
1856
- "onDelete": "cascade",
1857
- "onUpdate": "no action"
1858
- }
1859
- },
1860
- "compositePrimaryKeys": {
1861
- "functions_tenant_id_project_id_id_pk": {
1862
- "name": "functions_tenant_id_project_id_id_pk",
1863
- "columns": [
1864
- "tenant_id",
1865
- "project_id",
1866
- "id"
1867
- ]
1868
- }
1869
- },
1870
- "uniqueConstraints": {},
1871
- "policies": {},
1872
- "checkConstraints": {},
1873
- "isRLSEnabled": false
1874
- },
1875
- "public.projects": {
1876
- "name": "projects",
1877
- "schema": "",
1878
- "columns": {
1879
- "tenant_id": {
1880
- "name": "tenant_id",
1881
- "type": "varchar(256)",
1882
- "primaryKey": false,
1883
- "notNull": true
1884
- },
1885
- "id": {
1886
- "name": "id",
1887
- "type": "varchar(256)",
1888
- "primaryKey": false,
1889
- "notNull": true
1890
- },
1891
- "name": {
1892
- "name": "name",
1893
- "type": "varchar(256)",
1894
- "primaryKey": false,
1895
- "notNull": true
1896
- },
1897
- "description": {
1898
- "name": "description",
1899
- "type": "text",
1900
- "primaryKey": false,
1901
- "notNull": false
1902
- },
1903
- "models": {
1904
- "name": "models",
1905
- "type": "jsonb",
1906
- "primaryKey": false,
1907
- "notNull": false
1908
- },
1909
- "stop_when": {
1910
- "name": "stop_when",
1911
- "type": "jsonb",
1912
- "primaryKey": false,
1913
- "notNull": false
1914
- },
1915
- "created_at": {
1916
- "name": "created_at",
1917
- "type": "timestamp",
1918
- "primaryKey": false,
1919
- "notNull": true,
1920
- "default": "now()"
1921
- },
1922
- "updated_at": {
1923
- "name": "updated_at",
1924
- "type": "timestamp",
1925
- "primaryKey": false,
1926
- "notNull": true,
1927
- "default": "now()"
1928
- }
1929
- },
1930
- "indexes": {},
1931
- "foreignKeys": {},
1932
- "compositePrimaryKeys": {
1933
- "projects_tenant_id_id_pk": {
1934
- "name": "projects_tenant_id_id_pk",
1935
- "columns": [
1936
- "tenant_id",
1937
- "id"
1938
- ]
1939
- }
1940
- },
1941
- "uniqueConstraints": {},
1942
- "policies": {},
1943
- "checkConstraints": {},
1944
- "isRLSEnabled": false
1945
- },
1946
- "public.scheduled_triggers": {
1947
- "name": "scheduled_triggers",
1948
- "schema": "",
1949
- "columns": {
1950
- "tenant_id": {
1951
- "name": "tenant_id",
1952
- "type": "varchar(256)",
1953
- "primaryKey": false,
1954
- "notNull": true
1955
- },
1956
- "id": {
1957
- "name": "id",
1958
- "type": "varchar(256)",
1959
- "primaryKey": false,
1960
- "notNull": true
1961
- },
1962
- "project_id": {
1963
- "name": "project_id",
1964
- "type": "varchar(256)",
1965
- "primaryKey": false,
1966
- "notNull": true
1967
- },
1968
- "agent_id": {
1969
- "name": "agent_id",
1970
- "type": "varchar(256)",
1971
- "primaryKey": false,
1972
- "notNull": true
1973
- },
1974
- "name": {
1975
- "name": "name",
1976
- "type": "varchar(256)",
1977
- "primaryKey": false,
1978
- "notNull": true
1979
- },
1980
- "description": {
1981
- "name": "description",
1982
- "type": "text",
1983
- "primaryKey": false,
1984
- "notNull": false
1985
- },
1986
- "enabled": {
1987
- "name": "enabled",
1988
- "type": "boolean",
1989
- "primaryKey": false,
1990
- "notNull": true,
1991
- "default": true
1992
- },
1993
- "cron_expression": {
1994
- "name": "cron_expression",
1995
- "type": "varchar(256)",
1996
- "primaryKey": false,
1997
- "notNull": false
1998
- },
1999
- "cron_timezone": {
2000
- "name": "cron_timezone",
2001
- "type": "varchar(64)",
2002
- "primaryKey": false,
2003
- "notNull": false,
2004
- "default": "'UTC'"
2005
- },
2006
- "run_at": {
2007
- "name": "run_at",
2008
- "type": "timestamp with time zone",
2009
- "primaryKey": false,
2010
- "notNull": false
2011
- },
2012
- "payload": {
2013
- "name": "payload",
2014
- "type": "jsonb",
2015
- "primaryKey": false,
2016
- "notNull": false
2017
- },
2018
- "message_template": {
2019
- "name": "message_template",
2020
- "type": "text",
2021
- "primaryKey": false,
2022
- "notNull": false
2023
- },
2024
- "max_retries": {
2025
- "name": "max_retries",
2026
- "type": "numeric",
2027
- "primaryKey": false,
2028
- "notNull": true,
2029
- "default": 1
2030
- },
2031
- "retry_delay_seconds": {
2032
- "name": "retry_delay_seconds",
2033
- "type": "numeric",
2034
- "primaryKey": false,
2035
- "notNull": true,
2036
- "default": 60
2037
- },
2038
- "timeout_seconds": {
2039
- "name": "timeout_seconds",
2040
- "type": "numeric",
2041
- "primaryKey": false,
2042
- "notNull": true,
2043
- "default": 780
2044
- },
2045
- "created_at": {
2046
- "name": "created_at",
2047
- "type": "timestamp",
2048
- "primaryKey": false,
2049
- "notNull": true,
2050
- "default": "now()"
2051
- },
2052
- "updated_at": {
2053
- "name": "updated_at",
2054
- "type": "timestamp",
2055
- "primaryKey": false,
2056
- "notNull": true,
2057
- "default": "now()"
2058
- }
2059
- },
2060
- "indexes": {},
2061
- "foreignKeys": {
2062
- "scheduled_triggers_agent_fk": {
2063
- "name": "scheduled_triggers_agent_fk",
2064
- "tableFrom": "scheduled_triggers",
2065
- "tableTo": "agent",
2066
- "columnsFrom": [
2067
- "tenant_id",
2068
- "project_id",
2069
- "agent_id"
2070
- ],
2071
- "columnsTo": [
2072
- "tenant_id",
2073
- "project_id",
2074
- "id"
2075
- ],
2076
- "onDelete": "cascade",
2077
- "onUpdate": "no action"
2078
- }
2079
- },
2080
- "compositePrimaryKeys": {
2081
- "scheduled_triggers_tenant_id_project_id_agent_id_id_pk": {
2082
- "name": "scheduled_triggers_tenant_id_project_id_agent_id_id_pk",
2083
- "columns": [
2084
- "tenant_id",
2085
- "project_id",
2086
- "agent_id",
2087
- "id"
2088
- ]
2089
- }
2090
- },
2091
- "uniqueConstraints": {},
2092
- "policies": {},
2093
- "checkConstraints": {},
2094
- "isRLSEnabled": false
2095
- },
2096
- "public.scheduled_workflows": {
2097
- "name": "scheduled_workflows",
2098
- "schema": "",
2099
- "columns": {
2100
- "tenant_id": {
2101
- "name": "tenant_id",
2102
- "type": "varchar(256)",
2103
- "primaryKey": false,
2104
- "notNull": true
2105
- },
2106
- "id": {
2107
- "name": "id",
2108
- "type": "varchar(256)",
2109
- "primaryKey": false,
2110
- "notNull": true
2111
- },
2112
- "project_id": {
2113
- "name": "project_id",
2114
- "type": "varchar(256)",
2115
- "primaryKey": false,
2116
- "notNull": true
2117
- },
2118
- "agent_id": {
2119
- "name": "agent_id",
2120
- "type": "varchar(256)",
2121
- "primaryKey": false,
2122
- "notNull": true
2123
- },
2124
- "name": {
2125
- "name": "name",
2126
- "type": "varchar(256)",
2127
- "primaryKey": false,
2128
- "notNull": true
2129
- },
2130
- "description": {
2131
- "name": "description",
2132
- "type": "text",
2133
- "primaryKey": false,
2134
- "notNull": false
2135
- },
2136
- "workflow_run_id": {
2137
- "name": "workflow_run_id",
2138
- "type": "varchar(256)",
2139
- "primaryKey": false,
2140
- "notNull": false
2141
- },
2142
- "status": {
2143
- "name": "status",
2144
- "type": "varchar(50)",
2145
- "primaryKey": false,
2146
- "notNull": true,
2147
- "default": "'pending'"
2148
- },
2149
- "scheduled_trigger_id": {
2150
- "name": "scheduled_trigger_id",
2151
- "type": "varchar(256)",
2152
- "primaryKey": false,
2153
- "notNull": true
2154
- },
2155
- "created_at": {
2156
- "name": "created_at",
2157
- "type": "timestamp",
2158
- "primaryKey": false,
2159
- "notNull": true,
2160
- "default": "now()"
2161
- },
2162
- "updated_at": {
2163
- "name": "updated_at",
2164
- "type": "timestamp",
2165
- "primaryKey": false,
2166
- "notNull": true,
2167
- "default": "now()"
2168
- }
2169
- },
2170
- "indexes": {},
2171
- "foreignKeys": {
2172
- "scheduled_workflows_agent_fk": {
2173
- "name": "scheduled_workflows_agent_fk",
2174
- "tableFrom": "scheduled_workflows",
2175
- "tableTo": "agent",
2176
- "columnsFrom": [
2177
- "tenant_id",
2178
- "project_id",
2179
- "agent_id"
2180
- ],
2181
- "columnsTo": [
2182
- "tenant_id",
2183
- "project_id",
2184
- "id"
2185
- ],
2186
- "onDelete": "cascade",
2187
- "onUpdate": "no action"
2188
- },
2189
- "scheduled_workflows_trigger_fk": {
2190
- "name": "scheduled_workflows_trigger_fk",
2191
- "tableFrom": "scheduled_workflows",
2192
- "tableTo": "scheduled_triggers",
2193
- "columnsFrom": [
2194
- "tenant_id",
2195
- "project_id",
2196
- "agent_id",
2197
- "scheduled_trigger_id"
2198
- ],
2199
- "columnsTo": [
2200
- "tenant_id",
2201
- "project_id",
2202
- "agent_id",
2203
- "id"
2204
- ],
2205
- "onDelete": "cascade",
2206
- "onUpdate": "no action"
2207
- }
2208
- },
2209
- "compositePrimaryKeys": {
2210
- "scheduled_workflows_tenant_id_project_id_agent_id_id_pk": {
2211
- "name": "scheduled_workflows_tenant_id_project_id_agent_id_id_pk",
2212
- "columns": [
2213
- "tenant_id",
2214
- "project_id",
2215
- "agent_id",
2216
- "id"
2217
- ]
2218
- }
2219
- },
2220
- "uniqueConstraints": {},
2221
- "policies": {},
2222
- "checkConstraints": {},
2223
- "isRLSEnabled": false
2224
- },
2225
- "public.skills": {
2226
- "name": "skills",
2227
- "schema": "",
2228
- "columns": {
2229
- "tenant_id": {
2230
- "name": "tenant_id",
2231
- "type": "varchar(256)",
2232
- "primaryKey": false,
2233
- "notNull": true
2234
- },
2235
- "id": {
2236
- "name": "id",
2237
- "type": "varchar(64)",
2238
- "primaryKey": false,
2239
- "notNull": true
2240
- },
2241
- "project_id": {
2242
- "name": "project_id",
2243
- "type": "varchar(256)",
2244
- "primaryKey": false,
2245
- "notNull": true
2246
- },
2247
- "name": {
2248
- "name": "name",
2249
- "type": "varchar(64)",
2250
- "primaryKey": false,
2251
- "notNull": true
2252
- },
2253
- "description": {
2254
- "name": "description",
2255
- "type": "text",
2256
- "primaryKey": false,
2257
- "notNull": true
2258
- },
2259
- "content": {
2260
- "name": "content",
2261
- "type": "text",
2262
- "primaryKey": false,
2263
- "notNull": true
2264
- },
2265
- "metadata": {
2266
- "name": "metadata",
2267
- "type": "jsonb",
2268
- "primaryKey": false,
2269
- "notNull": false
2270
- },
2271
- "created_at": {
2272
- "name": "created_at",
2273
- "type": "timestamp",
2274
- "primaryKey": false,
2275
- "notNull": true,
2276
- "default": "now()"
2277
- },
2278
- "updated_at": {
2279
- "name": "updated_at",
2280
- "type": "timestamp",
2281
- "primaryKey": false,
2282
- "notNull": true,
2283
- "default": "now()"
2284
- }
2285
- },
2286
- "indexes": {},
2287
- "foreignKeys": {
2288
- "skills_project_fk": {
2289
- "name": "skills_project_fk",
2290
- "tableFrom": "skills",
2291
- "tableTo": "projects",
2292
- "columnsFrom": [
2293
- "tenant_id",
2294
- "project_id"
2295
- ],
2296
- "columnsTo": [
2297
- "tenant_id",
2298
- "id"
2299
- ],
2300
- "onDelete": "cascade",
2301
- "onUpdate": "no action"
2302
- }
2303
- },
2304
- "compositePrimaryKeys": {
2305
- "skills_tenant_id_project_id_id_pk": {
2306
- "name": "skills_tenant_id_project_id_id_pk",
2307
- "columns": [
2308
- "tenant_id",
2309
- "project_id",
2310
- "id"
2311
- ]
2312
- }
2313
- },
2314
- "uniqueConstraints": {},
2315
- "policies": {},
2316
- "checkConstraints": {},
2317
- "isRLSEnabled": false
2318
- },
2319
- "public.sub_agent_artifact_components": {
2320
- "name": "sub_agent_artifact_components",
2321
- "schema": "",
2322
- "columns": {
2323
- "tenant_id": {
2324
- "name": "tenant_id",
2325
- "type": "varchar(256)",
2326
- "primaryKey": false,
2327
- "notNull": true
2328
- },
2329
- "id": {
2330
- "name": "id",
2331
- "type": "varchar(256)",
2332
- "primaryKey": false,
2333
- "notNull": true
2334
- },
2335
- "project_id": {
2336
- "name": "project_id",
2337
- "type": "varchar(256)",
2338
- "primaryKey": false,
2339
- "notNull": true
2340
- },
2341
- "agent_id": {
2342
- "name": "agent_id",
2343
- "type": "varchar(256)",
2344
- "primaryKey": false,
2345
- "notNull": true
2346
- },
2347
- "sub_agent_id": {
2348
- "name": "sub_agent_id",
2349
- "type": "varchar(256)",
2350
- "primaryKey": false,
2351
- "notNull": true
2352
- },
2353
- "artifact_component_id": {
2354
- "name": "artifact_component_id",
2355
- "type": "varchar(256)",
2356
- "primaryKey": false,
2357
- "notNull": true
2358
- },
2359
- "created_at": {
2360
- "name": "created_at",
2361
- "type": "timestamp",
2362
- "primaryKey": false,
2363
- "notNull": true,
2364
- "default": "now()"
2365
- }
2366
- },
2367
- "indexes": {},
2368
- "foreignKeys": {
2369
- "sub_agent_artifact_components_sub_agent_fk": {
2370
- "name": "sub_agent_artifact_components_sub_agent_fk",
2371
- "tableFrom": "sub_agent_artifact_components",
2372
- "tableTo": "sub_agents",
2373
- "columnsFrom": [
2374
- "tenant_id",
2375
- "project_id",
2376
- "agent_id",
2377
- "sub_agent_id"
2378
- ],
2379
- "columnsTo": [
2380
- "tenant_id",
2381
- "project_id",
2382
- "agent_id",
2383
- "id"
2384
- ],
2385
- "onDelete": "cascade",
2386
- "onUpdate": "no action"
2387
- },
2388
- "sub_agent_artifact_components_artifact_component_fk": {
2389
- "name": "sub_agent_artifact_components_artifact_component_fk",
2390
- "tableFrom": "sub_agent_artifact_components",
2391
- "tableTo": "artifact_components",
2392
- "columnsFrom": [
2393
- "tenant_id",
2394
- "project_id",
2395
- "artifact_component_id"
2396
- ],
2397
- "columnsTo": [
2398
- "tenant_id",
2399
- "project_id",
2400
- "id"
2401
- ],
2402
- "onDelete": "cascade",
2403
- "onUpdate": "no action"
2404
- }
2405
- },
2406
- "compositePrimaryKeys": {
2407
- "sub_agent_artifact_components_pk": {
2408
- "name": "sub_agent_artifact_components_pk",
2409
- "columns": [
2410
- "tenant_id",
2411
- "project_id",
2412
- "agent_id",
2413
- "sub_agent_id",
2414
- "id"
2415
- ]
2416
- }
2417
- },
2418
- "uniqueConstraints": {},
2419
- "policies": {},
2420
- "checkConstraints": {},
2421
- "isRLSEnabled": false
2422
- },
2423
- "public.sub_agent_data_components": {
2424
- "name": "sub_agent_data_components",
2425
- "schema": "",
2426
- "columns": {
2427
- "tenant_id": {
2428
- "name": "tenant_id",
2429
- "type": "varchar(256)",
2430
- "primaryKey": false,
2431
- "notNull": true
2432
- },
2433
- "id": {
2434
- "name": "id",
2435
- "type": "varchar(256)",
2436
- "primaryKey": false,
2437
- "notNull": true
2438
- },
2439
- "project_id": {
2440
- "name": "project_id",
2441
- "type": "varchar(256)",
2442
- "primaryKey": false,
2443
- "notNull": true
2444
- },
2445
- "agent_id": {
2446
- "name": "agent_id",
2447
- "type": "varchar(256)",
2448
- "primaryKey": false,
2449
- "notNull": true
2450
- },
2451
- "sub_agent_id": {
2452
- "name": "sub_agent_id",
2453
- "type": "varchar(256)",
2454
- "primaryKey": false,
2455
- "notNull": true
2456
- },
2457
- "data_component_id": {
2458
- "name": "data_component_id",
2459
- "type": "varchar(256)",
2460
- "primaryKey": false,
2461
- "notNull": true
2462
- },
2463
- "created_at": {
2464
- "name": "created_at",
2465
- "type": "timestamp",
2466
- "primaryKey": false,
2467
- "notNull": true,
2468
- "default": "now()"
2469
- }
2470
- },
2471
- "indexes": {},
2472
- "foreignKeys": {
2473
- "sub_agent_data_components_sub_agent_fk": {
2474
- "name": "sub_agent_data_components_sub_agent_fk",
2475
- "tableFrom": "sub_agent_data_components",
2476
- "tableTo": "sub_agents",
2477
- "columnsFrom": [
2478
- "tenant_id",
2479
- "project_id",
2480
- "agent_id",
2481
- "sub_agent_id"
2482
- ],
2483
- "columnsTo": [
2484
- "tenant_id",
2485
- "project_id",
2486
- "agent_id",
2487
- "id"
2488
- ],
2489
- "onDelete": "cascade",
2490
- "onUpdate": "no action"
2491
- },
2492
- "sub_agent_data_components_data_component_fk": {
2493
- "name": "sub_agent_data_components_data_component_fk",
2494
- "tableFrom": "sub_agent_data_components",
2495
- "tableTo": "data_components",
2496
- "columnsFrom": [
2497
- "tenant_id",
2498
- "project_id",
2499
- "data_component_id"
2500
- ],
2501
- "columnsTo": [
2502
- "tenant_id",
2503
- "project_id",
2504
- "id"
2505
- ],
2506
- "onDelete": "cascade",
2507
- "onUpdate": "no action"
2508
- }
2509
- },
2510
- "compositePrimaryKeys": {
2511
- "sub_agent_data_components_tenant_id_project_id_id_pk": {
2512
- "name": "sub_agent_data_components_tenant_id_project_id_id_pk",
2513
- "columns": [
2514
- "tenant_id",
2515
- "project_id",
2516
- "id"
2517
- ]
2518
- }
2519
- },
2520
- "uniqueConstraints": {},
2521
- "policies": {},
2522
- "checkConstraints": {},
2523
- "isRLSEnabled": false
2524
- },
2525
- "public.sub_agent_external_agent_relations": {
2526
- "name": "sub_agent_external_agent_relations",
2527
- "schema": "",
2528
- "columns": {
2529
- "tenant_id": {
2530
- "name": "tenant_id",
2531
- "type": "varchar(256)",
2532
- "primaryKey": false,
2533
- "notNull": true
2534
- },
2535
- "id": {
2536
- "name": "id",
2537
- "type": "varchar(256)",
2538
- "primaryKey": false,
2539
- "notNull": true
2540
- },
2541
- "project_id": {
2542
- "name": "project_id",
2543
- "type": "varchar(256)",
2544
- "primaryKey": false,
2545
- "notNull": true
2546
- },
2547
- "agent_id": {
2548
- "name": "agent_id",
2549
- "type": "varchar(256)",
2550
- "primaryKey": false,
2551
- "notNull": true
2552
- },
2553
- "sub_agent_id": {
2554
- "name": "sub_agent_id",
2555
- "type": "varchar(256)",
2556
- "primaryKey": false,
2557
- "notNull": true
2558
- },
2559
- "external_agent_id": {
2560
- "name": "external_agent_id",
2561
- "type": "varchar(256)",
2562
- "primaryKey": false,
2563
- "notNull": true
2564
- },
2565
- "headers": {
2566
- "name": "headers",
2567
- "type": "jsonb",
2568
- "primaryKey": false,
2569
- "notNull": false
2570
- },
2571
- "created_at": {
2572
- "name": "created_at",
2573
- "type": "timestamp",
2574
- "primaryKey": false,
2575
- "notNull": true,
2576
- "default": "now()"
2577
- },
2578
- "updated_at": {
2579
- "name": "updated_at",
2580
- "type": "timestamp",
2581
- "primaryKey": false,
2582
- "notNull": true,
2583
- "default": "now()"
2584
- }
2585
- },
2586
- "indexes": {},
2587
- "foreignKeys": {
2588
- "sub_agent_external_agent_relations_sub_agent_fk": {
2589
- "name": "sub_agent_external_agent_relations_sub_agent_fk",
2590
- "tableFrom": "sub_agent_external_agent_relations",
2591
- "tableTo": "sub_agents",
2592
- "columnsFrom": [
2593
- "tenant_id",
2594
- "project_id",
2595
- "agent_id",
2596
- "sub_agent_id"
2597
- ],
2598
- "columnsTo": [
2599
- "tenant_id",
2600
- "project_id",
2601
- "agent_id",
2602
- "id"
2603
- ],
2604
- "onDelete": "cascade",
2605
- "onUpdate": "no action"
2606
- },
2607
- "sub_agent_external_agent_relations_external_agent_fk": {
2608
- "name": "sub_agent_external_agent_relations_external_agent_fk",
2609
- "tableFrom": "sub_agent_external_agent_relations",
2610
- "tableTo": "external_agents",
2611
- "columnsFrom": [
2612
- "tenant_id",
2613
- "project_id",
2614
- "external_agent_id"
2615
- ],
2616
- "columnsTo": [
2617
- "tenant_id",
2618
- "project_id",
2619
- "id"
2620
- ],
2621
- "onDelete": "cascade",
2622
- "onUpdate": "no action"
2623
- }
2624
- },
2625
- "compositePrimaryKeys": {
2626
- "sub_agent_external_agent_relations_pk": {
2627
- "name": "sub_agent_external_agent_relations_pk",
2628
- "columns": [
2629
- "tenant_id",
2630
- "project_id",
2631
- "agent_id",
2632
- "id"
2633
- ]
2634
- }
2635
- },
2636
- "uniqueConstraints": {},
2637
- "policies": {},
2638
- "checkConstraints": {},
2639
- "isRLSEnabled": false
2640
- },
2641
- "public.sub_agent_function_tool_relations": {
2642
- "name": "sub_agent_function_tool_relations",
2643
- "schema": "",
2644
- "columns": {
2645
- "tenant_id": {
2646
- "name": "tenant_id",
2647
- "type": "varchar(256)",
2648
- "primaryKey": false,
2649
- "notNull": true
2650
- },
2651
- "id": {
2652
- "name": "id",
2653
- "type": "varchar(256)",
2654
- "primaryKey": false,
2655
- "notNull": true
2656
- },
2657
- "project_id": {
2658
- "name": "project_id",
2659
- "type": "varchar(256)",
2660
- "primaryKey": false,
2661
- "notNull": true
2662
- },
2663
- "agent_id": {
2664
- "name": "agent_id",
2665
- "type": "varchar(256)",
2666
- "primaryKey": false,
2667
- "notNull": true
2668
- },
2669
- "sub_agent_id": {
2670
- "name": "sub_agent_id",
2671
- "type": "varchar(256)",
2672
- "primaryKey": false,
2673
- "notNull": true
2674
- },
2675
- "function_tool_id": {
2676
- "name": "function_tool_id",
2677
- "type": "varchar(256)",
2678
- "primaryKey": false,
2679
- "notNull": true
2680
- },
2681
- "tool_policies": {
2682
- "name": "tool_policies",
2683
- "type": "jsonb",
2684
- "primaryKey": false,
2685
- "notNull": false
2686
- },
2687
- "created_at": {
2688
- "name": "created_at",
2689
- "type": "timestamp",
2690
- "primaryKey": false,
2691
- "notNull": true,
2692
- "default": "now()"
2693
- },
2694
- "updated_at": {
2695
- "name": "updated_at",
2696
- "type": "timestamp",
2697
- "primaryKey": false,
2698
- "notNull": true,
2699
- "default": "now()"
2700
- }
2701
- },
2702
- "indexes": {},
2703
- "foreignKeys": {
2704
- "sub_agent_function_tool_relations_sub_agent_fk": {
2705
- "name": "sub_agent_function_tool_relations_sub_agent_fk",
2706
- "tableFrom": "sub_agent_function_tool_relations",
2707
- "tableTo": "sub_agents",
2708
- "columnsFrom": [
2709
- "tenant_id",
2710
- "project_id",
2711
- "agent_id",
2712
- "sub_agent_id"
2713
- ],
2714
- "columnsTo": [
2715
- "tenant_id",
2716
- "project_id",
2717
- "agent_id",
2718
- "id"
2719
- ],
2720
- "onDelete": "cascade",
2721
- "onUpdate": "no action"
2722
- },
2723
- "sub_agent_function_tool_relations_function_tool_fk": {
2724
- "name": "sub_agent_function_tool_relations_function_tool_fk",
2725
- "tableFrom": "sub_agent_function_tool_relations",
2726
- "tableTo": "function_tools",
2727
- "columnsFrom": [
2728
- "tenant_id",
2729
- "project_id",
2730
- "agent_id",
2731
- "function_tool_id"
2732
- ],
2733
- "columnsTo": [
2734
- "tenant_id",
2735
- "project_id",
2736
- "agent_id",
2737
- "id"
2738
- ],
2739
- "onDelete": "cascade",
2740
- "onUpdate": "no action"
2741
- }
2742
- },
2743
- "compositePrimaryKeys": {
2744
- "sub_agent_function_tool_relations_pk": {
2745
- "name": "sub_agent_function_tool_relations_pk",
2746
- "columns": [
2747
- "tenant_id",
2748
- "project_id",
2749
- "agent_id",
2750
- "id"
2751
- ]
2752
- }
2753
- },
2754
- "uniqueConstraints": {},
2755
- "policies": {},
2756
- "checkConstraints": {},
2757
- "isRLSEnabled": false
2758
- },
2759
- "public.sub_agent_relations": {
2760
- "name": "sub_agent_relations",
2761
- "schema": "",
2762
- "columns": {
2763
- "tenant_id": {
2764
- "name": "tenant_id",
2765
- "type": "varchar(256)",
2766
- "primaryKey": false,
2767
- "notNull": true
2768
- },
2769
- "id": {
2770
- "name": "id",
2771
- "type": "varchar(256)",
2772
- "primaryKey": false,
2773
- "notNull": true
2774
- },
2775
- "project_id": {
2776
- "name": "project_id",
2777
- "type": "varchar(256)",
2778
- "primaryKey": false,
2779
- "notNull": true
2780
- },
2781
- "agent_id": {
2782
- "name": "agent_id",
2783
- "type": "varchar(256)",
2784
- "primaryKey": false,
2785
- "notNull": true
2786
- },
2787
- "source_sub_agent_id": {
2788
- "name": "source_sub_agent_id",
2789
- "type": "varchar(256)",
2790
- "primaryKey": false,
2791
- "notNull": true
2792
- },
2793
- "target_sub_agent_id": {
2794
- "name": "target_sub_agent_id",
2795
- "type": "varchar(256)",
2796
- "primaryKey": false,
2797
- "notNull": false
2798
- },
2799
- "relation_type": {
2800
- "name": "relation_type",
2801
- "type": "varchar(256)",
2802
- "primaryKey": false,
2803
- "notNull": false
2804
- },
2805
- "created_at": {
2806
- "name": "created_at",
2807
- "type": "timestamp",
2808
- "primaryKey": false,
2809
- "notNull": true,
2810
- "default": "now()"
2811
- },
2812
- "updated_at": {
2813
- "name": "updated_at",
2814
- "type": "timestamp",
2815
- "primaryKey": false,
2816
- "notNull": true,
2817
- "default": "now()"
2818
- }
2819
- },
2820
- "indexes": {},
2821
- "foreignKeys": {
2822
- "sub_agent_relations_agent_fk": {
2823
- "name": "sub_agent_relations_agent_fk",
2824
- "tableFrom": "sub_agent_relations",
2825
- "tableTo": "agent",
2826
- "columnsFrom": [
2827
- "tenant_id",
2828
- "project_id",
2829
- "agent_id"
2830
- ],
2831
- "columnsTo": [
2832
- "tenant_id",
2833
- "project_id",
2834
- "id"
2835
- ],
2836
- "onDelete": "cascade",
2837
- "onUpdate": "no action"
2838
- }
2839
- },
2840
- "compositePrimaryKeys": {
2841
- "sub_agent_relations_tenant_id_project_id_agent_id_id_pk": {
2842
- "name": "sub_agent_relations_tenant_id_project_id_agent_id_id_pk",
2843
- "columns": [
2844
- "tenant_id",
2845
- "project_id",
2846
- "agent_id",
2847
- "id"
2848
- ]
2849
- }
2850
- },
2851
- "uniqueConstraints": {},
2852
- "policies": {},
2853
- "checkConstraints": {},
2854
- "isRLSEnabled": false
2855
- },
2856
- "public.sub_agent_skills": {
2857
- "name": "sub_agent_skills",
2858
- "schema": "",
2859
- "columns": {
2860
- "tenant_id": {
2861
- "name": "tenant_id",
2862
- "type": "varchar(256)",
2863
- "primaryKey": false,
2864
- "notNull": true
2865
- },
2866
- "id": {
2867
- "name": "id",
2868
- "type": "varchar(256)",
2869
- "primaryKey": false,
2870
- "notNull": true
2871
- },
2872
- "project_id": {
2873
- "name": "project_id",
2874
- "type": "varchar(256)",
2875
- "primaryKey": false,
2876
- "notNull": true
2877
- },
2878
- "agent_id": {
2879
- "name": "agent_id",
2880
- "type": "varchar(256)",
2881
- "primaryKey": false,
2882
- "notNull": true
2883
- },
2884
- "sub_agent_id": {
2885
- "name": "sub_agent_id",
2886
- "type": "varchar(256)",
2887
- "primaryKey": false,
2888
- "notNull": true
2889
- },
2890
- "skill_id": {
2891
- "name": "skill_id",
2892
- "type": "varchar(64)",
2893
- "primaryKey": false,
2894
- "notNull": true
2895
- },
2896
- "index": {
2897
- "name": "index",
2898
- "type": "numeric",
2899
- "primaryKey": false,
2900
- "notNull": true,
2901
- "default": 0
2902
- },
2903
- "always_loaded": {
2904
- "name": "always_loaded",
2905
- "type": "boolean",
2906
- "primaryKey": false,
2907
- "notNull": true,
2908
- "default": false
2909
- },
2910
- "created_at": {
2911
- "name": "created_at",
2912
- "type": "timestamp",
2913
- "primaryKey": false,
2914
- "notNull": true,
2915
- "default": "now()"
2916
- },
2917
- "updated_at": {
2918
- "name": "updated_at",
2919
- "type": "timestamp",
2920
- "primaryKey": false,
2921
- "notNull": true,
2922
- "default": "now()"
2923
- }
2924
- },
2925
- "indexes": {
2926
- "sub_agent_skills_skill_idx": {
2927
- "name": "sub_agent_skills_skill_idx",
2928
- "columns": [
2929
- {
2930
- "expression": "skill_id",
2931
- "isExpression": false,
2932
- "asc": true,
2933
- "nulls": "last"
2934
- }
2935
- ],
2936
- "isUnique": false,
2937
- "concurrently": false,
2938
- "method": "btree",
2939
- "with": {}
2940
- }
2941
- },
2942
- "foreignKeys": {
2943
- "sub_agent_skills_sub_agent_fk": {
2944
- "name": "sub_agent_skills_sub_agent_fk",
2945
- "tableFrom": "sub_agent_skills",
2946
- "tableTo": "sub_agents",
2947
- "columnsFrom": [
2948
- "tenant_id",
2949
- "project_id",
2950
- "agent_id",
2951
- "sub_agent_id"
2952
- ],
2953
- "columnsTo": [
2954
- "tenant_id",
2955
- "project_id",
2956
- "agent_id",
2957
- "id"
2958
- ],
2959
- "onDelete": "cascade",
2960
- "onUpdate": "no action"
2961
- },
2962
- "sub_agent_skills_skill_fk": {
2963
- "name": "sub_agent_skills_skill_fk",
2964
- "tableFrom": "sub_agent_skills",
2965
- "tableTo": "skills",
2966
- "columnsFrom": [
2967
- "tenant_id",
2968
- "project_id",
2969
- "skill_id"
2970
- ],
2971
- "columnsTo": [
2972
- "tenant_id",
2973
- "project_id",
2974
- "id"
2975
- ],
2976
- "onDelete": "cascade",
2977
- "onUpdate": "no action"
2978
- }
2979
- },
2980
- "compositePrimaryKeys": {
2981
- "sub_agent_skills_tenant_id_project_id_agent_id_id_pk": {
2982
- "name": "sub_agent_skills_tenant_id_project_id_agent_id_id_pk",
2983
- "columns": [
2984
- "tenant_id",
2985
- "project_id",
2986
- "agent_id",
2987
- "id"
2988
- ]
2989
- }
2990
- },
2991
- "uniqueConstraints": {
2992
- "sub_agent_skills_sub_agent_skill_unique": {
2993
- "name": "sub_agent_skills_sub_agent_skill_unique",
2994
- "nullsNotDistinct": false,
2995
- "columns": [
2996
- "tenant_id",
2997
- "project_id",
2998
- "agent_id",
2999
- "sub_agent_id",
3000
- "skill_id"
3001
- ]
3002
- }
3003
- },
3004
- "policies": {},
3005
- "checkConstraints": {},
3006
- "isRLSEnabled": false
3007
- },
3008
- "public.sub_agent_team_agent_relations": {
3009
- "name": "sub_agent_team_agent_relations",
3010
- "schema": "",
3011
- "columns": {
3012
- "tenant_id": {
3013
- "name": "tenant_id",
3014
- "type": "varchar(256)",
3015
- "primaryKey": false,
3016
- "notNull": true
3017
- },
3018
- "id": {
3019
- "name": "id",
3020
- "type": "varchar(256)",
3021
- "primaryKey": false,
3022
- "notNull": true
3023
- },
3024
- "project_id": {
3025
- "name": "project_id",
3026
- "type": "varchar(256)",
3027
- "primaryKey": false,
3028
- "notNull": true
3029
- },
3030
- "agent_id": {
3031
- "name": "agent_id",
3032
- "type": "varchar(256)",
3033
- "primaryKey": false,
3034
- "notNull": true
3035
- },
3036
- "sub_agent_id": {
3037
- "name": "sub_agent_id",
3038
- "type": "varchar(256)",
3039
- "primaryKey": false,
3040
- "notNull": true
3041
- },
3042
- "target_agent_id": {
3043
- "name": "target_agent_id",
3044
- "type": "varchar(256)",
3045
- "primaryKey": false,
3046
- "notNull": true
3047
- },
3048
- "headers": {
3049
- "name": "headers",
3050
- "type": "jsonb",
3051
- "primaryKey": false,
3052
- "notNull": false
3053
- },
3054
- "created_at": {
3055
- "name": "created_at",
3056
- "type": "timestamp",
3057
- "primaryKey": false,
3058
- "notNull": true,
3059
- "default": "now()"
3060
- },
3061
- "updated_at": {
3062
- "name": "updated_at",
3063
- "type": "timestamp",
3064
- "primaryKey": false,
3065
- "notNull": true,
3066
- "default": "now()"
3067
- }
3068
- },
3069
- "indexes": {},
3070
- "foreignKeys": {
3071
- "sub_agent_team_agent_relations_sub_agent_fk": {
3072
- "name": "sub_agent_team_agent_relations_sub_agent_fk",
3073
- "tableFrom": "sub_agent_team_agent_relations",
3074
- "tableTo": "sub_agents",
3075
- "columnsFrom": [
3076
- "tenant_id",
3077
- "project_id",
3078
- "agent_id",
3079
- "sub_agent_id"
3080
- ],
3081
- "columnsTo": [
3082
- "tenant_id",
3083
- "project_id",
3084
- "agent_id",
3085
- "id"
3086
- ],
3087
- "onDelete": "cascade",
3088
- "onUpdate": "no action"
3089
- },
3090
- "sub_agent_team_agent_relations_target_agent_fk": {
3091
- "name": "sub_agent_team_agent_relations_target_agent_fk",
3092
- "tableFrom": "sub_agent_team_agent_relations",
3093
- "tableTo": "agent",
3094
- "columnsFrom": [
3095
- "tenant_id",
3096
- "project_id",
3097
- "target_agent_id"
3098
- ],
3099
- "columnsTo": [
3100
- "tenant_id",
3101
- "project_id",
3102
- "id"
3103
- ],
3104
- "onDelete": "cascade",
3105
- "onUpdate": "no action"
3106
- }
3107
- },
3108
- "compositePrimaryKeys": {
3109
- "sub_agent_team_agent_relations_pk": {
3110
- "name": "sub_agent_team_agent_relations_pk",
3111
- "columns": [
3112
- "tenant_id",
3113
- "project_id",
3114
- "agent_id",
3115
- "id"
3116
- ]
3117
- }
3118
- },
3119
- "uniqueConstraints": {},
3120
- "policies": {},
3121
- "checkConstraints": {},
3122
- "isRLSEnabled": false
3123
- },
3124
- "public.sub_agent_tool_relations": {
3125
- "name": "sub_agent_tool_relations",
3126
- "schema": "",
3127
- "columns": {
3128
- "tenant_id": {
3129
- "name": "tenant_id",
3130
- "type": "varchar(256)",
3131
- "primaryKey": false,
3132
- "notNull": true
3133
- },
3134
- "id": {
3135
- "name": "id",
3136
- "type": "varchar(256)",
3137
- "primaryKey": false,
3138
- "notNull": true
3139
- },
3140
- "project_id": {
3141
- "name": "project_id",
3142
- "type": "varchar(256)",
3143
- "primaryKey": false,
3144
- "notNull": true
3145
- },
3146
- "agent_id": {
3147
- "name": "agent_id",
3148
- "type": "varchar(256)",
3149
- "primaryKey": false,
3150
- "notNull": true
3151
- },
3152
- "sub_agent_id": {
3153
- "name": "sub_agent_id",
3154
- "type": "varchar(256)",
3155
- "primaryKey": false,
3156
- "notNull": true
3157
- },
3158
- "tool_id": {
3159
- "name": "tool_id",
3160
- "type": "varchar(256)",
3161
- "primaryKey": false,
3162
- "notNull": true
3163
- },
3164
- "selected_tools": {
3165
- "name": "selected_tools",
3166
- "type": "jsonb",
3167
- "primaryKey": false,
3168
- "notNull": false
3169
- },
3170
- "headers": {
3171
- "name": "headers",
3172
- "type": "jsonb",
3173
- "primaryKey": false,
3174
- "notNull": false
3175
- },
3176
- "tool_policies": {
3177
- "name": "tool_policies",
3178
- "type": "jsonb",
3179
- "primaryKey": false,
3180
- "notNull": false
3181
- },
3182
- "created_at": {
3183
- "name": "created_at",
3184
- "type": "timestamp",
3185
- "primaryKey": false,
3186
- "notNull": true,
3187
- "default": "now()"
3188
- },
3189
- "updated_at": {
3190
- "name": "updated_at",
3191
- "type": "timestamp",
3192
- "primaryKey": false,
3193
- "notNull": true,
3194
- "default": "now()"
3195
- }
3196
- },
3197
- "indexes": {},
3198
- "foreignKeys": {
3199
- "sub_agent_tool_relations_agent_fk": {
3200
- "name": "sub_agent_tool_relations_agent_fk",
3201
- "tableFrom": "sub_agent_tool_relations",
3202
- "tableTo": "sub_agents",
3203
- "columnsFrom": [
3204
- "tenant_id",
3205
- "project_id",
3206
- "agent_id",
3207
- "sub_agent_id"
3208
- ],
3209
- "columnsTo": [
3210
- "tenant_id",
3211
- "project_id",
3212
- "agent_id",
3213
- "id"
3214
- ],
3215
- "onDelete": "cascade",
3216
- "onUpdate": "no action"
3217
- },
3218
- "sub_agent_tool_relations_tool_fk": {
3219
- "name": "sub_agent_tool_relations_tool_fk",
3220
- "tableFrom": "sub_agent_tool_relations",
3221
- "tableTo": "tools",
3222
- "columnsFrom": [
3223
- "tenant_id",
3224
- "project_id",
3225
- "tool_id"
3226
- ],
3227
- "columnsTo": [
3228
- "tenant_id",
3229
- "project_id",
3230
- "id"
3231
- ],
3232
- "onDelete": "cascade",
3233
- "onUpdate": "no action"
3234
- }
3235
- },
3236
- "compositePrimaryKeys": {
3237
- "sub_agent_tool_relations_tenant_id_project_id_agent_id_id_pk": {
3238
- "name": "sub_agent_tool_relations_tenant_id_project_id_agent_id_id_pk",
3239
- "columns": [
3240
- "tenant_id",
3241
- "project_id",
3242
- "agent_id",
3243
- "id"
3244
- ]
3245
- }
3246
- },
3247
- "uniqueConstraints": {},
3248
- "policies": {},
3249
- "checkConstraints": {},
3250
- "isRLSEnabled": false
3251
- },
3252
- "public.sub_agents": {
3253
- "name": "sub_agents",
3254
- "schema": "",
3255
- "columns": {
3256
- "tenant_id": {
3257
- "name": "tenant_id",
3258
- "type": "varchar(256)",
3259
- "primaryKey": false,
3260
- "notNull": true
3261
- },
3262
- "id": {
3263
- "name": "id",
3264
- "type": "varchar(256)",
3265
- "primaryKey": false,
3266
- "notNull": true
3267
- },
3268
- "project_id": {
3269
- "name": "project_id",
3270
- "type": "varchar(256)",
3271
- "primaryKey": false,
3272
- "notNull": true
3273
- },
3274
- "agent_id": {
3275
- "name": "agent_id",
3276
- "type": "varchar(256)",
3277
- "primaryKey": false,
3278
- "notNull": true
3279
- },
3280
- "name": {
3281
- "name": "name",
3282
- "type": "varchar(256)",
3283
- "primaryKey": false,
3284
- "notNull": true
3285
- },
3286
- "description": {
3287
- "name": "description",
3288
- "type": "text",
3289
- "primaryKey": false,
3290
- "notNull": false
3291
- },
3292
- "prompt": {
3293
- "name": "prompt",
3294
- "type": "text",
3295
- "primaryKey": false,
3296
- "notNull": false
3297
- },
3298
- "conversation_history_config": {
3299
- "name": "conversation_history_config",
3300
- "type": "jsonb",
3301
- "primaryKey": false,
3302
- "notNull": false,
3303
- "default": "'{\"mode\":\"full\",\"limit\":50,\"maxOutputTokens\":4000,\"includeInternal\":false,\"messageTypes\":[\"chat\",\"tool-result\"]}'::jsonb"
3304
- },
3305
- "models": {
3306
- "name": "models",
3307
- "type": "jsonb",
3308
- "primaryKey": false,
3309
- "notNull": false
3310
- },
3311
- "stop_when": {
3312
- "name": "stop_when",
3313
- "type": "jsonb",
3314
- "primaryKey": false,
3315
- "notNull": false
3316
- },
3317
- "created_at": {
3318
- "name": "created_at",
3319
- "type": "timestamp",
3320
- "primaryKey": false,
3321
- "notNull": true,
3322
- "default": "now()"
3323
- },
3324
- "updated_at": {
3325
- "name": "updated_at",
3326
- "type": "timestamp",
3327
- "primaryKey": false,
3328
- "notNull": true,
3329
- "default": "now()"
3330
- }
3331
- },
3332
- "indexes": {},
3333
- "foreignKeys": {
3334
- "sub_agents_agents_fk": {
3335
- "name": "sub_agents_agents_fk",
3336
- "tableFrom": "sub_agents",
3337
- "tableTo": "agent",
3338
- "columnsFrom": [
3339
- "tenant_id",
3340
- "project_id",
3341
- "agent_id"
3342
- ],
3343
- "columnsTo": [
3344
- "tenant_id",
3345
- "project_id",
3346
- "id"
3347
- ],
3348
- "onDelete": "cascade",
3349
- "onUpdate": "no action"
3350
- }
3351
- },
3352
- "compositePrimaryKeys": {
3353
- "sub_agents_tenant_id_project_id_agent_id_id_pk": {
3354
- "name": "sub_agents_tenant_id_project_id_agent_id_id_pk",
3355
- "columns": [
3356
- "tenant_id",
3357
- "project_id",
3358
- "agent_id",
3359
- "id"
3360
- ]
3361
- }
3362
- },
3363
- "uniqueConstraints": {},
3364
- "policies": {},
3365
- "checkConstraints": {},
3366
- "isRLSEnabled": false
3367
- },
3368
- "public.tools": {
3369
- "name": "tools",
3370
- "schema": "",
3371
- "columns": {
3372
- "tenant_id": {
3373
- "name": "tenant_id",
3374
- "type": "varchar(256)",
3375
- "primaryKey": false,
3376
- "notNull": true
3377
- },
3378
- "id": {
3379
- "name": "id",
3380
- "type": "varchar(256)",
3381
- "primaryKey": false,
3382
- "notNull": true
3383
- },
3384
- "project_id": {
3385
- "name": "project_id",
3386
- "type": "varchar(256)",
3387
- "primaryKey": false,
3388
- "notNull": true
3389
- },
3390
- "name": {
3391
- "name": "name",
3392
- "type": "varchar(256)",
3393
- "primaryKey": false,
3394
- "notNull": true
3395
- },
3396
- "description": {
3397
- "name": "description",
3398
- "type": "text",
3399
- "primaryKey": false,
3400
- "notNull": false
3401
- },
3402
- "config": {
3403
- "name": "config",
3404
- "type": "jsonb",
3405
- "primaryKey": false,
3406
- "notNull": true
3407
- },
3408
- "credential_reference_id": {
3409
- "name": "credential_reference_id",
3410
- "type": "varchar(256)",
3411
- "primaryKey": false,
3412
- "notNull": false
3413
- },
3414
- "credential_scope": {
3415
- "name": "credential_scope",
3416
- "type": "varchar(50)",
3417
- "primaryKey": false,
3418
- "notNull": true,
3419
- "default": "'project'"
3420
- },
3421
- "headers": {
3422
- "name": "headers",
3423
- "type": "jsonb",
3424
- "primaryKey": false,
3425
- "notNull": false
3426
- },
3427
- "image_url": {
3428
- "name": "image_url",
3429
- "type": "text",
3430
- "primaryKey": false,
3431
- "notNull": false
3432
- },
3433
- "capabilities": {
3434
- "name": "capabilities",
3435
- "type": "jsonb",
3436
- "primaryKey": false,
3437
- "notNull": false
3438
- },
3439
- "last_error": {
3440
- "name": "last_error",
3441
- "type": "text",
3442
- "primaryKey": false,
3443
- "notNull": false
3444
- },
3445
- "is_work_app": {
3446
- "name": "is_work_app",
3447
- "type": "boolean",
3448
- "primaryKey": false,
3449
- "notNull": true,
3450
- "default": false
3451
- },
3452
- "created_at": {
3453
- "name": "created_at",
3454
- "type": "timestamp",
3455
- "primaryKey": false,
3456
- "notNull": true,
3457
- "default": "now()"
3458
- },
3459
- "updated_at": {
3460
- "name": "updated_at",
3461
- "type": "timestamp",
3462
- "primaryKey": false,
3463
- "notNull": true,
3464
- "default": "now()"
3465
- }
3466
- },
3467
- "indexes": {},
3468
- "foreignKeys": {
3469
- "tools_project_fk": {
3470
- "name": "tools_project_fk",
3471
- "tableFrom": "tools",
3472
- "tableTo": "projects",
3473
- "columnsFrom": [
3474
- "tenant_id",
3475
- "project_id"
3476
- ],
3477
- "columnsTo": [
3478
- "tenant_id",
3479
- "id"
3480
- ],
3481
- "onDelete": "cascade",
3482
- "onUpdate": "no action"
3483
- },
3484
- "tools_credential_reference_fk": {
3485
- "name": "tools_credential_reference_fk",
3486
- "tableFrom": "tools",
3487
- "tableTo": "credential_references",
3488
- "columnsFrom": [
3489
- "credential_reference_id"
3490
- ],
3491
- "columnsTo": [
3492
- "id"
3493
- ],
3494
- "onDelete": "set null",
3495
- "onUpdate": "no action"
3496
- }
3497
- },
3498
- "compositePrimaryKeys": {
3499
- "tools_tenant_id_project_id_id_pk": {
3500
- "name": "tools_tenant_id_project_id_id_pk",
3501
- "columns": [
3502
- "tenant_id",
3503
- "project_id",
3504
- "id"
3505
- ]
3506
- }
3507
- },
3508
- "uniqueConstraints": {},
3509
- "policies": {},
3510
- "checkConstraints": {},
3511
- "isRLSEnabled": false
3512
- },
3513
- "public.triggers": {
3514
- "name": "triggers",
3515
- "schema": "",
3516
- "columns": {
3517
- "tenant_id": {
3518
- "name": "tenant_id",
3519
- "type": "varchar(256)",
3520
- "primaryKey": false,
3521
- "notNull": true
3522
- },
3523
- "id": {
3524
- "name": "id",
3525
- "type": "varchar(256)",
3526
- "primaryKey": false,
3527
- "notNull": true
3528
- },
3529
- "project_id": {
3530
- "name": "project_id",
3531
- "type": "varchar(256)",
3532
- "primaryKey": false,
3533
- "notNull": true
3534
- },
3535
- "agent_id": {
3536
- "name": "agent_id",
3537
- "type": "varchar(256)",
3538
- "primaryKey": false,
3539
- "notNull": true
3540
- },
3541
- "name": {
3542
- "name": "name",
3543
- "type": "varchar(256)",
3544
- "primaryKey": false,
3545
- "notNull": true
3546
- },
3547
- "description": {
3548
- "name": "description",
3549
- "type": "text",
3550
- "primaryKey": false,
3551
- "notNull": false
3552
- },
3553
- "enabled": {
3554
- "name": "enabled",
3555
- "type": "boolean",
3556
- "primaryKey": false,
3557
- "notNull": true,
3558
- "default": true
3559
- },
3560
- "input_schema": {
3561
- "name": "input_schema",
3562
- "type": "jsonb",
3563
- "primaryKey": false,
3564
- "notNull": false
3565
- },
3566
- "output_transform": {
3567
- "name": "output_transform",
3568
- "type": "jsonb",
3569
- "primaryKey": false,
3570
- "notNull": false
3571
- },
3572
- "message_template": {
3573
- "name": "message_template",
3574
- "type": "text",
3575
- "primaryKey": false,
3576
- "notNull": false
3577
- },
3578
- "authentication": {
3579
- "name": "authentication",
3580
- "type": "jsonb",
3581
- "primaryKey": false,
3582
- "notNull": false
3583
- },
3584
- "signing_secret_credential_reference_id": {
3585
- "name": "signing_secret_credential_reference_id",
3586
- "type": "varchar(256)",
3587
- "primaryKey": false,
3588
- "notNull": false
3589
- },
3590
- "signature_verification": {
3591
- "name": "signature_verification",
3592
- "type": "jsonb",
3593
- "primaryKey": false,
3594
- "notNull": false,
3595
- "default": "'null'::jsonb"
3596
- },
3597
- "created_at": {
3598
- "name": "created_at",
3599
- "type": "timestamp",
3600
- "primaryKey": false,
3601
- "notNull": true,
3602
- "default": "now()"
3603
- },
3604
- "updated_at": {
3605
- "name": "updated_at",
3606
- "type": "timestamp",
3607
- "primaryKey": false,
3608
- "notNull": true,
3609
- "default": "now()"
3610
- }
3611
- },
3612
- "indexes": {},
3613
- "foreignKeys": {
3614
- "triggers_agent_fk": {
3615
- "name": "triggers_agent_fk",
3616
- "tableFrom": "triggers",
3617
- "tableTo": "agent",
3618
- "columnsFrom": [
3619
- "tenant_id",
3620
- "project_id",
3621
- "agent_id"
3622
- ],
3623
- "columnsTo": [
3624
- "tenant_id",
3625
- "project_id",
3626
- "id"
3627
- ],
3628
- "onDelete": "cascade",
3629
- "onUpdate": "no action"
3630
- },
3631
- "triggers_credential_reference_fk": {
3632
- "name": "triggers_credential_reference_fk",
3633
- "tableFrom": "triggers",
3634
- "tableTo": "credential_references",
3635
- "columnsFrom": [
3636
- "signing_secret_credential_reference_id"
3637
- ],
3638
- "columnsTo": [
3639
- "id"
3640
- ],
3641
- "onDelete": "set null",
3642
- "onUpdate": "no action"
3643
- }
3644
- },
3645
- "compositePrimaryKeys": {
3646
- "triggers_tenant_id_project_id_agent_id_id_pk": {
3647
- "name": "triggers_tenant_id_project_id_agent_id_id_pk",
3648
- "columns": [
3649
- "tenant_id",
3650
- "project_id",
3651
- "agent_id",
3652
- "id"
3653
- ]
3654
- }
3655
- },
3656
- "uniqueConstraints": {},
3657
- "policies": {},
3658
- "checkConstraints": {},
3659
- "isRLSEnabled": false
3660
- }
3661
- },
3662
- "enums": {},
3663
- "schemas": {},
3664
- "sequences": {},
3665
- "roles": {},
3666
- "policies": {},
3667
- "views": {},
3668
- "_meta": {
3669
- "columns": {},
3670
- "schemas": {},
3671
- "tables": {}
3672
- }
3673
- }