@inkeep/agents-core 0.0.0-dev-20260310195220 → 0.0.0-dev-20260310195924
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 +85 -85
- package/dist/auth/auth-validation-schemas.d.ts +135 -135
- package/dist/auth/auth.d.ts +28 -28
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/client-exports.d.ts +2 -2
- package/dist/constants/otel-attributes.d.ts +22 -0
- package/dist/constants/otel-attributes.js +22 -0
- package/dist/data-access/manage/agents.d.ts +37 -37
- package/dist/data-access/manage/artifactComponents.d.ts +8 -8
- 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 +14 -14
- package/dist/data-access/manage/skills.d.ts +13 -13
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgentRelations.d.ts +20 -20
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgents.d.ts +15 -15
- package/dist/data-access/manage/tools.d.ts +21 -21
- package/dist/data-access/manage/triggers.d.ts +2 -2
- package/dist/data-access/runtime/apiKeys.d.ts +16 -16
- package/dist/data-access/runtime/conversations.d.ts +23 -23
- package/dist/data-access/runtime/messages.d.ts +15 -15
- package/dist/data-access/runtime/tasks.d.ts +6 -6
- package/dist/db/manage/manage-schema.d.ts +361 -361
- package/dist/db/runtime/runtime-schema.d.ts +288 -288
- package/dist/utils/error.d.ts +51 -51
- package/dist/validation/dolt-schemas.d.ts +1 -1
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas.d.ts +1971 -1971
- package/package.json +1 -1
|
@@ -8,14 +8,14 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
8
8
|
scopes: ProjectScopeConfig;
|
|
9
9
|
skillId: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
+
metadata: Record<string, string> | null;
|
|
11
12
|
id: string;
|
|
12
|
-
name: string;
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
|
-
|
|
15
|
+
name: string;
|
|
16
16
|
description: string;
|
|
17
|
-
tenantId: string;
|
|
18
17
|
projectId: string;
|
|
18
|
+
tenantId: string;
|
|
19
19
|
content: string;
|
|
20
20
|
} | null>;
|
|
21
21
|
declare const listSkills: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -41,25 +41,25 @@ declare const listSkills: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
41
41
|
};
|
|
42
42
|
}>;
|
|
43
43
|
declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
|
|
44
|
+
metadata: Record<string, string> | null;
|
|
44
45
|
id: string;
|
|
45
|
-
name: string;
|
|
46
46
|
createdAt: string;
|
|
47
47
|
updatedAt: string;
|
|
48
|
-
|
|
48
|
+
name: string;
|
|
49
49
|
description: string;
|
|
50
|
-
tenantId: string;
|
|
51
50
|
projectId: string;
|
|
51
|
+
tenantId: string;
|
|
52
52
|
content: string;
|
|
53
53
|
}>;
|
|
54
54
|
declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
|
|
55
|
+
metadata: Record<string, string> | null;
|
|
55
56
|
id: string;
|
|
56
|
-
name: string;
|
|
57
57
|
createdAt: string;
|
|
58
58
|
updatedAt: string;
|
|
59
|
-
|
|
59
|
+
name: string;
|
|
60
60
|
description: string;
|
|
61
|
-
tenantId: string;
|
|
62
61
|
projectId: string;
|
|
62
|
+
tenantId: string;
|
|
63
63
|
content: string;
|
|
64
64
|
}>;
|
|
65
65
|
declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -94,13 +94,13 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
|
|
|
94
94
|
id: string;
|
|
95
95
|
createdAt: string;
|
|
96
96
|
updatedAt: string;
|
|
97
|
-
tenantId: string;
|
|
98
|
-
projectId: string;
|
|
99
97
|
agentId: string;
|
|
100
|
-
|
|
101
|
-
|
|
98
|
+
projectId: string;
|
|
99
|
+
tenantId: string;
|
|
102
100
|
subAgentId: string;
|
|
103
101
|
skillId: string;
|
|
102
|
+
index: number;
|
|
103
|
+
alwaysLoaded: boolean;
|
|
104
104
|
}>;
|
|
105
105
|
declare const deleteSubAgentSkill: (db: AgentsManageDatabaseClient) => (params: {
|
|
106
106
|
scopes: AgentScopeConfig;
|
|
@@ -9,15 +9,15 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
|
|
|
9
9
|
scopes: SubAgentScopeConfig;
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
+
headers: Record<string, string> | null;
|
|
12
13
|
id: string;
|
|
13
14
|
createdAt: string;
|
|
14
15
|
updatedAt: string;
|
|
15
|
-
tenantId: string;
|
|
16
|
-
projectId: string;
|
|
17
16
|
agentId: string;
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
projectId: string;
|
|
18
|
+
tenantId: string;
|
|
20
19
|
subAgentId: string;
|
|
20
|
+
externalAgentId: string;
|
|
21
21
|
} | undefined>;
|
|
22
22
|
declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
23
23
|
scopes: SubAgentScopeConfig;
|
|
@@ -44,28 +44,28 @@ declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClien
|
|
|
44
44
|
declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
|
+
headers: Record<string, string> | null;
|
|
47
48
|
id: string;
|
|
48
49
|
createdAt: string;
|
|
49
50
|
updatedAt: string;
|
|
50
|
-
tenantId: string;
|
|
51
|
-
projectId: string;
|
|
52
51
|
agentId: string;
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
projectId: string;
|
|
53
|
+
tenantId: string;
|
|
55
54
|
subAgentId: string;
|
|
55
|
+
externalAgentId: string;
|
|
56
56
|
}[]>;
|
|
57
57
|
declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
|
+
headers: Record<string, string> | null;
|
|
60
61
|
id: string;
|
|
61
62
|
createdAt: string;
|
|
62
63
|
updatedAt: string;
|
|
63
|
-
tenantId: string;
|
|
64
|
-
projectId: string;
|
|
65
64
|
agentId: string;
|
|
66
|
-
|
|
67
|
-
|
|
65
|
+
projectId: string;
|
|
66
|
+
tenantId: string;
|
|
68
67
|
subAgentId: string;
|
|
68
|
+
externalAgentId: string;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
71
71
|
scopes: AgentScopeConfig;
|
|
@@ -180,15 +180,15 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
180
180
|
headers?: Record<string, string> | null;
|
|
181
181
|
};
|
|
182
182
|
}) => Promise<{
|
|
183
|
+
headers: Record<string, string> | null;
|
|
183
184
|
id: string;
|
|
184
185
|
createdAt: string;
|
|
185
186
|
updatedAt: string;
|
|
186
|
-
tenantId: string;
|
|
187
|
-
projectId: string;
|
|
188
187
|
agentId: string;
|
|
189
|
-
|
|
190
|
-
|
|
188
|
+
projectId: string;
|
|
189
|
+
tenantId: string;
|
|
191
190
|
subAgentId: string;
|
|
191
|
+
externalAgentId: string;
|
|
192
192
|
}>;
|
|
193
193
|
/**
|
|
194
194
|
* Check if sub-agent external agent relation exists by params
|
|
@@ -197,15 +197,15 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
|
|
|
197
197
|
scopes: SubAgentScopeConfig;
|
|
198
198
|
externalAgentId: string;
|
|
199
199
|
}) => Promise<{
|
|
200
|
+
headers: Record<string, string> | null;
|
|
200
201
|
id: string;
|
|
201
202
|
createdAt: string;
|
|
202
203
|
updatedAt: string;
|
|
203
|
-
tenantId: string;
|
|
204
|
-
projectId: string;
|
|
205
204
|
agentId: string;
|
|
206
|
-
|
|
207
|
-
|
|
205
|
+
projectId: string;
|
|
206
|
+
tenantId: string;
|
|
208
207
|
subAgentId: string;
|
|
208
|
+
externalAgentId: string;
|
|
209
209
|
} | undefined>;
|
|
210
210
|
/**
|
|
211
211
|
* Upsert sub-agent external agent relation (create if it doesn't exist, update if it does)
|
|
@@ -218,15 +218,15 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
218
218
|
headers?: Record<string, string> | null;
|
|
219
219
|
};
|
|
220
220
|
}) => Promise<{
|
|
221
|
+
headers: Record<string, string> | null;
|
|
221
222
|
id: string;
|
|
222
223
|
createdAt: string;
|
|
223
224
|
updatedAt: string;
|
|
224
|
-
tenantId: string;
|
|
225
|
-
projectId: string;
|
|
226
225
|
agentId: string;
|
|
227
|
-
|
|
228
|
-
|
|
226
|
+
projectId: string;
|
|
227
|
+
tenantId: string;
|
|
229
228
|
subAgentId: string;
|
|
229
|
+
externalAgentId: string;
|
|
230
230
|
}>;
|
|
231
231
|
declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
232
232
|
scopes: SubAgentScopeConfig;
|
|
@@ -12,9 +12,9 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
12
12
|
id: string;
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
|
-
tenantId: string;
|
|
16
|
-
projectId: string;
|
|
17
15
|
agentId: string;
|
|
16
|
+
projectId: string;
|
|
17
|
+
tenantId: string;
|
|
18
18
|
sourceSubAgentId: string;
|
|
19
19
|
targetSubAgentId: string | null;
|
|
20
20
|
relationType: string | null;
|
|
@@ -47,9 +47,9 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
47
47
|
id: string;
|
|
48
48
|
createdAt: string;
|
|
49
49
|
updatedAt: string;
|
|
50
|
-
tenantId: string;
|
|
51
|
-
projectId: string;
|
|
52
50
|
agentId: string;
|
|
51
|
+
projectId: string;
|
|
52
|
+
tenantId: string;
|
|
53
53
|
sourceSubAgentId: string;
|
|
54
54
|
targetSubAgentId: string | null;
|
|
55
55
|
relationType: string | null;
|
|
@@ -60,9 +60,9 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
|
|
|
60
60
|
id: string;
|
|
61
61
|
createdAt: string;
|
|
62
62
|
updatedAt: string;
|
|
63
|
-
tenantId: string;
|
|
64
|
-
projectId: string;
|
|
65
63
|
agentId: string;
|
|
64
|
+
projectId: string;
|
|
65
|
+
tenantId: string;
|
|
66
66
|
sourceSubAgentId: string;
|
|
67
67
|
targetSubAgentId: string | null;
|
|
68
68
|
relationType: string | null;
|
|
@@ -129,9 +129,9 @@ declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
|
|
|
129
129
|
id: string;
|
|
130
130
|
createdAt: string;
|
|
131
131
|
updatedAt: string;
|
|
132
|
-
tenantId: string;
|
|
133
|
-
projectId: string;
|
|
134
132
|
agentId: string;
|
|
133
|
+
projectId: string;
|
|
134
|
+
tenantId: string;
|
|
135
135
|
sourceSubAgentId: string;
|
|
136
136
|
targetSubAgentId: string | null;
|
|
137
137
|
relationType: string | null;
|
|
@@ -148,9 +148,9 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
148
148
|
id: string;
|
|
149
149
|
createdAt: string;
|
|
150
150
|
updatedAt: string;
|
|
151
|
-
tenantId: string;
|
|
152
|
-
projectId: string;
|
|
153
151
|
agentId: string;
|
|
152
|
+
projectId: string;
|
|
153
|
+
tenantId: string;
|
|
154
154
|
sourceSubAgentId: string;
|
|
155
155
|
targetSubAgentId: string | null;
|
|
156
156
|
relationType: string | null;
|
|
@@ -162,9 +162,9 @@ declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
|
|
|
162
162
|
id: string;
|
|
163
163
|
createdAt: string;
|
|
164
164
|
updatedAt: string;
|
|
165
|
-
tenantId: string;
|
|
166
|
-
projectId: string;
|
|
167
165
|
agentId: string;
|
|
166
|
+
projectId: string;
|
|
167
|
+
tenantId: string;
|
|
168
168
|
sourceSubAgentId: string;
|
|
169
169
|
targetSubAgentId: string | null;
|
|
170
170
|
relationType: string | null;
|
|
@@ -204,18 +204,18 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
204
204
|
}> | null;
|
|
205
205
|
};
|
|
206
206
|
}) => Promise<{
|
|
207
|
+
headers: Record<string, string> | null;
|
|
207
208
|
id: string;
|
|
208
209
|
createdAt: string;
|
|
209
210
|
updatedAt: string;
|
|
210
|
-
tenantId: string;
|
|
211
|
-
projectId: string;
|
|
212
211
|
agentId: string;
|
|
212
|
+
projectId: string;
|
|
213
|
+
tenantId: string;
|
|
213
214
|
toolId: string;
|
|
214
|
-
|
|
215
|
+
subAgentId: string;
|
|
215
216
|
toolPolicies: Record<string, {
|
|
216
217
|
needsApproval?: boolean;
|
|
217
218
|
}> | null;
|
|
218
|
-
subAgentId: string;
|
|
219
219
|
selectedTools: string[] | null;
|
|
220
220
|
}>;
|
|
221
221
|
declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -248,18 +248,18 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
|
|
|
248
248
|
scopes: SubAgentScopeConfig;
|
|
249
249
|
relationId: string;
|
|
250
250
|
}) => Promise<{
|
|
251
|
+
headers: Record<string, string> | null;
|
|
251
252
|
id: string;
|
|
252
253
|
createdAt: string;
|
|
253
254
|
updatedAt: string;
|
|
254
|
-
tenantId: string;
|
|
255
|
-
projectId: string;
|
|
256
255
|
agentId: string;
|
|
256
|
+
projectId: string;
|
|
257
|
+
tenantId: string;
|
|
257
258
|
toolId: string;
|
|
258
|
-
|
|
259
|
+
subAgentId: string;
|
|
259
260
|
toolPolicies: Record<string, {
|
|
260
261
|
needsApproval?: boolean;
|
|
261
262
|
}> | null;
|
|
262
|
-
subAgentId: string;
|
|
263
263
|
selectedTools: string[] | null;
|
|
264
264
|
} | undefined>;
|
|
265
265
|
declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -9,13 +9,13 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
9
9
|
scopes: SubAgentScopeConfig;
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
+
headers: Record<string, string> | null;
|
|
12
13
|
id: string;
|
|
13
14
|
createdAt: string;
|
|
14
15
|
updatedAt: string;
|
|
15
|
-
tenantId: string;
|
|
16
|
-
projectId: string;
|
|
17
16
|
agentId: string;
|
|
18
|
-
|
|
17
|
+
projectId: string;
|
|
18
|
+
tenantId: string;
|
|
19
19
|
subAgentId: string;
|
|
20
20
|
targetAgentId: string;
|
|
21
21
|
} | undefined>;
|
|
@@ -44,26 +44,26 @@ declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =
|
|
|
44
44
|
declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
|
+
headers: Record<string, string> | null;
|
|
47
48
|
id: string;
|
|
48
49
|
createdAt: string;
|
|
49
50
|
updatedAt: string;
|
|
50
|
-
tenantId: string;
|
|
51
|
-
projectId: string;
|
|
52
51
|
agentId: string;
|
|
53
|
-
|
|
52
|
+
projectId: string;
|
|
53
|
+
tenantId: string;
|
|
54
54
|
subAgentId: string;
|
|
55
55
|
targetAgentId: string;
|
|
56
56
|
}[]>;
|
|
57
57
|
declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
|
+
headers: Record<string, string> | null;
|
|
60
61
|
id: string;
|
|
61
62
|
createdAt: string;
|
|
62
63
|
updatedAt: string;
|
|
63
|
-
tenantId: string;
|
|
64
|
-
projectId: string;
|
|
65
64
|
agentId: string;
|
|
66
|
-
|
|
65
|
+
projectId: string;
|
|
66
|
+
tenantId: string;
|
|
67
67
|
subAgentId: string;
|
|
68
68
|
targetAgentId: string;
|
|
69
69
|
}[]>;
|
|
@@ -210,13 +210,13 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
210
210
|
headers?: Record<string, string> | null;
|
|
211
211
|
};
|
|
212
212
|
}) => Promise<{
|
|
213
|
+
headers: Record<string, string> | null;
|
|
213
214
|
id: string;
|
|
214
215
|
createdAt: string;
|
|
215
216
|
updatedAt: string;
|
|
216
|
-
tenantId: string;
|
|
217
|
-
projectId: string;
|
|
218
217
|
agentId: string;
|
|
219
|
-
|
|
218
|
+
projectId: string;
|
|
219
|
+
tenantId: string;
|
|
220
220
|
subAgentId: string;
|
|
221
221
|
targetAgentId: string;
|
|
222
222
|
}>;
|
|
@@ -227,13 +227,13 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
|
|
|
227
227
|
scopes: SubAgentScopeConfig;
|
|
228
228
|
targetAgentId: string;
|
|
229
229
|
}) => Promise<{
|
|
230
|
+
headers: Record<string, string> | null;
|
|
230
231
|
id: string;
|
|
231
232
|
createdAt: string;
|
|
232
233
|
updatedAt: string;
|
|
233
|
-
tenantId: string;
|
|
234
|
-
projectId: string;
|
|
235
234
|
agentId: string;
|
|
236
|
-
|
|
235
|
+
projectId: string;
|
|
236
|
+
tenantId: string;
|
|
237
237
|
subAgentId: string;
|
|
238
238
|
targetAgentId: string;
|
|
239
239
|
} | undefined>;
|
|
@@ -248,13 +248,13 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
248
248
|
headers?: Record<string, string> | null;
|
|
249
249
|
};
|
|
250
250
|
}) => Promise<{
|
|
251
|
+
headers: Record<string, string> | null;
|
|
251
252
|
id: string;
|
|
252
253
|
createdAt: string;
|
|
253
254
|
updatedAt: string;
|
|
254
|
-
tenantId: string;
|
|
255
|
-
projectId: string;
|
|
256
255
|
agentId: string;
|
|
257
|
-
|
|
256
|
+
projectId: string;
|
|
257
|
+
tenantId: string;
|
|
258
258
|
subAgentId: string;
|
|
259
259
|
targetAgentId: string;
|
|
260
260
|
}>;
|
|
@@ -10,15 +10,13 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
10
10
|
subAgentId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
|
-
name: string;
|
|
14
13
|
createdAt: string;
|
|
15
14
|
updatedAt: string;
|
|
15
|
+
name: string;
|
|
16
16
|
description: string | null;
|
|
17
|
-
tenantId: string;
|
|
18
|
-
projectId: string;
|
|
19
17
|
agentId: string;
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
projectId: string;
|
|
19
|
+
tenantId: string;
|
|
22
20
|
models: {
|
|
23
21
|
base?: {
|
|
24
22
|
model?: string | undefined;
|
|
@@ -33,23 +31,23 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
33
31
|
providerOptions?: Record<string, any> | undefined;
|
|
34
32
|
} | undefined;
|
|
35
33
|
} | null;
|
|
34
|
+
prompt: string | null;
|
|
36
35
|
stopWhen: {
|
|
37
36
|
stepCountIs?: number | undefined;
|
|
38
37
|
} | null;
|
|
38
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
39
39
|
} | undefined>;
|
|
40
40
|
declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
41
41
|
scopes: AgentScopeConfig;
|
|
42
42
|
}) => Promise<{
|
|
43
43
|
id: string;
|
|
44
|
-
name: string;
|
|
45
44
|
createdAt: string;
|
|
46
45
|
updatedAt: string;
|
|
46
|
+
name: string;
|
|
47
47
|
description: string | null;
|
|
48
|
-
tenantId: string;
|
|
49
|
-
projectId: string;
|
|
50
48
|
agentId: string;
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
projectId: string;
|
|
50
|
+
tenantId: string;
|
|
53
51
|
models: {
|
|
54
52
|
base?: {
|
|
55
53
|
model?: string | undefined;
|
|
@@ -64,9 +62,11 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
64
62
|
providerOptions?: Record<string, any> | undefined;
|
|
65
63
|
} | undefined;
|
|
66
64
|
} | null;
|
|
65
|
+
prompt: string | null;
|
|
67
66
|
stopWhen: {
|
|
68
67
|
stepCountIs?: number | undefined;
|
|
69
68
|
} | null;
|
|
69
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
70
70
|
}[]>;
|
|
71
71
|
declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
72
72
|
scopes: AgentScopeConfig;
|
|
@@ -110,15 +110,13 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
|
|
|
110
110
|
}>;
|
|
111
111
|
declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
112
112
|
id: string;
|
|
113
|
-
name: string;
|
|
114
113
|
createdAt: string;
|
|
115
114
|
updatedAt: string;
|
|
115
|
+
name: string;
|
|
116
116
|
description: string | null;
|
|
117
|
-
tenantId: string;
|
|
118
|
-
projectId: string;
|
|
119
117
|
agentId: string;
|
|
120
|
-
|
|
121
|
-
|
|
118
|
+
projectId: string;
|
|
119
|
+
tenantId: string;
|
|
122
120
|
models: {
|
|
123
121
|
base?: {
|
|
124
122
|
model?: string | undefined;
|
|
@@ -133,9 +131,11 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
133
131
|
providerOptions?: Record<string, any> | undefined;
|
|
134
132
|
} | undefined;
|
|
135
133
|
} | null;
|
|
134
|
+
prompt: string | null;
|
|
136
135
|
stopWhen: {
|
|
137
136
|
stepCountIs?: number | undefined;
|
|
138
137
|
} | null;
|
|
138
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
139
139
|
}>;
|
|
140
140
|
declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
141
141
|
scopes: AgentScopeConfig;
|
|
@@ -19,14 +19,14 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
19
19
|
scopes: ProjectScopeConfig;
|
|
20
20
|
toolId: string;
|
|
21
21
|
}) => Promise<{
|
|
22
|
+
headers: Record<string, string> | null;
|
|
22
23
|
id: string;
|
|
23
|
-
name: string;
|
|
24
24
|
createdAt: string;
|
|
25
25
|
updatedAt: string;
|
|
26
|
+
name: string;
|
|
26
27
|
description: string | null;
|
|
27
|
-
tenantId: string;
|
|
28
28
|
projectId: string;
|
|
29
|
-
|
|
29
|
+
tenantId: string;
|
|
30
30
|
config: {
|
|
31
31
|
type: "mcp";
|
|
32
32
|
mcp: ToolMcpConfig;
|
|
@@ -77,14 +77,14 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
77
77
|
};
|
|
78
78
|
}>;
|
|
79
79
|
declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
|
|
80
|
+
headers: Record<string, string> | null;
|
|
80
81
|
id: string;
|
|
81
|
-
name: string;
|
|
82
82
|
createdAt: string;
|
|
83
83
|
updatedAt: string;
|
|
84
|
+
name: string;
|
|
84
85
|
description: string | null;
|
|
85
|
-
tenantId: string;
|
|
86
86
|
projectId: string;
|
|
87
|
-
|
|
87
|
+
tenantId: string;
|
|
88
88
|
config: {
|
|
89
89
|
type: "mcp";
|
|
90
90
|
mcp: ToolMcpConfig;
|
|
@@ -134,18 +134,18 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
134
134
|
needsApproval?: boolean;
|
|
135
135
|
}> | null;
|
|
136
136
|
}) => Promise<{
|
|
137
|
+
headers: Record<string, string> | null;
|
|
137
138
|
id: string;
|
|
138
139
|
createdAt: string;
|
|
139
140
|
updatedAt: string;
|
|
140
|
-
tenantId: string;
|
|
141
|
-
projectId: string;
|
|
142
141
|
agentId: string;
|
|
142
|
+
projectId: string;
|
|
143
|
+
tenantId: string;
|
|
143
144
|
toolId: string;
|
|
144
|
-
|
|
145
|
+
subAgentId: string;
|
|
145
146
|
toolPolicies: Record<string, {
|
|
146
147
|
needsApproval?: boolean;
|
|
147
148
|
}> | null;
|
|
148
|
-
subAgentId: string;
|
|
149
149
|
selectedTools: string[] | null;
|
|
150
150
|
}>;
|
|
151
151
|
declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -153,18 +153,18 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
|
|
|
153
153
|
subAgentId: string;
|
|
154
154
|
toolId: string;
|
|
155
155
|
}) => Promise<{
|
|
156
|
+
headers: Record<string, string> | null;
|
|
156
157
|
id: string;
|
|
157
158
|
createdAt: string;
|
|
158
159
|
updatedAt: string;
|
|
159
|
-
tenantId: string;
|
|
160
|
-
projectId: string;
|
|
161
160
|
agentId: string;
|
|
161
|
+
projectId: string;
|
|
162
|
+
tenantId: string;
|
|
162
163
|
toolId: string;
|
|
163
|
-
|
|
164
|
+
subAgentId: string;
|
|
164
165
|
toolPolicies: Record<string, {
|
|
165
166
|
needsApproval?: boolean;
|
|
166
167
|
}> | null;
|
|
167
|
-
subAgentId: string;
|
|
168
168
|
selectedTools: string[] | null;
|
|
169
169
|
}>;
|
|
170
170
|
/**
|
|
@@ -181,18 +181,18 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
181
181
|
}> | null;
|
|
182
182
|
relationId?: string;
|
|
183
183
|
}) => Promise<{
|
|
184
|
+
headers: Record<string, string> | null;
|
|
184
185
|
id: string;
|
|
185
186
|
createdAt: string;
|
|
186
187
|
updatedAt: string;
|
|
187
|
-
tenantId: string;
|
|
188
|
-
projectId: string;
|
|
189
188
|
agentId: string;
|
|
189
|
+
projectId: string;
|
|
190
|
+
tenantId: string;
|
|
190
191
|
toolId: string;
|
|
191
|
-
|
|
192
|
+
subAgentId: string;
|
|
192
193
|
toolPolicies: Record<string, {
|
|
193
194
|
needsApproval?: boolean;
|
|
194
195
|
}> | null;
|
|
195
|
-
subAgentId: string;
|
|
196
196
|
selectedTools: string[] | null;
|
|
197
197
|
}>;
|
|
198
198
|
/**
|
|
@@ -201,14 +201,14 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
201
201
|
declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
202
202
|
data: ToolInsert;
|
|
203
203
|
}) => Promise<{
|
|
204
|
+
headers: Record<string, string> | null;
|
|
204
205
|
id: string;
|
|
205
|
-
name: string;
|
|
206
206
|
createdAt: string;
|
|
207
207
|
updatedAt: string;
|
|
208
|
+
name: string;
|
|
208
209
|
description: string | null;
|
|
209
|
-
tenantId: string;
|
|
210
210
|
projectId: string;
|
|
211
|
-
|
|
211
|
+
tenantId: string;
|
|
212
212
|
config: {
|
|
213
213
|
type: "mcp";
|
|
214
214
|
mcp: ToolMcpConfig;
|
|
@@ -40,13 +40,13 @@ declare const listTriggersPaginated: (db: AgentsManageDatabaseClient) => (params
|
|
|
40
40
|
algorithm: "sha256" | "sha512" | "sha384" | "sha1" | "md5";
|
|
41
41
|
encoding: "hex" | "base64";
|
|
42
42
|
signature: {
|
|
43
|
-
source: "
|
|
43
|
+
source: "body" | "query" | "header";
|
|
44
44
|
key: string;
|
|
45
45
|
prefix?: string | undefined;
|
|
46
46
|
regex?: string | undefined;
|
|
47
47
|
};
|
|
48
48
|
signedComponents: {
|
|
49
|
-
source: "
|
|
49
|
+
source: "body" | "header" | "literal";
|
|
50
50
|
required: boolean;
|
|
51
51
|
key?: string | undefined;
|
|
52
52
|
value?: string | undefined;
|