@inkeep/agents-core 0.0.0-dev-20260123202200 → 0.0.0-dev-20260123205017
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 +82 -82
- package/dist/auth/auth-validation-schemas.d.ts +129 -129
- package/dist/auth/auth.d.ts +18 -18
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/client-exports.d.ts +3 -2
- package/dist/data-access/manage/agentFull.js +2 -0
- package/dist/data-access/manage/agents.d.ts +45 -45
- package/dist/data-access/manage/agents.js +3 -2
- package/dist/data-access/manage/artifactComponents.d.ts +10 -10
- package/dist/data-access/manage/contextConfigs.d.ts +12 -12
- package/dist/data-access/manage/dataComponents.d.ts +4 -4
- package/dist/data-access/manage/functionTools.d.ts +33 -12
- package/dist/data-access/manage/functionTools.js +10 -6
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgentRelations.d.ts +22 -22
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgents.d.ts +27 -27
- package/dist/data-access/manage/tools.d.ts +15 -15
- package/dist/data-access/runtime/apiKeys.d.ts +12 -12
- package/dist/data-access/runtime/conversations.d.ts +19 -19
- package/dist/data-access/runtime/messages.d.ts +15 -15
- package/dist/data-access/runtime/tasks.d.ts +5 -5
- package/dist/db/manage/manage-schema.d.ts +323 -300
- package/dist/db/manage/manage-schema.js +1 -0
- package/dist/db/runtime/runtime-schema.d.ts +163 -163
- package/dist/validation/dolt-schemas.d.ts +1 -1
- package/dist/validation/schemas.d.ts +1599 -1548
- package/drizzle/manage/0004_curious_phil_sheldon.sql +2 -0
- package/drizzle/manage/meta/0004_snapshot.json +3141 -0
- package/drizzle/manage/meta/_journal.json +7 -0
- package/package.json +1 -1
|
@@ -112,7 +112,8 @@ const getFunctionToolsForSubAgent = (db) => {
|
|
|
112
112
|
tenantId: functionTools.tenantId,
|
|
113
113
|
projectId: functionTools.projectId,
|
|
114
114
|
agentId: functionTools.agentId,
|
|
115
|
-
relationshipId: subAgentFunctionToolRelations.id
|
|
115
|
+
relationshipId: subAgentFunctionToolRelations.id,
|
|
116
|
+
toolPolicies: subAgentFunctionToolRelations.toolPolicies
|
|
116
117
|
}).from(subAgentFunctionToolRelations).innerJoin(functionTools, and(eq(subAgentFunctionToolRelations.functionToolId, functionTools.id), eq(subAgentFunctionToolRelations.tenantId, functionTools.tenantId), eq(subAgentFunctionToolRelations.projectId, functionTools.projectId), eq(subAgentFunctionToolRelations.agentId, functionTools.agentId))).where(whereClause).limit(limit).offset(offset).orderBy(desc(subAgentFunctionToolRelations.createdAt)), db.select({ count: count() }).from(subAgentFunctionToolRelations).where(whereClause)]);
|
|
117
118
|
const total = totalResult[0]?.count || 0;
|
|
118
119
|
return {
|
|
@@ -140,14 +141,15 @@ const getFunctionToolsForSubAgent = (db) => {
|
|
|
140
141
|
* Upsert a sub_agent-function tool relation (create if it doesn't exist, update if it does)
|
|
141
142
|
*/
|
|
142
143
|
const upsertSubAgentFunctionToolRelation = (db) => async (params) => {
|
|
143
|
-
const { scopes, subAgentId, functionToolId, relationId } = params;
|
|
144
|
+
const { scopes, subAgentId, functionToolId, toolPolicies, relationId } = params;
|
|
144
145
|
const { tenantId, projectId, agentId } = scopes;
|
|
145
146
|
if (relationId) return await updateSubAgentFunctionToolRelation(db)({
|
|
146
147
|
scopes,
|
|
147
148
|
relationId,
|
|
148
149
|
data: {
|
|
149
150
|
subAgentId,
|
|
150
|
-
functionToolId
|
|
151
|
+
functionToolId,
|
|
152
|
+
...toolPolicies !== void 0 ? { toolPolicies } : {}
|
|
151
153
|
}
|
|
152
154
|
});
|
|
153
155
|
try {
|
|
@@ -181,7 +183,7 @@ const upsertSubAgentFunctionToolRelation = (db) => async (params) => {
|
|
|
181
183
|
*/
|
|
182
184
|
const addFunctionToolToSubAgent = (db) => {
|
|
183
185
|
return async (params) => {
|
|
184
|
-
const { scopes, subAgentId, functionToolId } = params;
|
|
186
|
+
const { scopes, subAgentId, functionToolId, toolPolicies } = params;
|
|
185
187
|
const { tenantId, projectId, agentId } = scopes;
|
|
186
188
|
try {
|
|
187
189
|
const relationId = generateId();
|
|
@@ -191,7 +193,8 @@ const addFunctionToolToSubAgent = (db) => {
|
|
|
191
193
|
projectId,
|
|
192
194
|
agentId,
|
|
193
195
|
subAgentId,
|
|
194
|
-
functionToolId
|
|
196
|
+
functionToolId,
|
|
197
|
+
...toolPolicies !== void 0 ? { toolPolicies } : {}
|
|
195
198
|
}).returning();
|
|
196
199
|
logger.info({
|
|
197
200
|
tenantId,
|
|
@@ -225,7 +228,8 @@ const updateSubAgentFunctionToolRelation = (db) => {
|
|
|
225
228
|
try {
|
|
226
229
|
await db.update(subAgentFunctionToolRelations).set({
|
|
227
230
|
subAgentId: data.subAgentId,
|
|
228
|
-
functionToolId: data.functionToolId
|
|
231
|
+
functionToolId: data.functionToolId,
|
|
232
|
+
...data.toolPolicies !== void 0 ? { toolPolicies: data.toolPolicies } : {}
|
|
229
233
|
}).where(and(eq(subAgentFunctionToolRelations.id, relationId), eq(subAgentFunctionToolRelations.tenantId, tenantId), eq(subAgentFunctionToolRelations.projectId, projectId), eq(subAgentFunctionToolRelations.agentId, agentId)));
|
|
230
234
|
logger.info({
|
|
231
235
|
tenantId,
|
|
@@ -12,10 +12,10 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
|
|
|
12
12
|
createdAt: string;
|
|
13
13
|
updatedAt: string;
|
|
14
14
|
headers: Record<string, string> | null;
|
|
15
|
-
agentId: string;
|
|
16
|
-
projectId: string;
|
|
17
15
|
tenantId: string;
|
|
16
|
+
projectId: string;
|
|
18
17
|
subAgentId: string;
|
|
18
|
+
agentId: string;
|
|
19
19
|
externalAgentId: string;
|
|
20
20
|
} | undefined>;
|
|
21
21
|
declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -47,10 +47,10 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
|
|
|
47
47
|
createdAt: string;
|
|
48
48
|
updatedAt: string;
|
|
49
49
|
headers: Record<string, string> | null;
|
|
50
|
-
agentId: string;
|
|
51
|
-
projectId: string;
|
|
52
50
|
tenantId: string;
|
|
51
|
+
projectId: string;
|
|
53
52
|
subAgentId: string;
|
|
53
|
+
agentId: string;
|
|
54
54
|
externalAgentId: string;
|
|
55
55
|
}[]>;
|
|
56
56
|
declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -60,10 +60,10 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
|
|
|
60
60
|
createdAt: string;
|
|
61
61
|
updatedAt: string;
|
|
62
62
|
headers: Record<string, string> | null;
|
|
63
|
-
agentId: string;
|
|
64
|
-
projectId: string;
|
|
65
63
|
tenantId: string;
|
|
64
|
+
projectId: string;
|
|
66
65
|
subAgentId: string;
|
|
66
|
+
agentId: string;
|
|
67
67
|
externalAgentId: string;
|
|
68
68
|
}[]>;
|
|
69
69
|
declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -183,10 +183,10 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
183
183
|
createdAt: string;
|
|
184
184
|
updatedAt: string;
|
|
185
185
|
headers: Record<string, string> | null;
|
|
186
|
-
agentId: string;
|
|
187
|
-
projectId: string;
|
|
188
186
|
tenantId: string;
|
|
187
|
+
projectId: string;
|
|
189
188
|
subAgentId: string;
|
|
189
|
+
agentId: string;
|
|
190
190
|
externalAgentId: string;
|
|
191
191
|
}>;
|
|
192
192
|
/**
|
|
@@ -200,10 +200,10 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
|
|
|
200
200
|
createdAt: string;
|
|
201
201
|
updatedAt: string;
|
|
202
202
|
headers: Record<string, string> | null;
|
|
203
|
-
agentId: string;
|
|
204
|
-
projectId: string;
|
|
205
203
|
tenantId: string;
|
|
204
|
+
projectId: string;
|
|
206
205
|
subAgentId: string;
|
|
206
|
+
agentId: string;
|
|
207
207
|
externalAgentId: string;
|
|
208
208
|
} | undefined>;
|
|
209
209
|
/**
|
|
@@ -221,10 +221,10 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
221
221
|
createdAt: string;
|
|
222
222
|
updatedAt: string;
|
|
223
223
|
headers: Record<string, string> | null;
|
|
224
|
-
agentId: string;
|
|
225
|
-
projectId: string;
|
|
226
224
|
tenantId: string;
|
|
225
|
+
projectId: string;
|
|
227
226
|
subAgentId: string;
|
|
227
|
+
agentId: string;
|
|
228
228
|
externalAgentId: string;
|
|
229
229
|
}>;
|
|
230
230
|
declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -11,12 +11,12 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
11
11
|
id: string;
|
|
12
12
|
createdAt: string;
|
|
13
13
|
updatedAt: string;
|
|
14
|
-
agentId: string;
|
|
15
|
-
projectId: string;
|
|
16
14
|
tenantId: string;
|
|
17
|
-
|
|
15
|
+
projectId: string;
|
|
16
|
+
agentId: string;
|
|
18
17
|
sourceSubAgentId: string;
|
|
19
18
|
targetSubAgentId: string | null;
|
|
19
|
+
relationType: string | null;
|
|
20
20
|
} | undefined>;
|
|
21
21
|
declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
22
22
|
scopes: AgentScopeConfig;
|
|
@@ -46,12 +46,12 @@ declare const getAgentRelations: (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;
|
|
52
|
-
|
|
50
|
+
projectId: string;
|
|
51
|
+
agentId: string;
|
|
53
52
|
sourceSubAgentId: string;
|
|
54
53
|
targetSubAgentId: string | null;
|
|
54
|
+
relationType: string | null;
|
|
55
55
|
}[]>;
|
|
56
56
|
declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
57
57
|
scopes: AgentScopeConfig;
|
|
@@ -59,12 +59,12 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
|
|
|
59
59
|
id: string;
|
|
60
60
|
createdAt: string;
|
|
61
61
|
updatedAt: string;
|
|
62
|
-
agentId: string;
|
|
63
|
-
projectId: string;
|
|
64
62
|
tenantId: string;
|
|
65
|
-
|
|
63
|
+
projectId: string;
|
|
64
|
+
agentId: string;
|
|
66
65
|
sourceSubAgentId: string;
|
|
67
66
|
targetSubAgentId: string | null;
|
|
67
|
+
relationType: string | null;
|
|
68
68
|
}[]>;
|
|
69
69
|
declare const getAgentRelationsBySource: (db: AgentsManageDatabaseClient) => (params: {
|
|
70
70
|
scopes: AgentScopeConfig;
|
|
@@ -128,12 +128,12 @@ declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
|
|
|
128
128
|
id: string;
|
|
129
129
|
createdAt: string;
|
|
130
130
|
updatedAt: string;
|
|
131
|
-
agentId: string;
|
|
132
|
-
projectId: string;
|
|
133
131
|
tenantId: string;
|
|
134
|
-
|
|
132
|
+
projectId: string;
|
|
133
|
+
agentId: string;
|
|
135
134
|
sourceSubAgentId: string;
|
|
136
135
|
targetSubAgentId: string | null;
|
|
136
|
+
relationType: string | null;
|
|
137
137
|
}>;
|
|
138
138
|
/**
|
|
139
139
|
* Check if sub-agent relation exists by agent, source, target, and relation type
|
|
@@ -147,12 +147,12 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
147
147
|
id: string;
|
|
148
148
|
createdAt: string;
|
|
149
149
|
updatedAt: string;
|
|
150
|
-
agentId: string;
|
|
151
|
-
projectId: string;
|
|
152
150
|
tenantId: string;
|
|
153
|
-
|
|
151
|
+
projectId: string;
|
|
152
|
+
agentId: string;
|
|
154
153
|
sourceSubAgentId: string;
|
|
155
154
|
targetSubAgentId: string | null;
|
|
155
|
+
relationType: string | null;
|
|
156
156
|
} | undefined>;
|
|
157
157
|
/**
|
|
158
158
|
* Upsert agent relation (create if it doesn't exist, no-op if it does)
|
|
@@ -161,12 +161,12 @@ declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
|
|
|
161
161
|
id: string;
|
|
162
162
|
createdAt: string;
|
|
163
163
|
updatedAt: string;
|
|
164
|
-
agentId: string;
|
|
165
|
-
projectId: string;
|
|
166
164
|
tenantId: string;
|
|
167
|
-
|
|
165
|
+
projectId: string;
|
|
166
|
+
agentId: string;
|
|
168
167
|
sourceSubAgentId: string;
|
|
169
168
|
targetSubAgentId: string | null;
|
|
169
|
+
relationType: string | null;
|
|
170
170
|
}>;
|
|
171
171
|
declare const updateAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
172
172
|
scopes: AgentScopeConfig;
|
|
@@ -207,10 +207,10 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
207
207
|
createdAt: string;
|
|
208
208
|
updatedAt: string;
|
|
209
209
|
headers: Record<string, string> | null;
|
|
210
|
-
agentId: string;
|
|
211
|
-
projectId: string;
|
|
212
210
|
tenantId: string;
|
|
211
|
+
projectId: string;
|
|
213
212
|
subAgentId: string;
|
|
213
|
+
agentId: string;
|
|
214
214
|
toolId: string;
|
|
215
215
|
toolPolicies: Record<string, {
|
|
216
216
|
needsApproval?: boolean;
|
|
@@ -251,10 +251,10 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
|
|
|
251
251
|
createdAt: string;
|
|
252
252
|
updatedAt: string;
|
|
253
253
|
headers: Record<string, string> | null;
|
|
254
|
-
agentId: string;
|
|
255
|
-
projectId: string;
|
|
256
254
|
tenantId: string;
|
|
255
|
+
projectId: string;
|
|
257
256
|
subAgentId: string;
|
|
257
|
+
agentId: string;
|
|
258
258
|
toolId: string;
|
|
259
259
|
toolPolicies: Record<string, {
|
|
260
260
|
needsApproval?: boolean;
|
|
@@ -12,10 +12,10 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
12
12
|
createdAt: string;
|
|
13
13
|
updatedAt: string;
|
|
14
14
|
headers: Record<string, string> | null;
|
|
15
|
-
agentId: string;
|
|
16
|
-
projectId: string;
|
|
17
15
|
tenantId: string;
|
|
16
|
+
projectId: string;
|
|
18
17
|
subAgentId: string;
|
|
18
|
+
agentId: string;
|
|
19
19
|
targetAgentId: string;
|
|
20
20
|
} | undefined>;
|
|
21
21
|
declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -47,10 +47,10 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
|
|
|
47
47
|
createdAt: string;
|
|
48
48
|
updatedAt: string;
|
|
49
49
|
headers: Record<string, string> | null;
|
|
50
|
-
agentId: string;
|
|
51
|
-
projectId: string;
|
|
52
50
|
tenantId: string;
|
|
51
|
+
projectId: string;
|
|
53
52
|
subAgentId: string;
|
|
53
|
+
agentId: string;
|
|
54
54
|
targetAgentId: string;
|
|
55
55
|
}[]>;
|
|
56
56
|
declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -60,10 +60,10 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
|
|
|
60
60
|
createdAt: string;
|
|
61
61
|
updatedAt: string;
|
|
62
62
|
headers: Record<string, string> | null;
|
|
63
|
-
agentId: string;
|
|
64
|
-
projectId: string;
|
|
65
63
|
tenantId: string;
|
|
64
|
+
projectId: string;
|
|
66
65
|
subAgentId: string;
|
|
66
|
+
agentId: string;
|
|
67
67
|
targetAgentId: string;
|
|
68
68
|
}[]>;
|
|
69
69
|
declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -213,10 +213,10 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
213
213
|
createdAt: string;
|
|
214
214
|
updatedAt: string;
|
|
215
215
|
headers: Record<string, string> | null;
|
|
216
|
-
agentId: string;
|
|
217
|
-
projectId: string;
|
|
218
216
|
tenantId: string;
|
|
217
|
+
projectId: string;
|
|
219
218
|
subAgentId: string;
|
|
219
|
+
agentId: string;
|
|
220
220
|
targetAgentId: string;
|
|
221
221
|
}>;
|
|
222
222
|
/**
|
|
@@ -230,10 +230,10 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
|
|
|
230
230
|
createdAt: string;
|
|
231
231
|
updatedAt: string;
|
|
232
232
|
headers: Record<string, string> | null;
|
|
233
|
-
agentId: string;
|
|
234
|
-
projectId: string;
|
|
235
233
|
tenantId: string;
|
|
234
|
+
projectId: string;
|
|
236
235
|
subAgentId: string;
|
|
236
|
+
agentId: string;
|
|
237
237
|
targetAgentId: string;
|
|
238
238
|
} | undefined>;
|
|
239
239
|
/**
|
|
@@ -251,10 +251,10 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
251
251
|
createdAt: string;
|
|
252
252
|
updatedAt: string;
|
|
253
253
|
headers: Record<string, string> | null;
|
|
254
|
-
agentId: string;
|
|
255
|
-
projectId: string;
|
|
256
254
|
tenantId: string;
|
|
255
|
+
projectId: string;
|
|
257
256
|
subAgentId: string;
|
|
257
|
+
agentId: string;
|
|
258
258
|
targetAgentId: string;
|
|
259
259
|
}>;
|
|
260
260
|
declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -8,14 +8,18 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
8
8
|
scopes: AgentScopeConfig;
|
|
9
9
|
subAgentId: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
-
id: string;
|
|
12
11
|
name: string;
|
|
12
|
+
description: string | null;
|
|
13
|
+
id: string;
|
|
13
14
|
createdAt: string;
|
|
14
15
|
updatedAt: string;
|
|
15
|
-
description: string | null;
|
|
16
|
-
agentId: string;
|
|
17
|
-
projectId: string;
|
|
18
16
|
tenantId: string;
|
|
17
|
+
projectId: string;
|
|
18
|
+
stopWhen: {
|
|
19
|
+
stepCountIs?: number | undefined;
|
|
20
|
+
} | null;
|
|
21
|
+
prompt: string | null;
|
|
22
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
19
23
|
models: {
|
|
20
24
|
base?: {
|
|
21
25
|
model?: string | undefined;
|
|
@@ -30,23 +34,23 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
30
34
|
providerOptions?: Record<string, any> | undefined;
|
|
31
35
|
} | undefined;
|
|
32
36
|
} | null;
|
|
33
|
-
|
|
34
|
-
stopWhen: {
|
|
35
|
-
stepCountIs?: number | undefined;
|
|
36
|
-
} | null;
|
|
37
|
-
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
37
|
+
agentId: string;
|
|
38
38
|
} | undefined>;
|
|
39
39
|
declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
40
40
|
scopes: AgentScopeConfig;
|
|
41
41
|
}) => Promise<{
|
|
42
|
-
id: string;
|
|
43
42
|
name: string;
|
|
43
|
+
description: string | null;
|
|
44
|
+
id: string;
|
|
44
45
|
createdAt: string;
|
|
45
46
|
updatedAt: string;
|
|
46
|
-
description: string | null;
|
|
47
|
-
agentId: string;
|
|
48
|
-
projectId: string;
|
|
49
47
|
tenantId: string;
|
|
48
|
+
projectId: string;
|
|
49
|
+
stopWhen: {
|
|
50
|
+
stepCountIs?: number | undefined;
|
|
51
|
+
} | null;
|
|
52
|
+
prompt: string | null;
|
|
53
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
50
54
|
models: {
|
|
51
55
|
base?: {
|
|
52
56
|
model?: string | undefined;
|
|
@@ -61,11 +65,7 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
61
65
|
providerOptions?: Record<string, any> | undefined;
|
|
62
66
|
} | undefined;
|
|
63
67
|
} | null;
|
|
64
|
-
|
|
65
|
-
stopWhen: {
|
|
66
|
-
stepCountIs?: number | undefined;
|
|
67
|
-
} | null;
|
|
68
|
-
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
68
|
+
agentId: string;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
71
71
|
scopes: AgentScopeConfig;
|
|
@@ -108,14 +108,18 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
|
|
|
108
108
|
};
|
|
109
109
|
}>;
|
|
110
110
|
declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
111
|
-
id: string;
|
|
112
111
|
name: string;
|
|
112
|
+
description: string | null;
|
|
113
|
+
id: string;
|
|
113
114
|
createdAt: string;
|
|
114
115
|
updatedAt: string;
|
|
115
|
-
description: string | null;
|
|
116
|
-
agentId: string;
|
|
117
|
-
projectId: string;
|
|
118
116
|
tenantId: string;
|
|
117
|
+
projectId: string;
|
|
118
|
+
stopWhen: {
|
|
119
|
+
stepCountIs?: number | undefined;
|
|
120
|
+
} | null;
|
|
121
|
+
prompt: string | null;
|
|
122
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
119
123
|
models: {
|
|
120
124
|
base?: {
|
|
121
125
|
model?: string | undefined;
|
|
@@ -130,11 +134,7 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
130
134
|
providerOptions?: Record<string, any> | undefined;
|
|
131
135
|
} | undefined;
|
|
132
136
|
} | null;
|
|
133
|
-
|
|
134
|
-
stopWhen: {
|
|
135
|
-
stepCountIs?: number | undefined;
|
|
136
|
-
} | null;
|
|
137
|
-
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
137
|
+
agentId: string;
|
|
138
138
|
}>;
|
|
139
139
|
declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
140
140
|
scopes: AgentScopeConfig;
|
|
@@ -12,14 +12,14 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
12
12
|
scopes: ProjectScopeConfig;
|
|
13
13
|
toolId: string;
|
|
14
14
|
}) => Promise<{
|
|
15
|
-
id: string;
|
|
16
15
|
name: string;
|
|
16
|
+
description: string | null;
|
|
17
|
+
id: string;
|
|
17
18
|
createdAt: string;
|
|
18
19
|
updatedAt: string;
|
|
19
20
|
headers: Record<string, string> | null;
|
|
20
|
-
description: string | null;
|
|
21
|
-
projectId: string;
|
|
22
21
|
tenantId: string;
|
|
22
|
+
projectId: string;
|
|
23
23
|
config: {
|
|
24
24
|
type: "mcp";
|
|
25
25
|
mcp: ToolMcpConfig;
|
|
@@ -68,14 +68,14 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
68
68
|
};
|
|
69
69
|
}>;
|
|
70
70
|
declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
|
|
71
|
-
id: string;
|
|
72
71
|
name: string;
|
|
72
|
+
description: string | null;
|
|
73
|
+
id: string;
|
|
73
74
|
createdAt: string;
|
|
74
75
|
updatedAt: string;
|
|
75
76
|
headers: Record<string, string> | null;
|
|
76
|
-
description: string | null;
|
|
77
|
-
projectId: string;
|
|
78
77
|
tenantId: string;
|
|
78
|
+
projectId: string;
|
|
79
79
|
config: {
|
|
80
80
|
type: "mcp";
|
|
81
81
|
mcp: ToolMcpConfig;
|
|
@@ -127,10 +127,10 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
127
127
|
createdAt: string;
|
|
128
128
|
updatedAt: string;
|
|
129
129
|
headers: Record<string, string> | null;
|
|
130
|
-
agentId: string;
|
|
131
|
-
projectId: string;
|
|
132
130
|
tenantId: string;
|
|
131
|
+
projectId: string;
|
|
133
132
|
subAgentId: string;
|
|
133
|
+
agentId: string;
|
|
134
134
|
toolId: string;
|
|
135
135
|
toolPolicies: Record<string, {
|
|
136
136
|
needsApproval?: boolean;
|
|
@@ -146,10 +146,10 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
|
|
|
146
146
|
createdAt: string;
|
|
147
147
|
updatedAt: string;
|
|
148
148
|
headers: Record<string, string> | null;
|
|
149
|
-
agentId: string;
|
|
150
|
-
projectId: string;
|
|
151
149
|
tenantId: string;
|
|
150
|
+
projectId: string;
|
|
152
151
|
subAgentId: string;
|
|
152
|
+
agentId: string;
|
|
153
153
|
toolId: string;
|
|
154
154
|
toolPolicies: Record<string, {
|
|
155
155
|
needsApproval?: boolean;
|
|
@@ -174,10 +174,10 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
174
174
|
createdAt: string;
|
|
175
175
|
updatedAt: string;
|
|
176
176
|
headers: Record<string, string> | null;
|
|
177
|
-
agentId: string;
|
|
178
|
-
projectId: string;
|
|
179
177
|
tenantId: string;
|
|
178
|
+
projectId: string;
|
|
180
179
|
subAgentId: string;
|
|
180
|
+
agentId: string;
|
|
181
181
|
toolId: string;
|
|
182
182
|
toolPolicies: Record<string, {
|
|
183
183
|
needsApproval?: boolean;
|
|
@@ -190,14 +190,14 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
190
190
|
declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
191
191
|
data: ToolInsert;
|
|
192
192
|
}) => Promise<{
|
|
193
|
-
id: string;
|
|
194
193
|
name: string;
|
|
194
|
+
description: string | null;
|
|
195
|
+
id: string;
|
|
195
196
|
createdAt: string;
|
|
196
197
|
updatedAt: string;
|
|
197
198
|
headers: Record<string, string> | null;
|
|
198
|
-
description: string | null;
|
|
199
|
-
projectId: string;
|
|
200
199
|
tenantId: string;
|
|
200
|
+
projectId: string;
|
|
201
201
|
config: {
|
|
202
202
|
type: "mcp";
|
|
203
203
|
mcp: ToolMcpConfig;
|
|
@@ -7,28 +7,28 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
7
7
|
scopes: ProjectScopeConfig;
|
|
8
8
|
id: string;
|
|
9
9
|
}) => Promise<{
|
|
10
|
-
id: string;
|
|
11
10
|
name: string | null;
|
|
11
|
+
id: string;
|
|
12
12
|
createdAt: string;
|
|
13
13
|
updatedAt: string;
|
|
14
14
|
expiresAt: string | null;
|
|
15
|
-
agentId: string;
|
|
16
|
-
projectId: string;
|
|
17
15
|
tenantId: string;
|
|
16
|
+
projectId: string;
|
|
17
|
+
agentId: string;
|
|
18
18
|
publicId: string;
|
|
19
19
|
keyHash: string;
|
|
20
20
|
keyPrefix: string;
|
|
21
21
|
lastUsedAt: string | null;
|
|
22
22
|
} | undefined>;
|
|
23
23
|
declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
|
|
24
|
-
id: string;
|
|
25
24
|
name: string | null;
|
|
25
|
+
id: string;
|
|
26
26
|
createdAt: string;
|
|
27
27
|
updatedAt: string;
|
|
28
28
|
expiresAt: string | null;
|
|
29
|
-
agentId: string;
|
|
30
|
-
projectId: string;
|
|
31
29
|
tenantId: string;
|
|
30
|
+
projectId: string;
|
|
31
|
+
agentId: string;
|
|
32
32
|
publicId: string;
|
|
33
33
|
keyHash: string;
|
|
34
34
|
keyPrefix: string;
|
|
@@ -38,14 +38,14 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
38
38
|
scopes: ProjectScopeConfig;
|
|
39
39
|
agentId?: string;
|
|
40
40
|
}) => Promise<{
|
|
41
|
-
id: string;
|
|
42
41
|
name: string | null;
|
|
42
|
+
id: string;
|
|
43
43
|
createdAt: string;
|
|
44
44
|
updatedAt: string;
|
|
45
45
|
expiresAt: string | null;
|
|
46
|
-
agentId: string;
|
|
47
|
-
projectId: string;
|
|
48
46
|
tenantId: string;
|
|
47
|
+
projectId: string;
|
|
48
|
+
agentId: string;
|
|
49
49
|
publicId: string;
|
|
50
50
|
keyHash: string;
|
|
51
51
|
keyPrefix: string;
|
|
@@ -65,14 +65,14 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
65
65
|
};
|
|
66
66
|
}>;
|
|
67
67
|
declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
|
|
68
|
-
id: string;
|
|
69
68
|
name: string | null;
|
|
69
|
+
id: string;
|
|
70
70
|
createdAt: string;
|
|
71
71
|
updatedAt: string;
|
|
72
72
|
expiresAt: string | null;
|
|
73
|
-
agentId: string;
|
|
74
|
-
projectId: string;
|
|
75
73
|
tenantId: string;
|
|
74
|
+
projectId: string;
|
|
75
|
+
agentId: string;
|
|
76
76
|
publicId: string;
|
|
77
77
|
keyHash: string;
|
|
78
78
|
keyPrefix: string;
|