@inkeep/agents-core 0.47.4 → 0.48.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/auth/auth-validation-schemas.d.ts +17 -17
- package/dist/auth/auth.d.ts +1 -1
- package/dist/client-exports.d.ts +13 -2
- package/dist/client-exports.js +5 -4
- package/dist/data-access/index.d.ts +6 -1
- package/dist/data-access/index.js +6 -1
- package/dist/data-access/manage/agentFull.js +154 -1
- package/dist/data-access/manage/agents.d.ts +4 -4
- package/dist/data-access/manage/agents.js +56 -4
- package/dist/data-access/manage/artifactComponents.d.ts +41 -5
- package/dist/data-access/manage/dataComponents.d.ts +2 -2
- package/dist/data-access/manage/functionTools.d.ts +3 -3
- package/dist/data-access/manage/projectFull.js +97 -0
- package/dist/data-access/manage/scheduledTriggers.d.ts +80 -0
- package/dist/data-access/manage/scheduledTriggers.js +76 -0
- package/dist/data-access/manage/scheduledWorkflows.d.ts +29 -0
- package/dist/data-access/manage/scheduledWorkflows.js +32 -0
- package/dist/data-access/manage/skills.d.ts +109 -0
- package/dist/data-access/manage/skills.js +122 -0
- package/dist/data-access/manage/subAgentRelations.d.ts +6 -6
- package/dist/data-access/manage/tools.d.ts +4 -4
- package/dist/data-access/manage/triggers.d.ts +2 -2
- package/dist/data-access/runtime/conversations.d.ts +4 -4
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +233 -0
- package/dist/data-access/runtime/scheduledTriggerInvocations.js +226 -0
- package/dist/data-access/runtime/tasks.d.ts +2 -2
- package/dist/data-access/runtime/workAppSlack.d.ts +55 -0
- package/dist/data-access/runtime/workAppSlack.js +146 -0
- package/dist/db/manage/manage-schema.d.ts +1440 -510
- package/dist/db/manage/manage-schema.js +240 -15
- package/dist/db/runtime/runtime-schema.d.ts +1236 -234
- package/dist/db/runtime/runtime-schema.js +108 -3
- package/dist/index.d.ts +15 -6
- package/dist/index.js +13 -5
- package/dist/types/entities.d.ts +15 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/utils/index.d.ts +5 -2
- package/dist/utils/index.js +5 -2
- package/dist/utils/slack-link-token.d.ts +57 -0
- package/dist/utils/slack-link-token.js +112 -0
- package/dist/utils/slack-user-token.d.ts +65 -0
- package/dist/utils/slack-user-token.js +129 -0
- package/dist/utils/sse-parser.d.ts +35 -0
- package/dist/utils/sse-parser.js +71 -0
- package/dist/utils/tracer-factory.d.ts +11 -2
- package/dist/utils/tracer-factory.js +24 -5
- package/dist/utils/tracer.d.ts +2 -2
- package/dist/utils/tracer.js +2 -2
- package/dist/utils/trigger-auth.d.ts +1 -1
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/extend-schemas.d.ts +34 -0
- package/dist/validation/extend-schemas.js +33 -0
- package/dist/validation/index.d.ts +2 -2
- package/dist/validation/index.js +2 -2
- package/dist/validation/json-schemas.d.ts +28 -0
- package/dist/validation/json-schemas.js +56 -0
- package/dist/validation/schemas.d.ts +5875 -2585
- package/dist/validation/schemas.js +159 -38
- package/dist/validation/stream-event-schemas.d.ts +0 -2
- package/dist/validation/stream-event-schemas.js +1 -2
- package/drizzle/manage/0007_nice_lilandra.sql +3 -0
- package/drizzle/manage/0008_friendly_mentallo.sql +32 -0
- package/drizzle/manage/0009_chilly_old_lace.sql +39 -0
- package/drizzle/manage/meta/0007_snapshot.json +3148 -0
- package/drizzle/manage/meta/0008_snapshot.json +3391 -0
- package/drizzle/manage/meta/0009_snapshot.json +3670 -0
- package/drizzle/manage/meta/_journal.json +21 -0
- package/drizzle/runtime/0012_greedy_hulk.sql +84 -0
- package/drizzle/runtime/0013_huge_white_queen.sql +19 -0
- package/drizzle/runtime/meta/0007_snapshot.json +1 -1
- package/drizzle/runtime/meta/0012_snapshot.json +3622 -0
- package/drizzle/runtime/meta/0013_snapshot.json +3746 -0
- package/drizzle/runtime/meta/_journal.json +14 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __exportAll } from "../../_virtual/rolldown_runtime.js";
|
|
2
2
|
import { relations } from "drizzle-orm";
|
|
3
|
-
import { boolean, doublePrecision, foreignKey, jsonb, pgTable, primaryKey, text, timestamp, unique, varchar } from "drizzle-orm/pg-core";
|
|
3
|
+
import { boolean, doublePrecision, foreignKey, index, jsonb, numeric, pgTable, primaryKey, text, timestamp, unique, varchar } from "drizzle-orm/pg-core";
|
|
4
4
|
|
|
5
5
|
//#region src/db/manage/manage-schema.ts
|
|
6
6
|
var manage_schema_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -34,6 +34,12 @@ var manage_schema_exports = /* @__PURE__ */ __exportAll({
|
|
|
34
34
|
functionsRelations: () => functionsRelations,
|
|
35
35
|
projects: () => projects,
|
|
36
36
|
projectsRelations: () => projectsRelations,
|
|
37
|
+
scheduledTriggers: () => scheduledTriggers,
|
|
38
|
+
scheduledTriggersRelations: () => scheduledTriggersRelations,
|
|
39
|
+
scheduledWorkflows: () => scheduledWorkflows,
|
|
40
|
+
scheduledWorkflowsRelations: () => scheduledWorkflowsRelations,
|
|
41
|
+
skills: () => skills,
|
|
42
|
+
skillsRelations: () => skillsRelations,
|
|
37
43
|
subAgentArtifactComponents: () => subAgentArtifactComponents,
|
|
38
44
|
subAgentArtifactComponentsRelations: () => subAgentArtifactComponentsRelations,
|
|
39
45
|
subAgentDataComponents: () => subAgentDataComponents,
|
|
@@ -44,6 +50,8 @@ var manage_schema_exports = /* @__PURE__ */ __exportAll({
|
|
|
44
50
|
subAgentFunctionToolRelationsRelations: () => subAgentFunctionToolRelationsRelations,
|
|
45
51
|
subAgentRelations: () => subAgentRelations,
|
|
46
52
|
subAgentRelationsRelations: () => subAgentRelationsRelations,
|
|
53
|
+
subAgentSkills: () => subAgentSkills,
|
|
54
|
+
subAgentSkillsRelations: () => subAgentSkillsRelations,
|
|
47
55
|
subAgentTeamAgentRelations: () => subAgentTeamAgentRelations,
|
|
48
56
|
subAgentTeamAgentRelationsRelations: () => subAgentTeamAgentRelationsRelations,
|
|
49
57
|
subAgentToolRelations: () => subAgentToolRelations,
|
|
@@ -86,8 +94,7 @@ const projects = pgTable("projects", {
|
|
|
86
94
|
}, (table) => [primaryKey({ columns: [table.tenantId, table.id] })]);
|
|
87
95
|
const agents = pgTable("agent", {
|
|
88
96
|
...projectScoped,
|
|
89
|
-
|
|
90
|
-
description: text("description"),
|
|
97
|
+
...uiProperties,
|
|
91
98
|
defaultSubAgentId: varchar("default_sub_agent_id", { length: 256 }),
|
|
92
99
|
contextConfigId: varchar("context_config_id", { length: 256 }),
|
|
93
100
|
models: jsonb("models").$type(),
|
|
@@ -164,6 +171,83 @@ const triggers = pgTable("triggers", {
|
|
|
164
171
|
name: "triggers_credential_reference_fk"
|
|
165
172
|
}).onDelete("set null")
|
|
166
173
|
]);
|
|
174
|
+
const scheduledTriggers = pgTable("scheduled_triggers", {
|
|
175
|
+
...agentScoped,
|
|
176
|
+
...uiProperties,
|
|
177
|
+
enabled: boolean("enabled").notNull().default(true),
|
|
178
|
+
cronExpression: varchar("cron_expression", { length: 256 }),
|
|
179
|
+
cronTimezone: varchar("cron_timezone", { length: 64 }).default("UTC"),
|
|
180
|
+
runAt: timestamp("run_at", {
|
|
181
|
+
withTimezone: true,
|
|
182
|
+
mode: "string"
|
|
183
|
+
}),
|
|
184
|
+
payload: jsonb("payload").$type(),
|
|
185
|
+
messageTemplate: text("message_template"),
|
|
186
|
+
maxRetries: numeric("max_retries", { mode: "number" }).notNull().default(1),
|
|
187
|
+
retryDelaySeconds: numeric("retry_delay_seconds", { mode: "number" }).notNull().default(60),
|
|
188
|
+
timeoutSeconds: numeric("timeout_seconds", { mode: "number" }).notNull().default(780),
|
|
189
|
+
...timestamps
|
|
190
|
+
}, (table) => [primaryKey({ columns: [
|
|
191
|
+
table.tenantId,
|
|
192
|
+
table.projectId,
|
|
193
|
+
table.agentId,
|
|
194
|
+
table.id
|
|
195
|
+
] }), foreignKey({
|
|
196
|
+
columns: [
|
|
197
|
+
table.tenantId,
|
|
198
|
+
table.projectId,
|
|
199
|
+
table.agentId
|
|
200
|
+
],
|
|
201
|
+
foreignColumns: [
|
|
202
|
+
agents.tenantId,
|
|
203
|
+
agents.projectId,
|
|
204
|
+
agents.id
|
|
205
|
+
],
|
|
206
|
+
name: "scheduled_triggers_agent_fk"
|
|
207
|
+
}).onDelete("cascade")]);
|
|
208
|
+
const scheduledWorkflows = pgTable("scheduled_workflows", {
|
|
209
|
+
...agentScoped,
|
|
210
|
+
...uiProperties,
|
|
211
|
+
workflowRunId: varchar("workflow_run_id", { length: 256 }),
|
|
212
|
+
status: varchar("status", { length: 50 }).notNull().default("pending"),
|
|
213
|
+
scheduledTriggerId: varchar("scheduled_trigger_id", { length: 256 }).notNull(),
|
|
214
|
+
...timestamps
|
|
215
|
+
}, (table) => [
|
|
216
|
+
primaryKey({ columns: [
|
|
217
|
+
table.tenantId,
|
|
218
|
+
table.projectId,
|
|
219
|
+
table.agentId,
|
|
220
|
+
table.id
|
|
221
|
+
] }),
|
|
222
|
+
foreignKey({
|
|
223
|
+
columns: [
|
|
224
|
+
table.tenantId,
|
|
225
|
+
table.projectId,
|
|
226
|
+
table.agentId
|
|
227
|
+
],
|
|
228
|
+
foreignColumns: [
|
|
229
|
+
agents.tenantId,
|
|
230
|
+
agents.projectId,
|
|
231
|
+
agents.id
|
|
232
|
+
],
|
|
233
|
+
name: "scheduled_workflows_agent_fk"
|
|
234
|
+
}).onDelete("cascade"),
|
|
235
|
+
foreignKey({
|
|
236
|
+
columns: [
|
|
237
|
+
table.tenantId,
|
|
238
|
+
table.projectId,
|
|
239
|
+
table.agentId,
|
|
240
|
+
table.scheduledTriggerId
|
|
241
|
+
],
|
|
242
|
+
foreignColumns: [
|
|
243
|
+
scheduledTriggers.tenantId,
|
|
244
|
+
scheduledTriggers.projectId,
|
|
245
|
+
scheduledTriggers.agentId,
|
|
246
|
+
scheduledTriggers.id
|
|
247
|
+
],
|
|
248
|
+
name: "scheduled_workflows_trigger_fk"
|
|
249
|
+
}).onDelete("cascade")
|
|
250
|
+
]);
|
|
167
251
|
const subAgents = pgTable("sub_agents", {
|
|
168
252
|
...agentScoped,
|
|
169
253
|
...uiProperties,
|
|
@@ -196,6 +280,67 @@ const subAgents = pgTable("sub_agents", {
|
|
|
196
280
|
],
|
|
197
281
|
name: "sub_agents_agents_fk"
|
|
198
282
|
}).onDelete("cascade")]);
|
|
283
|
+
const skills = pgTable("skills", {
|
|
284
|
+
...projectScoped,
|
|
285
|
+
id: varchar("id", { length: 64 }).notNull(),
|
|
286
|
+
name: varchar("name", { length: 64 }).notNull(),
|
|
287
|
+
description: text("description").notNull(),
|
|
288
|
+
content: text("content").notNull(),
|
|
289
|
+
metadata: jsonb("metadata").$type(),
|
|
290
|
+
...timestamps
|
|
291
|
+
}, (table) => [primaryKey({ columns: [
|
|
292
|
+
table.tenantId,
|
|
293
|
+
table.projectId,
|
|
294
|
+
table.id
|
|
295
|
+
] }), foreignKey({
|
|
296
|
+
columns: [table.tenantId, table.projectId],
|
|
297
|
+
foreignColumns: [projects.tenantId, projects.id],
|
|
298
|
+
name: "skills_project_fk"
|
|
299
|
+
}).onDelete("cascade")]);
|
|
300
|
+
const subAgentSkills = pgTable("sub_agent_skills", {
|
|
301
|
+
...subAgentScoped,
|
|
302
|
+
skillId: varchar("skill_id", { length: 64 }).notNull(),
|
|
303
|
+
index: numeric({ mode: "number" }).notNull().default(0),
|
|
304
|
+
alwaysLoaded: boolean("always_loaded").notNull().default(false),
|
|
305
|
+
...timestamps
|
|
306
|
+
}, (table) => [
|
|
307
|
+
primaryKey({ columns: [
|
|
308
|
+
table.tenantId,
|
|
309
|
+
table.projectId,
|
|
310
|
+
table.agentId,
|
|
311
|
+
table.id
|
|
312
|
+
] }),
|
|
313
|
+
foreignKey({
|
|
314
|
+
columns: [
|
|
315
|
+
table.tenantId,
|
|
316
|
+
table.projectId,
|
|
317
|
+
table.agentId,
|
|
318
|
+
table.subAgentId
|
|
319
|
+
],
|
|
320
|
+
foreignColumns: [
|
|
321
|
+
subAgents.tenantId,
|
|
322
|
+
subAgents.projectId,
|
|
323
|
+
subAgents.agentId,
|
|
324
|
+
subAgents.id
|
|
325
|
+
],
|
|
326
|
+
name: "sub_agent_skills_sub_agent_fk"
|
|
327
|
+
}).onDelete("cascade"),
|
|
328
|
+
foreignKey({
|
|
329
|
+
columns: [
|
|
330
|
+
table.tenantId,
|
|
331
|
+
table.projectId,
|
|
332
|
+
table.skillId
|
|
333
|
+
],
|
|
334
|
+
foreignColumns: [
|
|
335
|
+
skills.tenantId,
|
|
336
|
+
skills.projectId,
|
|
337
|
+
skills.id
|
|
338
|
+
],
|
|
339
|
+
name: "sub_agent_skills_skill_fk"
|
|
340
|
+
}).onDelete("cascade"),
|
|
341
|
+
unique("sub_agent_skills_sub_agent_skill_unique").on(table.subAgentId, table.skillId),
|
|
342
|
+
index("sub_agent_skills_skill_idx").on(table.skillId)
|
|
343
|
+
]);
|
|
199
344
|
const subAgentRelations = pgTable("sub_agent_relations", {
|
|
200
345
|
...agentScoped,
|
|
201
346
|
sourceSubAgentId: varchar("source_sub_agent_id", { length: 256 }).notNull(),
|
|
@@ -246,7 +391,7 @@ const externalAgents = pgTable("external_agents", {
|
|
|
246
391
|
const dataComponents = pgTable("data_components", {
|
|
247
392
|
...projectScoped,
|
|
248
393
|
...uiProperties,
|
|
249
|
-
props: jsonb("props").$type(),
|
|
394
|
+
props: jsonb("props").$type().notNull(),
|
|
250
395
|
render: jsonb("render").$type(),
|
|
251
396
|
...timestamps
|
|
252
397
|
}, (table) => [primaryKey({ columns: [
|
|
@@ -358,8 +503,7 @@ const subAgentArtifactComponents = pgTable("sub_agent_artifact_components", {
|
|
|
358
503
|
]);
|
|
359
504
|
const tools = pgTable("tools", {
|
|
360
505
|
...projectScoped,
|
|
361
|
-
|
|
362
|
-
description: text("description"),
|
|
506
|
+
...uiProperties,
|
|
363
507
|
config: jsonb("config").$type().notNull(),
|
|
364
508
|
credentialReferenceId: varchar("credential_reference_id", { length: 256 }),
|
|
365
509
|
credentialScope: varchar("credential_scope", { length: 50 }).notNull().default("project"),
|
|
@@ -388,8 +532,7 @@ const tools = pgTable("tools", {
|
|
|
388
532
|
]);
|
|
389
533
|
const functionTools = pgTable("function_tools", {
|
|
390
534
|
...agentScoped,
|
|
391
|
-
|
|
392
|
-
description: text("description"),
|
|
535
|
+
...uiProperties,
|
|
393
536
|
functionId: varchar("function_id", { length: 256 }).notNull(),
|
|
394
537
|
...timestamps
|
|
395
538
|
}, (table) => [
|
|
@@ -620,7 +763,7 @@ const subAgentFunctionToolRelations = pgTable("sub_agent_function_tool_relations
|
|
|
620
763
|
]);
|
|
621
764
|
const credentialReferences = pgTable("credential_references", {
|
|
622
765
|
...projectScoped,
|
|
623
|
-
name:
|
|
766
|
+
name: uiProperties.name,
|
|
624
767
|
type: varchar("type", { length: 256 }).notNull(),
|
|
625
768
|
credentialStoreId: varchar("credential_store_id", { length: 256 }).notNull(),
|
|
626
769
|
retrievalParams: jsonb("retrieval_params").$type(),
|
|
@@ -648,13 +791,13 @@ const credentialReferences = pgTable("credential_references", {
|
|
|
648
791
|
* runs where conversations are created from dataset items. Each datasetRun
|
|
649
792
|
* specifies which agent to use when executing the dataset.
|
|
650
793
|
*
|
|
651
|
-
* one
|
|
794
|
+
* one-to-many relationship with datasetItem
|
|
652
795
|
*
|
|
653
796
|
* Includes: name and timestamps
|
|
654
797
|
*/
|
|
655
798
|
const dataset = pgTable("dataset", {
|
|
656
799
|
...projectScoped,
|
|
657
|
-
name:
|
|
800
|
+
name: uiProperties.name,
|
|
658
801
|
...timestamps
|
|
659
802
|
}, (table) => [primaryKey({ columns: [
|
|
660
803
|
table.tenantId,
|
|
@@ -983,7 +1126,8 @@ const projectsRelations = relations(projects, ({ many }) => ({
|
|
|
983
1126
|
externalAgents: many(externalAgents),
|
|
984
1127
|
dataComponents: many(dataComponents),
|
|
985
1128
|
artifactComponents: many(artifactComponents),
|
|
986
|
-
credentialReferences: many(credentialReferences)
|
|
1129
|
+
credentialReferences: many(credentialReferences),
|
|
1130
|
+
skills: many(skills)
|
|
987
1131
|
}));
|
|
988
1132
|
const contextConfigsRelations = relations(contextConfigs, ({ many, one }) => ({
|
|
989
1133
|
project: one(projects, {
|
|
@@ -1003,7 +1147,8 @@ const subAgentsRelations = relations(subAgents, ({ many, one }) => ({
|
|
|
1003
1147
|
toolRelations: many(subAgentToolRelations),
|
|
1004
1148
|
functionToolRelations: many(subAgentFunctionToolRelations),
|
|
1005
1149
|
dataComponentRelations: many(subAgentDataComponents),
|
|
1006
|
-
artifactComponentRelations: many(subAgentArtifactComponents)
|
|
1150
|
+
artifactComponentRelations: many(subAgentArtifactComponents),
|
|
1151
|
+
skillRelations: many(subAgentSkills)
|
|
1007
1152
|
}));
|
|
1008
1153
|
const agentRelations = relations(agents, ({ one, many }) => ({
|
|
1009
1154
|
project: one(projects, {
|
|
@@ -1018,7 +1163,52 @@ const agentRelations = relations(agents, ({ one, many }) => ({
|
|
|
1018
1163
|
fields: [agents.contextConfigId],
|
|
1019
1164
|
references: [contextConfigs.id]
|
|
1020
1165
|
}),
|
|
1021
|
-
functionTools: many(functionTools)
|
|
1166
|
+
functionTools: many(functionTools),
|
|
1167
|
+
scheduledWorkflows: many(scheduledWorkflows),
|
|
1168
|
+
scheduledTriggers: many(scheduledTriggers)
|
|
1169
|
+
}));
|
|
1170
|
+
const scheduledTriggersRelations = relations(scheduledTriggers, ({ one }) => ({
|
|
1171
|
+
agent: one(agents, {
|
|
1172
|
+
fields: [
|
|
1173
|
+
scheduledTriggers.tenantId,
|
|
1174
|
+
scheduledTriggers.projectId,
|
|
1175
|
+
scheduledTriggers.agentId
|
|
1176
|
+
],
|
|
1177
|
+
references: [
|
|
1178
|
+
agents.tenantId,
|
|
1179
|
+
agents.projectId,
|
|
1180
|
+
agents.id
|
|
1181
|
+
]
|
|
1182
|
+
}),
|
|
1183
|
+
scheduledWorkflow: one(scheduledWorkflows)
|
|
1184
|
+
}));
|
|
1185
|
+
const scheduledWorkflowsRelations = relations(scheduledWorkflows, ({ one }) => ({
|
|
1186
|
+
agent: one(agents, {
|
|
1187
|
+
fields: [
|
|
1188
|
+
scheduledWorkflows.tenantId,
|
|
1189
|
+
scheduledWorkflows.projectId,
|
|
1190
|
+
scheduledWorkflows.agentId
|
|
1191
|
+
],
|
|
1192
|
+
references: [
|
|
1193
|
+
agents.tenantId,
|
|
1194
|
+
agents.projectId,
|
|
1195
|
+
agents.id
|
|
1196
|
+
]
|
|
1197
|
+
}),
|
|
1198
|
+
scheduledTrigger: one(scheduledTriggers, {
|
|
1199
|
+
fields: [
|
|
1200
|
+
scheduledWorkflows.tenantId,
|
|
1201
|
+
scheduledWorkflows.projectId,
|
|
1202
|
+
scheduledWorkflows.agentId,
|
|
1203
|
+
scheduledWorkflows.scheduledTriggerId
|
|
1204
|
+
],
|
|
1205
|
+
references: [
|
|
1206
|
+
scheduledTriggers.tenantId,
|
|
1207
|
+
scheduledTriggers.projectId,
|
|
1208
|
+
scheduledTriggers.agentId,
|
|
1209
|
+
scheduledTriggers.id
|
|
1210
|
+
]
|
|
1211
|
+
})
|
|
1022
1212
|
}));
|
|
1023
1213
|
const externalAgentsRelations = relations(externalAgents, ({ one, many }) => ({
|
|
1024
1214
|
project: one(projects, {
|
|
@@ -1094,6 +1284,41 @@ const subAgentDataComponentsRelations = relations(subAgentDataComponents, ({ one
|
|
|
1094
1284
|
references: [dataComponents.id]
|
|
1095
1285
|
})
|
|
1096
1286
|
}));
|
|
1287
|
+
const skillsRelations = relations(skills, ({ one, many }) => ({
|
|
1288
|
+
project: one(projects, {
|
|
1289
|
+
fields: [skills.tenantId, skills.projectId],
|
|
1290
|
+
references: [projects.tenantId, projects.id]
|
|
1291
|
+
}),
|
|
1292
|
+
subAgentRelations: many(subAgentSkills)
|
|
1293
|
+
}));
|
|
1294
|
+
const subAgentSkillsRelations = relations(subAgentSkills, ({ one }) => ({
|
|
1295
|
+
subAgent: one(subAgents, {
|
|
1296
|
+
fields: [
|
|
1297
|
+
subAgentSkills.tenantId,
|
|
1298
|
+
subAgentSkills.projectId,
|
|
1299
|
+
subAgentSkills.agentId,
|
|
1300
|
+
subAgentSkills.subAgentId
|
|
1301
|
+
],
|
|
1302
|
+
references: [
|
|
1303
|
+
subAgents.tenantId,
|
|
1304
|
+
subAgents.projectId,
|
|
1305
|
+
subAgents.agentId,
|
|
1306
|
+
subAgents.id
|
|
1307
|
+
]
|
|
1308
|
+
}),
|
|
1309
|
+
skill: one(skills, {
|
|
1310
|
+
fields: [
|
|
1311
|
+
subAgentSkills.tenantId,
|
|
1312
|
+
subAgentSkills.projectId,
|
|
1313
|
+
subAgentSkills.skillId
|
|
1314
|
+
],
|
|
1315
|
+
references: [
|
|
1316
|
+
skills.tenantId,
|
|
1317
|
+
skills.projectId,
|
|
1318
|
+
skills.id
|
|
1319
|
+
]
|
|
1320
|
+
})
|
|
1321
|
+
}));
|
|
1097
1322
|
const functionsRelations = relations(functions, ({ many, one }) => ({
|
|
1098
1323
|
functionTools: many(functionTools),
|
|
1099
1324
|
project: one(projects, {
|
|
@@ -1261,4 +1486,4 @@ const datasetRunConfigAgentRelations = pgTable("dataset_run_config_agent_relatio
|
|
|
1261
1486
|
]);
|
|
1262
1487
|
|
|
1263
1488
|
//#endregion
|
|
1264
|
-
export { agentRelations, agentToolRelationsRelations, agents, artifactComponents, artifactComponentsRelations, contextConfigs, contextConfigsRelations, credentialReferences, credentialReferencesRelations, dataComponents, dataComponentsRelations, dataset, datasetItem, datasetRunConfig, datasetRunConfigAgentRelations, evaluationJobConfig, evaluationJobConfigEvaluatorRelations, evaluationRunConfig, evaluationRunConfigEvaluationSuiteConfigRelations, evaluationSuiteConfig, evaluationSuiteConfigEvaluatorRelations, evaluator, externalAgents, externalAgentsRelations, functionTools, functionToolsRelations, functions, functionsRelations, manage_schema_exports, projects, projectsRelations, subAgentArtifactComponents, subAgentArtifactComponentsRelations, subAgentDataComponents, subAgentDataComponentsRelations, subAgentExternalAgentRelations, subAgentExternalAgentRelationsRelations, subAgentFunctionToolRelations, subAgentFunctionToolRelationsRelations, subAgentRelations, subAgentRelationsRelations, subAgentTeamAgentRelations, subAgentTeamAgentRelationsRelations, subAgentToolRelations, subAgents, subAgentsRelations, tools, toolsRelations, triggers };
|
|
1489
|
+
export { agentRelations, agentToolRelationsRelations, agents, artifactComponents, artifactComponentsRelations, contextConfigs, contextConfigsRelations, credentialReferences, credentialReferencesRelations, dataComponents, dataComponentsRelations, dataset, datasetItem, datasetRunConfig, datasetRunConfigAgentRelations, evaluationJobConfig, evaluationJobConfigEvaluatorRelations, evaluationRunConfig, evaluationRunConfigEvaluationSuiteConfigRelations, evaluationSuiteConfig, evaluationSuiteConfigEvaluatorRelations, evaluator, externalAgents, externalAgentsRelations, functionTools, functionToolsRelations, functions, functionsRelations, manage_schema_exports, projects, projectsRelations, scheduledTriggers, scheduledTriggersRelations, scheduledWorkflows, scheduledWorkflowsRelations, skills, skillsRelations, subAgentArtifactComponents, subAgentArtifactComponentsRelations, subAgentDataComponents, subAgentDataComponentsRelations, subAgentExternalAgentRelations, subAgentExternalAgentRelationsRelations, subAgentFunctionToolRelations, subAgentFunctionToolRelationsRelations, subAgentRelations, subAgentRelationsRelations, subAgentSkills, subAgentSkillsRelations, subAgentTeamAgentRelations, subAgentTeamAgentRelationsRelations, subAgentToolRelations, subAgents, subAgentsRelations, tools, toolsRelations, triggers };
|