@inkeep/agents-core 0.55.3 → 0.56.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/dist/auth/auth-schema.d.ts +107 -107
- package/dist/auth/auth-validation-schemas.d.ts +152 -152
- package/dist/auth/auth.d.ts +9 -9
- package/dist/auth/auth.js +2 -2
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/client-exports.d.ts +2 -2
- package/dist/client-exports.js +2 -2
- package/dist/data-access/index.d.ts +3 -3
- package/dist/data-access/index.js +3 -3
- package/dist/data-access/manage/agents.d.ts +42 -42
- package/dist/data-access/manage/agents.js +25 -11
- package/dist/data-access/manage/artifactComponents.d.ts +6 -6
- package/dist/data-access/manage/contextConfigs.d.ts +8 -8
- package/dist/data-access/manage/dataComponents.d.ts +4 -4
- package/dist/data-access/manage/functionTools.d.ts +14 -14
- package/dist/data-access/manage/skills.d.ts +6 -6
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgentRelations.d.ts +22 -22
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgents.d.ts +18 -18
- package/dist/data-access/manage/tools.d.ts +18 -18
- package/dist/data-access/manage/triggerCleanup.d.ts +12 -0
- package/dist/data-access/manage/triggerCleanup.js +51 -0
- package/dist/data-access/manage/triggers.d.ts +12 -1
- package/dist/data-access/manage/triggers.js +8 -1
- package/dist/data-access/runtime/apiKeys.d.ts +12 -12
- package/dist/data-access/runtime/conversations.d.ts +16 -16
- package/dist/data-access/runtime/messages.d.ts +3 -3
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +3 -3
- package/dist/data-access/runtime/tasks.d.ts +4 -4
- package/dist/data-access/runtime/users.d.ts +5 -1
- package/dist/data-access/runtime/users.js +14 -1
- package/dist/db/manage/manage-schema.d.ts +485 -447
- package/dist/db/manage/manage-schema.js +2 -0
- package/dist/db/runtime/runtime-schema.d.ts +294 -294
- package/dist/index.d.ts +4 -4
- package/dist/index.js +4 -4
- package/dist/utils/error.d.ts +51 -51
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/index.d.ts +2 -2
- package/dist/validation/index.js +2 -2
- package/dist/validation/schemas.d.ts +1943 -1774
- package/dist/validation/schemas.js +18 -5
- package/drizzle/manage/0012_petite_weapon_omega.sql +2 -0
- package/drizzle/manage/meta/0012_snapshot.json +3697 -0
- package/drizzle/manage/meta/_journal.json +7 -0
- package/package.json +1 -1
- package/dist/auth/cleanup.d.ts +0 -12
- package/dist/auth/cleanup.js +0 -43
|
@@ -12,12 +12,6 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
12
12
|
id: string;
|
|
13
13
|
name: string;
|
|
14
14
|
description: string | null;
|
|
15
|
-
createdAt: string;
|
|
16
|
-
updatedAt: string;
|
|
17
|
-
projectId: string;
|
|
18
|
-
tenantId: string;
|
|
19
|
-
defaultSubAgentId: string | null;
|
|
20
|
-
contextConfigId: string | null;
|
|
21
15
|
models: {
|
|
22
16
|
base?: {
|
|
23
17
|
model?: string | undefined;
|
|
@@ -32,6 +26,15 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
32
26
|
providerOptions?: Record<string, any> | undefined;
|
|
33
27
|
} | undefined;
|
|
34
28
|
} | null;
|
|
29
|
+
stopWhen: {
|
|
30
|
+
transferCountIs?: number | undefined;
|
|
31
|
+
} | null;
|
|
32
|
+
createdAt: string;
|
|
33
|
+
updatedAt: string;
|
|
34
|
+
tenantId: string;
|
|
35
|
+
projectId: string;
|
|
36
|
+
defaultSubAgentId: string | null;
|
|
37
|
+
contextConfigId: string | null;
|
|
35
38
|
prompt: string | null;
|
|
36
39
|
statusUpdates: {
|
|
37
40
|
enabled?: boolean | undefined;
|
|
@@ -48,9 +51,6 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
48
51
|
} | undefined;
|
|
49
52
|
}[] | undefined;
|
|
50
53
|
} | null;
|
|
51
|
-
stopWhen: {
|
|
52
|
-
transferCountIs?: number | undefined;
|
|
53
|
-
} | null;
|
|
54
54
|
} | null>;
|
|
55
55
|
declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
56
56
|
scopes: AgentScopeConfig;
|
|
@@ -58,12 +58,6 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
58
58
|
id: string;
|
|
59
59
|
name: string;
|
|
60
60
|
description: string | null;
|
|
61
|
-
createdAt: string;
|
|
62
|
-
updatedAt: string;
|
|
63
|
-
projectId: string;
|
|
64
|
-
tenantId: string;
|
|
65
|
-
defaultSubAgentId: string | null;
|
|
66
|
-
contextConfigId: string | null;
|
|
67
61
|
models: {
|
|
68
62
|
base?: {
|
|
69
63
|
model?: string | undefined;
|
|
@@ -78,6 +72,15 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
78
72
|
providerOptions?: Record<string, any> | undefined;
|
|
79
73
|
} | undefined;
|
|
80
74
|
} | null;
|
|
75
|
+
stopWhen: {
|
|
76
|
+
transferCountIs?: number | undefined;
|
|
77
|
+
} | null;
|
|
78
|
+
createdAt: string;
|
|
79
|
+
updatedAt: string;
|
|
80
|
+
tenantId: string;
|
|
81
|
+
projectId: string;
|
|
82
|
+
defaultSubAgentId: string | null;
|
|
83
|
+
contextConfigId: string | null;
|
|
81
84
|
prompt: string | null;
|
|
82
85
|
statusUpdates: {
|
|
83
86
|
enabled?: boolean | undefined;
|
|
@@ -94,18 +97,10 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
94
97
|
} | undefined;
|
|
95
98
|
}[] | undefined;
|
|
96
99
|
} | null;
|
|
97
|
-
stopWhen: {
|
|
98
|
-
transferCountIs?: number | undefined;
|
|
99
|
-
} | null;
|
|
100
100
|
defaultSubAgent: {
|
|
101
101
|
id: string;
|
|
102
102
|
name: string;
|
|
103
103
|
description: string | null;
|
|
104
|
-
createdAt: string;
|
|
105
|
-
updatedAt: string;
|
|
106
|
-
agentId: string;
|
|
107
|
-
projectId: string;
|
|
108
|
-
tenantId: string;
|
|
109
104
|
models: {
|
|
110
105
|
base?: {
|
|
111
106
|
model?: string | undefined;
|
|
@@ -120,10 +115,15 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
120
115
|
providerOptions?: Record<string, any> | undefined;
|
|
121
116
|
} | undefined;
|
|
122
117
|
} | null;
|
|
123
|
-
prompt: string | null;
|
|
124
118
|
stopWhen: {
|
|
125
119
|
stepCountIs?: number | undefined;
|
|
126
120
|
} | null;
|
|
121
|
+
createdAt: string;
|
|
122
|
+
updatedAt: string;
|
|
123
|
+
tenantId: string;
|
|
124
|
+
projectId: string;
|
|
125
|
+
prompt: string | null;
|
|
126
|
+
agentId: string;
|
|
127
127
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
128
128
|
} | null;
|
|
129
129
|
} | null>;
|
|
@@ -133,12 +133,6 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
133
133
|
id: string;
|
|
134
134
|
name: string;
|
|
135
135
|
description: string | null;
|
|
136
|
-
createdAt: string;
|
|
137
|
-
updatedAt: string;
|
|
138
|
-
projectId: string;
|
|
139
|
-
tenantId: string;
|
|
140
|
-
defaultSubAgentId: string | null;
|
|
141
|
-
contextConfigId: string | null;
|
|
142
136
|
models: {
|
|
143
137
|
base?: {
|
|
144
138
|
model?: string | undefined;
|
|
@@ -153,6 +147,15 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
153
147
|
providerOptions?: Record<string, any> | undefined;
|
|
154
148
|
} | undefined;
|
|
155
149
|
} | null;
|
|
150
|
+
stopWhen: {
|
|
151
|
+
transferCountIs?: number | undefined;
|
|
152
|
+
} | null;
|
|
153
|
+
createdAt: string;
|
|
154
|
+
updatedAt: string;
|
|
155
|
+
tenantId: string;
|
|
156
|
+
projectId: string;
|
|
157
|
+
defaultSubAgentId: string | null;
|
|
158
|
+
contextConfigId: string | null;
|
|
156
159
|
prompt: string | null;
|
|
157
160
|
statusUpdates: {
|
|
158
161
|
enabled?: boolean | undefined;
|
|
@@ -169,9 +172,6 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
169
172
|
} | undefined;
|
|
170
173
|
}[] | undefined;
|
|
171
174
|
} | null;
|
|
172
|
-
stopWhen: {
|
|
173
|
-
transferCountIs?: number | undefined;
|
|
174
|
-
} | null;
|
|
175
175
|
}[]>;
|
|
176
176
|
declare const listAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
177
177
|
scopes: ProjectScopeConfig;
|
|
@@ -249,12 +249,6 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
249
249
|
id: string;
|
|
250
250
|
name: string;
|
|
251
251
|
description: string | null;
|
|
252
|
-
createdAt: string;
|
|
253
|
-
updatedAt: string;
|
|
254
|
-
projectId: string;
|
|
255
|
-
tenantId: string;
|
|
256
|
-
defaultSubAgentId: string | null;
|
|
257
|
-
contextConfigId: string | null;
|
|
258
252
|
models: {
|
|
259
253
|
base?: {
|
|
260
254
|
model?: string | undefined;
|
|
@@ -269,6 +263,15 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
269
263
|
providerOptions?: Record<string, any> | undefined;
|
|
270
264
|
} | undefined;
|
|
271
265
|
} | null;
|
|
266
|
+
stopWhen: {
|
|
267
|
+
transferCountIs?: number | undefined;
|
|
268
|
+
} | null;
|
|
269
|
+
createdAt: string;
|
|
270
|
+
updatedAt: string;
|
|
271
|
+
tenantId: string;
|
|
272
|
+
projectId: string;
|
|
273
|
+
defaultSubAgentId: string | null;
|
|
274
|
+
contextConfigId: string | null;
|
|
272
275
|
prompt: string | null;
|
|
273
276
|
statusUpdates: {
|
|
274
277
|
enabled?: boolean | undefined;
|
|
@@ -285,9 +288,6 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
285
288
|
} | undefined;
|
|
286
289
|
}[] | undefined;
|
|
287
290
|
} | null;
|
|
288
|
-
stopWhen: {
|
|
289
|
-
transferCountIs?: number | undefined;
|
|
290
|
-
} | null;
|
|
291
291
|
}>;
|
|
292
292
|
declare const updateAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
293
293
|
scopes: AgentScopeConfig;
|
|
@@ -365,7 +365,10 @@ const getFullAgentDefinitionInternal = (db) => async ({ scopes: { tenantId, proj
|
|
|
365
365
|
id: agent.contextConfigId
|
|
366
366
|
});
|
|
367
367
|
} catch (error) {
|
|
368
|
-
|
|
368
|
+
agentsLogger.warn({
|
|
369
|
+
error,
|
|
370
|
+
contextConfigId: agent.contextConfigId
|
|
371
|
+
}, "Failed to retrieve contextConfig");
|
|
369
372
|
}
|
|
370
373
|
try {
|
|
371
374
|
await fetchComponentRelationships(db)({
|
|
@@ -386,7 +389,7 @@ const getFullAgentDefinitionInternal = (db) => async ({ scopes: { tenantId, proj
|
|
|
386
389
|
}
|
|
387
390
|
});
|
|
388
391
|
} catch (error) {
|
|
389
|
-
|
|
392
|
+
agentsLogger.warn({ error }, "Failed to retrieve dataComponents");
|
|
390
393
|
}
|
|
391
394
|
try {
|
|
392
395
|
await fetchComponentRelationships(db)({
|
|
@@ -407,7 +410,7 @@ const getFullAgentDefinitionInternal = (db) => async ({ scopes: { tenantId, proj
|
|
|
407
410
|
}
|
|
408
411
|
});
|
|
409
412
|
} catch (error) {
|
|
410
|
-
|
|
413
|
+
agentsLogger.warn({ error }, "Failed to retrieve artifactComponents");
|
|
411
414
|
}
|
|
412
415
|
const result = {
|
|
413
416
|
id: agent.id,
|
|
@@ -455,7 +458,10 @@ const getFullAgentDefinitionInternal = (db) => async ({ scopes: { tenantId, proj
|
|
|
455
458
|
stopWhen: agent$1.stopWhen
|
|
456
459
|
};
|
|
457
460
|
} catch (dbError) {
|
|
458
|
-
|
|
461
|
+
agentsLogger.warn({
|
|
462
|
+
error: dbError,
|
|
463
|
+
subAgentId
|
|
464
|
+
}, "Failed to persist stopWhen for agent");
|
|
459
465
|
}
|
|
460
466
|
}
|
|
461
467
|
}
|
|
@@ -463,7 +469,7 @@ const getFullAgentDefinitionInternal = (db) => async ({ scopes: { tenantId, proj
|
|
|
463
469
|
}
|
|
464
470
|
}
|
|
465
471
|
} catch (error) {
|
|
466
|
-
|
|
472
|
+
agentsLogger.warn({ error }, "Failed to apply agent stepCountIs inheritance");
|
|
467
473
|
}
|
|
468
474
|
try {
|
|
469
475
|
const usedToolIds = new Set(Object.values(agentsObject).flatMap((a) => Array.isArray(a?.canUse) ? a.canUse : []).map((ref) => ref?.toolId).filter(Boolean));
|
|
@@ -532,7 +538,7 @@ const getFullAgentDefinitionInternal = (db) => async ({ scopes: { tenantId, proj
|
|
|
532
538
|
result.functions = Object.fromEntries(functions);
|
|
533
539
|
}
|
|
534
540
|
} catch (error) {
|
|
535
|
-
|
|
541
|
+
agentsLogger.warn({ error }, "Failed to load tools/functions lookups");
|
|
536
542
|
}
|
|
537
543
|
try {
|
|
538
544
|
const triggersList = await listTriggers(db)({ scopes: {
|
|
@@ -540,7 +546,10 @@ const getFullAgentDefinitionInternal = (db) => async ({ scopes: { tenantId, proj
|
|
|
540
546
|
projectId,
|
|
541
547
|
agentId
|
|
542
548
|
} });
|
|
543
|
-
|
|
549
|
+
agentsLogger.debug({
|
|
550
|
+
agentId,
|
|
551
|
+
count: triggersList.length
|
|
552
|
+
}, "Fetched triggers for agent");
|
|
544
553
|
if (triggersList.length > 0) {
|
|
545
554
|
const triggersObject = {};
|
|
546
555
|
for (const trigger of triggersList) triggersObject[trigger.id] = {
|
|
@@ -553,13 +562,18 @@ const getFullAgentDefinitionInternal = (db) => async ({ scopes: { tenantId, proj
|
|
|
553
562
|
messageTemplate: trigger.messageTemplate,
|
|
554
563
|
authentication: trigger.authentication,
|
|
555
564
|
signingSecretCredentialReferenceId: trigger.signingSecretCredentialReferenceId,
|
|
556
|
-
signatureVerification: trigger.signatureVerification
|
|
565
|
+
signatureVerification: trigger.signatureVerification,
|
|
566
|
+
runAsUserId: trigger.runAsUserId,
|
|
567
|
+
createdBy: trigger.createdBy
|
|
557
568
|
};
|
|
558
569
|
result.triggers = triggersObject;
|
|
559
|
-
|
|
570
|
+
agentsLogger.debug({
|
|
571
|
+
agentId,
|
|
572
|
+
triggerIds: Object.keys(triggersObject)
|
|
573
|
+
}, "Added triggers to result");
|
|
560
574
|
}
|
|
561
575
|
} catch (error) {
|
|
562
|
-
|
|
576
|
+
agentsLogger.warn({ error }, "Failed to load triggers");
|
|
563
577
|
}
|
|
564
578
|
try {
|
|
565
579
|
const scheduledTriggersList = await listScheduledTriggers(db)({ scopes: {
|
|
@@ -588,7 +602,7 @@ const getFullAgentDefinitionInternal = (db) => async ({ scopes: { tenantId, proj
|
|
|
588
602
|
result.scheduledTriggers = scheduledTriggersObject;
|
|
589
603
|
}
|
|
590
604
|
} catch (error) {
|
|
591
|
-
|
|
605
|
+
agentsLogger.warn({ error }, "Failed to load scheduled triggers");
|
|
592
606
|
}
|
|
593
607
|
return result;
|
|
594
608
|
};
|
|
@@ -14,8 +14,8 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
|
|
|
14
14
|
description: string | null;
|
|
15
15
|
createdAt: string;
|
|
16
16
|
updatedAt: string;
|
|
17
|
-
projectId: string;
|
|
18
17
|
tenantId: string;
|
|
18
|
+
projectId: string;
|
|
19
19
|
props: {
|
|
20
20
|
[x: string]: unknown;
|
|
21
21
|
type: "object";
|
|
@@ -70,8 +70,8 @@ declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (para
|
|
|
70
70
|
description: string | null;
|
|
71
71
|
createdAt: string;
|
|
72
72
|
updatedAt: string;
|
|
73
|
-
projectId: string;
|
|
74
73
|
tenantId: string;
|
|
74
|
+
projectId: string;
|
|
75
75
|
props: {
|
|
76
76
|
[x: string]: unknown;
|
|
77
77
|
type: "object";
|
|
@@ -143,9 +143,9 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
|
|
|
143
143
|
}) => Promise<{
|
|
144
144
|
id: string;
|
|
145
145
|
createdAt: string;
|
|
146
|
-
agentId: string;
|
|
147
|
-
projectId: string;
|
|
148
146
|
tenantId: string;
|
|
147
|
+
projectId: string;
|
|
148
|
+
agentId: string;
|
|
149
149
|
subAgentId: string;
|
|
150
150
|
artifactComponentId: string;
|
|
151
151
|
}>;
|
|
@@ -186,9 +186,9 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
|
|
|
186
186
|
}) => Promise<{
|
|
187
187
|
id: string;
|
|
188
188
|
createdAt: string;
|
|
189
|
-
agentId: string;
|
|
190
|
-
projectId: string;
|
|
191
189
|
tenantId: string;
|
|
190
|
+
projectId: string;
|
|
191
|
+
agentId: string;
|
|
192
192
|
subAgentId: string;
|
|
193
193
|
artifactComponentId: string;
|
|
194
194
|
} | null>;
|
|
@@ -12,9 +12,9 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
12
12
|
id: string;
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
|
-
agentId: string;
|
|
16
|
-
projectId: string;
|
|
17
15
|
tenantId: string;
|
|
16
|
+
projectId: string;
|
|
17
|
+
agentId: string;
|
|
18
18
|
headersSchema: unknown;
|
|
19
19
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
20
20
|
} | undefined>;
|
|
@@ -24,9 +24,9 @@ declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
24
24
|
id: string;
|
|
25
25
|
createdAt: string;
|
|
26
26
|
updatedAt: string;
|
|
27
|
-
agentId: string;
|
|
28
|
-
projectId: string;
|
|
29
27
|
tenantId: string;
|
|
28
|
+
projectId: string;
|
|
29
|
+
agentId: string;
|
|
30
30
|
headersSchema: unknown;
|
|
31
31
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
32
32
|
}[]>;
|
|
@@ -46,9 +46,9 @@ declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params:
|
|
|
46
46
|
id: string;
|
|
47
47
|
createdAt: string;
|
|
48
48
|
updatedAt: string;
|
|
49
|
-
agentId: string;
|
|
50
|
-
projectId: string;
|
|
51
49
|
tenantId: string;
|
|
50
|
+
projectId: string;
|
|
51
|
+
agentId: string;
|
|
52
52
|
headersSchema: unknown;
|
|
53
53
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
54
54
|
}>;
|
|
@@ -86,9 +86,9 @@ declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params:
|
|
|
86
86
|
id: string;
|
|
87
87
|
createdAt: string;
|
|
88
88
|
updatedAt: string;
|
|
89
|
-
agentId: string;
|
|
90
|
-
projectId: string;
|
|
91
89
|
tenantId: string;
|
|
90
|
+
projectId: string;
|
|
91
|
+
agentId: string;
|
|
92
92
|
headersSchema: unknown;
|
|
93
93
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
94
94
|
}>;
|
|
@@ -67,9 +67,9 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
|
|
|
67
67
|
}) => Promise<{
|
|
68
68
|
id: string;
|
|
69
69
|
createdAt: string;
|
|
70
|
-
agentId: string;
|
|
71
|
-
projectId: string;
|
|
72
70
|
tenantId: string;
|
|
71
|
+
projectId: string;
|
|
72
|
+
agentId: string;
|
|
73
73
|
subAgentId: string;
|
|
74
74
|
dataComponentId: string;
|
|
75
75
|
}>;
|
|
@@ -109,9 +109,9 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
|
|
|
109
109
|
}) => Promise<{
|
|
110
110
|
id: string;
|
|
111
111
|
createdAt: string;
|
|
112
|
-
agentId: string;
|
|
113
|
-
projectId: string;
|
|
114
112
|
tenantId: string;
|
|
113
|
+
projectId: string;
|
|
114
|
+
agentId: string;
|
|
115
115
|
subAgentId: string;
|
|
116
116
|
dataComponentId: string;
|
|
117
117
|
} | null>;
|
|
@@ -56,12 +56,12 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
56
56
|
id: string;
|
|
57
57
|
name: string;
|
|
58
58
|
description: string | null;
|
|
59
|
-
functionId: string;
|
|
60
59
|
createdAt: string;
|
|
61
60
|
updatedAt: string;
|
|
62
|
-
agentId: string;
|
|
63
|
-
projectId: string;
|
|
64
61
|
tenantId: string;
|
|
62
|
+
projectId: string;
|
|
63
|
+
agentId: string;
|
|
64
|
+
functionId: string;
|
|
65
65
|
}>;
|
|
66
66
|
/**
|
|
67
67
|
* Update a function tool (agent-scoped)
|
|
@@ -98,12 +98,12 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
98
98
|
id: string;
|
|
99
99
|
name: string;
|
|
100
100
|
description: string | null;
|
|
101
|
-
functionId: string;
|
|
102
101
|
createdAt: string;
|
|
103
102
|
updatedAt: string;
|
|
104
|
-
agentId: string;
|
|
105
|
-
projectId: string;
|
|
106
103
|
tenantId: string;
|
|
104
|
+
projectId: string;
|
|
105
|
+
agentId: string;
|
|
106
|
+
functionId: string;
|
|
107
107
|
}>;
|
|
108
108
|
declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
109
109
|
scopes: {
|
|
@@ -164,14 +164,14 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
|
|
|
164
164
|
id: string;
|
|
165
165
|
createdAt: string;
|
|
166
166
|
updatedAt: string;
|
|
167
|
-
agentId: string;
|
|
168
|
-
projectId: string;
|
|
169
167
|
tenantId: string;
|
|
170
|
-
|
|
171
|
-
|
|
168
|
+
projectId: string;
|
|
169
|
+
agentId: string;
|
|
172
170
|
toolPolicies: Record<string, {
|
|
173
171
|
needsApproval?: boolean;
|
|
174
172
|
}> | null;
|
|
173
|
+
subAgentId: string;
|
|
174
|
+
functionToolId: string;
|
|
175
175
|
}>;
|
|
176
176
|
/**
|
|
177
177
|
* Update an agent-function tool relation
|
|
@@ -229,14 +229,14 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
|
|
|
229
229
|
id: string;
|
|
230
230
|
createdAt: string;
|
|
231
231
|
updatedAt: string;
|
|
232
|
-
agentId: string;
|
|
233
|
-
projectId: string;
|
|
234
232
|
tenantId: string;
|
|
235
|
-
|
|
236
|
-
|
|
233
|
+
projectId: string;
|
|
234
|
+
agentId: string;
|
|
237
235
|
toolPolicies: Record<string, {
|
|
238
236
|
needsApproval?: boolean;
|
|
239
237
|
}> | null;
|
|
238
|
+
subAgentId: string;
|
|
239
|
+
functionToolId: string;
|
|
240
240
|
}>;
|
|
241
241
|
//#endregion
|
|
242
242
|
export { addFunctionToolToSubAgent, associateFunctionToolWithSubAgent, createFunctionTool, deleteFunctionTool, getFunctionToolById, getFunctionToolsForSubAgent, getSubAgentsUsingFunctionTool, isFunctionToolAssociatedWithSubAgent, listFunctionTools, removeFunctionToolFromSubAgent, updateFunctionTool, updateSubAgentFunctionToolRelation, upsertFunctionTool, upsertSubAgentFunctionToolRelation };
|
|
@@ -13,8 +13,8 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
13
13
|
description: string;
|
|
14
14
|
createdAt: string;
|
|
15
15
|
updatedAt: string;
|
|
16
|
-
projectId: string;
|
|
17
16
|
tenantId: string;
|
|
17
|
+
projectId: string;
|
|
18
18
|
metadata: Record<string, string> | null;
|
|
19
19
|
content: string;
|
|
20
20
|
} | null>;
|
|
@@ -46,8 +46,8 @@ declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillInser
|
|
|
46
46
|
description: string;
|
|
47
47
|
createdAt: string;
|
|
48
48
|
updatedAt: string;
|
|
49
|
-
projectId: string;
|
|
50
49
|
tenantId: string;
|
|
50
|
+
projectId: string;
|
|
51
51
|
metadata: Record<string, string> | null;
|
|
52
52
|
content: string;
|
|
53
53
|
}>;
|
|
@@ -57,8 +57,8 @@ declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillInser
|
|
|
57
57
|
description: string;
|
|
58
58
|
createdAt: string;
|
|
59
59
|
updatedAt: string;
|
|
60
|
-
projectId: string;
|
|
61
60
|
tenantId: string;
|
|
61
|
+
projectId: string;
|
|
62
62
|
metadata: Record<string, string> | null;
|
|
63
63
|
content: string;
|
|
64
64
|
}>;
|
|
@@ -94,13 +94,13 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
|
|
|
94
94
|
id: string;
|
|
95
95
|
createdAt: string;
|
|
96
96
|
updatedAt: string;
|
|
97
|
-
agentId: string;
|
|
98
|
-
projectId: string;
|
|
99
97
|
tenantId: string;
|
|
98
|
+
projectId: string;
|
|
99
|
+
agentId: string;
|
|
100
100
|
subAgentId: string;
|
|
101
|
-
skillId: string;
|
|
102
101
|
index: number;
|
|
103
102
|
alwaysLoaded: boolean;
|
|
103
|
+
skillId: string;
|
|
104
104
|
}>;
|
|
105
105
|
declare const deleteSubAgentSkill: (db: AgentsManageDatabaseClient) => (params: {
|
|
106
106
|
scopes: AgentScopeConfig;
|
|
@@ -12,12 +12,12 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
|
|
|
12
12
|
id: string;
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
|
-
agentId: string;
|
|
16
|
-
projectId: string;
|
|
17
15
|
tenantId: string;
|
|
18
|
-
|
|
16
|
+
projectId: string;
|
|
17
|
+
agentId: string;
|
|
19
18
|
headers: Record<string, string> | null;
|
|
20
19
|
externalAgentId: string;
|
|
20
|
+
subAgentId: string;
|
|
21
21
|
} | undefined>;
|
|
22
22
|
declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
23
23
|
scopes: SubAgentScopeConfig;
|
|
@@ -47,12 +47,12 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
|
|
|
47
47
|
id: string;
|
|
48
48
|
createdAt: string;
|
|
49
49
|
updatedAt: string;
|
|
50
|
-
agentId: string;
|
|
51
|
-
projectId: string;
|
|
52
50
|
tenantId: string;
|
|
53
|
-
|
|
51
|
+
projectId: string;
|
|
52
|
+
agentId: string;
|
|
54
53
|
headers: Record<string, string> | null;
|
|
55
54
|
externalAgentId: string;
|
|
55
|
+
subAgentId: string;
|
|
56
56
|
}[]>;
|
|
57
57
|
declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
@@ -60,12 +60,12 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
|
|
|
60
60
|
id: string;
|
|
61
61
|
createdAt: string;
|
|
62
62
|
updatedAt: string;
|
|
63
|
-
agentId: string;
|
|
64
|
-
projectId: string;
|
|
65
63
|
tenantId: string;
|
|
66
|
-
|
|
64
|
+
projectId: string;
|
|
65
|
+
agentId: string;
|
|
67
66
|
headers: Record<string, string> | null;
|
|
68
67
|
externalAgentId: string;
|
|
68
|
+
subAgentId: string;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
71
71
|
scopes: AgentScopeConfig;
|
|
@@ -183,12 +183,12 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
183
183
|
id: string;
|
|
184
184
|
createdAt: string;
|
|
185
185
|
updatedAt: string;
|
|
186
|
-
agentId: string;
|
|
187
|
-
projectId: string;
|
|
188
186
|
tenantId: string;
|
|
189
|
-
|
|
187
|
+
projectId: string;
|
|
188
|
+
agentId: string;
|
|
190
189
|
headers: Record<string, string> | null;
|
|
191
190
|
externalAgentId: string;
|
|
191
|
+
subAgentId: string;
|
|
192
192
|
}>;
|
|
193
193
|
/**
|
|
194
194
|
* Check if sub-agent external agent relation exists by params
|
|
@@ -200,12 +200,12 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
|
|
|
200
200
|
id: string;
|
|
201
201
|
createdAt: string;
|
|
202
202
|
updatedAt: string;
|
|
203
|
-
agentId: string;
|
|
204
|
-
projectId: string;
|
|
205
203
|
tenantId: string;
|
|
206
|
-
|
|
204
|
+
projectId: string;
|
|
205
|
+
agentId: string;
|
|
207
206
|
headers: Record<string, string> | null;
|
|
208
207
|
externalAgentId: string;
|
|
208
|
+
subAgentId: string;
|
|
209
209
|
} | undefined>;
|
|
210
210
|
/**
|
|
211
211
|
* Upsert sub-agent external agent relation (create if it doesn't exist, update if it does)
|
|
@@ -221,12 +221,12 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
221
221
|
id: string;
|
|
222
222
|
createdAt: string;
|
|
223
223
|
updatedAt: string;
|
|
224
|
-
agentId: string;
|
|
225
|
-
projectId: string;
|
|
226
224
|
tenantId: string;
|
|
227
|
-
|
|
225
|
+
projectId: string;
|
|
226
|
+
agentId: string;
|
|
228
227
|
headers: Record<string, string> | null;
|
|
229
228
|
externalAgentId: string;
|
|
229
|
+
subAgentId: string;
|
|
230
230
|
}>;
|
|
231
231
|
declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
232
232
|
scopes: SubAgentScopeConfig;
|