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