@inkeep/agents-core 0.45.3 → 0.46.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-validation-schemas.d.ts +17 -17
- package/dist/auth/auth.d.ts +4 -4
- package/dist/auth/authz/permissions.js +1 -0
- package/dist/constants/signoz-queries.d.ts +2 -0
- package/dist/constants/signoz-queries.js +2 -0
- package/dist/data-access/manage/agents.d.ts +32 -32
- 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 +6 -6
- package/dist/data-access/manage/functionTools.d.ts +16 -16
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgentRelations.d.ts +28 -28
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgents.d.ts +24 -24
- package/dist/data-access/manage/tools.d.ts +30 -30
- package/dist/data-access/runtime/apiKeys.d.ts +20 -20
- package/dist/data-access/runtime/conversations.d.ts +24 -24
- package/dist/data-access/runtime/messages.d.ts +21 -21
- package/dist/data-access/runtime/tasks.d.ts +5 -5
- package/dist/db/manage/manage-schema.d.ts +378 -378
- package/dist/db/runtime/runtime-schema.d.ts +232 -232
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas.d.ts +559 -559
- package/package.json +1 -1
|
@@ -8,15 +8,15 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
|
|
|
8
8
|
scopes: SubAgentScopeConfig;
|
|
9
9
|
relationId: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
+
tenantId: string;
|
|
12
|
+
projectId: string;
|
|
11
13
|
id: string;
|
|
14
|
+
agentId: string;
|
|
12
15
|
createdAt: string;
|
|
13
16
|
updatedAt: string;
|
|
14
|
-
projectId: string;
|
|
15
|
-
tenantId: string;
|
|
16
|
-
agentId: string;
|
|
17
17
|
headers: Record<string, string> | null;
|
|
18
|
-
subAgentId: string;
|
|
19
18
|
externalAgentId: string;
|
|
19
|
+
subAgentId: string;
|
|
20
20
|
} | undefined>;
|
|
21
21
|
declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
22
22
|
scopes: SubAgentScopeConfig;
|
|
@@ -43,28 +43,28 @@ declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClien
|
|
|
43
43
|
declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
44
44
|
scopes: SubAgentScopeConfig;
|
|
45
45
|
}) => Promise<{
|
|
46
|
+
tenantId: string;
|
|
47
|
+
projectId: string;
|
|
46
48
|
id: string;
|
|
49
|
+
agentId: string;
|
|
47
50
|
createdAt: string;
|
|
48
51
|
updatedAt: string;
|
|
49
|
-
projectId: string;
|
|
50
|
-
tenantId: string;
|
|
51
|
-
agentId: string;
|
|
52
52
|
headers: Record<string, string> | null;
|
|
53
|
-
subAgentId: string;
|
|
54
53
|
externalAgentId: string;
|
|
54
|
+
subAgentId: string;
|
|
55
55
|
}[]>;
|
|
56
56
|
declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
57
57
|
scopes: AgentScopeConfig;
|
|
58
58
|
}) => Promise<{
|
|
59
|
+
tenantId: string;
|
|
60
|
+
projectId: string;
|
|
59
61
|
id: string;
|
|
62
|
+
agentId: string;
|
|
60
63
|
createdAt: string;
|
|
61
64
|
updatedAt: string;
|
|
62
|
-
projectId: string;
|
|
63
|
-
tenantId: string;
|
|
64
|
-
agentId: string;
|
|
65
65
|
headers: Record<string, string> | null;
|
|
66
|
-
subAgentId: string;
|
|
67
66
|
externalAgentId: string;
|
|
67
|
+
subAgentId: string;
|
|
68
68
|
}[]>;
|
|
69
69
|
declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
70
70
|
scopes: AgentScopeConfig;
|
|
@@ -179,15 +179,15 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
179
179
|
headers?: Record<string, string> | null;
|
|
180
180
|
};
|
|
181
181
|
}) => Promise<{
|
|
182
|
+
tenantId: string;
|
|
183
|
+
projectId: string;
|
|
182
184
|
id: string;
|
|
185
|
+
agentId: string;
|
|
183
186
|
createdAt: string;
|
|
184
187
|
updatedAt: string;
|
|
185
|
-
projectId: string;
|
|
186
|
-
tenantId: string;
|
|
187
|
-
agentId: string;
|
|
188
188
|
headers: Record<string, string> | null;
|
|
189
|
-
subAgentId: string;
|
|
190
189
|
externalAgentId: string;
|
|
190
|
+
subAgentId: string;
|
|
191
191
|
}>;
|
|
192
192
|
/**
|
|
193
193
|
* Check if sub-agent external agent relation exists by params
|
|
@@ -196,15 +196,15 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
|
|
|
196
196
|
scopes: SubAgentScopeConfig;
|
|
197
197
|
externalAgentId: string;
|
|
198
198
|
}) => Promise<{
|
|
199
|
+
tenantId: string;
|
|
200
|
+
projectId: string;
|
|
199
201
|
id: string;
|
|
202
|
+
agentId: string;
|
|
200
203
|
createdAt: string;
|
|
201
204
|
updatedAt: string;
|
|
202
|
-
projectId: string;
|
|
203
|
-
tenantId: string;
|
|
204
|
-
agentId: string;
|
|
205
205
|
headers: Record<string, string> | null;
|
|
206
|
-
subAgentId: string;
|
|
207
206
|
externalAgentId: string;
|
|
207
|
+
subAgentId: string;
|
|
208
208
|
} | undefined>;
|
|
209
209
|
/**
|
|
210
210
|
* Upsert sub-agent external agent relation (create if it doesn't exist, update if it does)
|
|
@@ -217,15 +217,15 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
217
217
|
headers?: Record<string, string> | null;
|
|
218
218
|
};
|
|
219
219
|
}) => Promise<{
|
|
220
|
+
tenantId: string;
|
|
221
|
+
projectId: string;
|
|
220
222
|
id: string;
|
|
223
|
+
agentId: string;
|
|
221
224
|
createdAt: string;
|
|
222
225
|
updatedAt: string;
|
|
223
|
-
projectId: string;
|
|
224
|
-
tenantId: string;
|
|
225
|
-
agentId: string;
|
|
226
226
|
headers: Record<string, string> | null;
|
|
227
|
-
subAgentId: string;
|
|
228
227
|
externalAgentId: string;
|
|
228
|
+
subAgentId: string;
|
|
229
229
|
}>;
|
|
230
230
|
declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
231
231
|
scopes: SubAgentScopeConfig;
|
|
@@ -8,12 +8,12 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
8
8
|
scopes: AgentScopeConfig;
|
|
9
9
|
relationId: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
+
tenantId: string;
|
|
12
|
+
projectId: string;
|
|
11
13
|
id: string;
|
|
14
|
+
agentId: string;
|
|
12
15
|
createdAt: string;
|
|
13
16
|
updatedAt: string;
|
|
14
|
-
projectId: string;
|
|
15
|
-
tenantId: string;
|
|
16
|
-
agentId: string;
|
|
17
17
|
sourceSubAgentId: string;
|
|
18
18
|
targetSubAgentId: string | null;
|
|
19
19
|
relationType: string | null;
|
|
@@ -43,12 +43,12 @@ declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
43
43
|
declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
44
44
|
scopes: SubAgentScopeConfig;
|
|
45
45
|
}) => Promise<{
|
|
46
|
+
tenantId: string;
|
|
47
|
+
projectId: string;
|
|
46
48
|
id: string;
|
|
49
|
+
agentId: string;
|
|
47
50
|
createdAt: string;
|
|
48
51
|
updatedAt: string;
|
|
49
|
-
projectId: string;
|
|
50
|
-
tenantId: string;
|
|
51
|
-
agentId: string;
|
|
52
52
|
sourceSubAgentId: string;
|
|
53
53
|
targetSubAgentId: string | null;
|
|
54
54
|
relationType: string | null;
|
|
@@ -56,12 +56,12 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
56
56
|
declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
57
57
|
scopes: AgentScopeConfig;
|
|
58
58
|
}) => Promise<{
|
|
59
|
+
tenantId: string;
|
|
60
|
+
projectId: string;
|
|
59
61
|
id: string;
|
|
62
|
+
agentId: string;
|
|
60
63
|
createdAt: string;
|
|
61
64
|
updatedAt: string;
|
|
62
|
-
projectId: string;
|
|
63
|
-
tenantId: string;
|
|
64
|
-
agentId: string;
|
|
65
65
|
sourceSubAgentId: string;
|
|
66
66
|
targetSubAgentId: string | null;
|
|
67
67
|
relationType: string | null;
|
|
@@ -125,12 +125,12 @@ declare const getRelatedAgentsForAgent: (db: AgentsManageDatabaseClient) => (par
|
|
|
125
125
|
}[];
|
|
126
126
|
}>;
|
|
127
127
|
declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
128
|
+
tenantId: string;
|
|
129
|
+
projectId: string;
|
|
128
130
|
id: string;
|
|
131
|
+
agentId: string;
|
|
129
132
|
createdAt: string;
|
|
130
133
|
updatedAt: string;
|
|
131
|
-
projectId: string;
|
|
132
|
-
tenantId: string;
|
|
133
|
-
agentId: string;
|
|
134
134
|
sourceSubAgentId: string;
|
|
135
135
|
targetSubAgentId: string | null;
|
|
136
136
|
relationType: string | null;
|
|
@@ -144,12 +144,12 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
144
144
|
targetSubAgentId?: string;
|
|
145
145
|
relationType: string;
|
|
146
146
|
}) => Promise<{
|
|
147
|
+
tenantId: string;
|
|
148
|
+
projectId: string;
|
|
147
149
|
id: string;
|
|
150
|
+
agentId: string;
|
|
148
151
|
createdAt: string;
|
|
149
152
|
updatedAt: string;
|
|
150
|
-
projectId: string;
|
|
151
|
-
tenantId: string;
|
|
152
|
-
agentId: string;
|
|
153
153
|
sourceSubAgentId: string;
|
|
154
154
|
targetSubAgentId: string | null;
|
|
155
155
|
relationType: string | null;
|
|
@@ -158,12 +158,12 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
158
158
|
* Upsert agent relation (create if it doesn't exist, no-op if it does)
|
|
159
159
|
*/
|
|
160
160
|
declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
161
|
+
tenantId: string;
|
|
162
|
+
projectId: string;
|
|
161
163
|
id: string;
|
|
164
|
+
agentId: string;
|
|
162
165
|
createdAt: string;
|
|
163
166
|
updatedAt: string;
|
|
164
|
-
projectId: string;
|
|
165
|
-
tenantId: string;
|
|
166
|
-
agentId: string;
|
|
167
167
|
sourceSubAgentId: string;
|
|
168
168
|
targetSubAgentId: string | null;
|
|
169
169
|
relationType: string | null;
|
|
@@ -203,18 +203,18 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
203
203
|
}> | null;
|
|
204
204
|
};
|
|
205
205
|
}) => Promise<{
|
|
206
|
+
tenantId: string;
|
|
207
|
+
projectId: string;
|
|
206
208
|
id: string;
|
|
209
|
+
agentId: string;
|
|
207
210
|
createdAt: string;
|
|
208
211
|
updatedAt: string;
|
|
209
|
-
projectId: string;
|
|
210
|
-
tenantId: string;
|
|
211
|
-
agentId: string;
|
|
212
|
-
headers: Record<string, string> | null;
|
|
213
212
|
toolId: string;
|
|
214
|
-
|
|
213
|
+
headers: Record<string, string> | null;
|
|
215
214
|
toolPolicies: Record<string, {
|
|
216
215
|
needsApproval?: boolean;
|
|
217
216
|
}> | null;
|
|
217
|
+
subAgentId: string;
|
|
218
218
|
selectedTools: string[] | null;
|
|
219
219
|
}>;
|
|
220
220
|
declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -247,18 +247,18 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
|
|
|
247
247
|
scopes: SubAgentScopeConfig;
|
|
248
248
|
relationId: string;
|
|
249
249
|
}) => Promise<{
|
|
250
|
+
tenantId: string;
|
|
251
|
+
projectId: string;
|
|
250
252
|
id: string;
|
|
253
|
+
agentId: string;
|
|
251
254
|
createdAt: string;
|
|
252
255
|
updatedAt: string;
|
|
253
|
-
projectId: string;
|
|
254
|
-
tenantId: string;
|
|
255
|
-
agentId: string;
|
|
256
|
-
headers: Record<string, string> | null;
|
|
257
256
|
toolId: string;
|
|
258
|
-
|
|
257
|
+
headers: Record<string, string> | null;
|
|
259
258
|
toolPolicies: Record<string, {
|
|
260
259
|
needsApproval?: boolean;
|
|
261
260
|
}> | null;
|
|
261
|
+
subAgentId: string;
|
|
262
262
|
selectedTools: string[] | null;
|
|
263
263
|
} | undefined>;
|
|
264
264
|
declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -8,12 +8,12 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
8
8
|
scopes: SubAgentScopeConfig;
|
|
9
9
|
relationId: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
+
tenantId: string;
|
|
12
|
+
projectId: string;
|
|
11
13
|
id: string;
|
|
14
|
+
agentId: string;
|
|
12
15
|
createdAt: string;
|
|
13
16
|
updatedAt: string;
|
|
14
|
-
projectId: string;
|
|
15
|
-
tenantId: string;
|
|
16
|
-
agentId: string;
|
|
17
17
|
headers: Record<string, string> | null;
|
|
18
18
|
subAgentId: string;
|
|
19
19
|
targetAgentId: string;
|
|
@@ -43,12 +43,12 @@ declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =
|
|
|
43
43
|
declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
44
44
|
scopes: SubAgentScopeConfig;
|
|
45
45
|
}) => Promise<{
|
|
46
|
+
tenantId: string;
|
|
47
|
+
projectId: string;
|
|
46
48
|
id: string;
|
|
49
|
+
agentId: string;
|
|
47
50
|
createdAt: string;
|
|
48
51
|
updatedAt: string;
|
|
49
|
-
projectId: string;
|
|
50
|
-
tenantId: string;
|
|
51
|
-
agentId: string;
|
|
52
52
|
headers: Record<string, string> | null;
|
|
53
53
|
subAgentId: string;
|
|
54
54
|
targetAgentId: string;
|
|
@@ -56,12 +56,12 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
|
|
|
56
56
|
declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
57
57
|
scopes: AgentScopeConfig;
|
|
58
58
|
}) => Promise<{
|
|
59
|
+
tenantId: string;
|
|
60
|
+
projectId: string;
|
|
59
61
|
id: string;
|
|
62
|
+
agentId: string;
|
|
60
63
|
createdAt: string;
|
|
61
64
|
updatedAt: string;
|
|
62
|
-
projectId: string;
|
|
63
|
-
tenantId: string;
|
|
64
|
-
agentId: string;
|
|
65
65
|
headers: Record<string, string> | null;
|
|
66
66
|
subAgentId: string;
|
|
67
67
|
targetAgentId: string;
|
|
@@ -209,12 +209,12 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
209
209
|
headers?: Record<string, string> | null;
|
|
210
210
|
};
|
|
211
211
|
}) => Promise<{
|
|
212
|
+
tenantId: string;
|
|
213
|
+
projectId: string;
|
|
212
214
|
id: string;
|
|
215
|
+
agentId: string;
|
|
213
216
|
createdAt: string;
|
|
214
217
|
updatedAt: string;
|
|
215
|
-
projectId: string;
|
|
216
|
-
tenantId: string;
|
|
217
|
-
agentId: string;
|
|
218
218
|
headers: Record<string, string> | null;
|
|
219
219
|
subAgentId: string;
|
|
220
220
|
targetAgentId: string;
|
|
@@ -226,12 +226,12 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
|
|
|
226
226
|
scopes: SubAgentScopeConfig;
|
|
227
227
|
targetAgentId: string;
|
|
228
228
|
}) => Promise<{
|
|
229
|
+
tenantId: string;
|
|
230
|
+
projectId: string;
|
|
229
231
|
id: string;
|
|
232
|
+
agentId: string;
|
|
230
233
|
createdAt: string;
|
|
231
234
|
updatedAt: string;
|
|
232
|
-
projectId: string;
|
|
233
|
-
tenantId: string;
|
|
234
|
-
agentId: string;
|
|
235
235
|
headers: Record<string, string> | null;
|
|
236
236
|
subAgentId: string;
|
|
237
237
|
targetAgentId: string;
|
|
@@ -247,12 +247,12 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
247
247
|
headers?: Record<string, string> | null;
|
|
248
248
|
};
|
|
249
249
|
}) => Promise<{
|
|
250
|
+
tenantId: string;
|
|
251
|
+
projectId: string;
|
|
250
252
|
id: string;
|
|
253
|
+
agentId: string;
|
|
251
254
|
createdAt: string;
|
|
252
255
|
updatedAt: string;
|
|
253
|
-
projectId: string;
|
|
254
|
-
tenantId: string;
|
|
255
|
-
agentId: string;
|
|
256
256
|
headers: Record<string, string> | null;
|
|
257
257
|
subAgentId: string;
|
|
258
258
|
targetAgentId: string;
|
|
@@ -8,19 +8,15 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
8
8
|
scopes: AgentScopeConfig;
|
|
9
9
|
subAgentId: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
+
tenantId: string;
|
|
12
|
+
projectId: string;
|
|
11
13
|
id: string;
|
|
12
14
|
name: string;
|
|
13
15
|
description: string | null;
|
|
16
|
+
prompt: string | null;
|
|
17
|
+
agentId: string;
|
|
14
18
|
createdAt: string;
|
|
15
19
|
updatedAt: string;
|
|
16
|
-
projectId: string;
|
|
17
|
-
tenantId: string;
|
|
18
|
-
agentId: string;
|
|
19
|
-
stopWhen: {
|
|
20
|
-
stepCountIs?: number | undefined;
|
|
21
|
-
} | null;
|
|
22
|
-
prompt: string | null;
|
|
23
|
-
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
24
20
|
models: {
|
|
25
21
|
base?: {
|
|
26
22
|
model?: string | undefined;
|
|
@@ -35,23 +31,23 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
35
31
|
providerOptions?: Record<string, any> | undefined;
|
|
36
32
|
} | undefined;
|
|
37
33
|
} | null;
|
|
34
|
+
stopWhen: {
|
|
35
|
+
stepCountIs?: number | undefined;
|
|
36
|
+
} | null;
|
|
37
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
38
38
|
} | undefined>;
|
|
39
39
|
declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
40
40
|
scopes: AgentScopeConfig;
|
|
41
41
|
}) => Promise<{
|
|
42
|
+
tenantId: string;
|
|
43
|
+
projectId: string;
|
|
42
44
|
id: string;
|
|
43
45
|
name: string;
|
|
44
46
|
description: string | null;
|
|
47
|
+
prompt: string | null;
|
|
48
|
+
agentId: string;
|
|
45
49
|
createdAt: string;
|
|
46
50
|
updatedAt: string;
|
|
47
|
-
projectId: string;
|
|
48
|
-
tenantId: string;
|
|
49
|
-
agentId: string;
|
|
50
|
-
stopWhen: {
|
|
51
|
-
stepCountIs?: number | undefined;
|
|
52
|
-
} | null;
|
|
53
|
-
prompt: string | null;
|
|
54
|
-
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
55
51
|
models: {
|
|
56
52
|
base?: {
|
|
57
53
|
model?: string | undefined;
|
|
@@ -66,6 +62,10 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
66
62
|
providerOptions?: Record<string, any> | undefined;
|
|
67
63
|
} | undefined;
|
|
68
64
|
} | null;
|
|
65
|
+
stopWhen: {
|
|
66
|
+
stepCountIs?: number | undefined;
|
|
67
|
+
} | null;
|
|
68
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
71
71
|
scopes: AgentScopeConfig;
|
|
@@ -108,19 +108,15 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
|
|
|
108
108
|
};
|
|
109
109
|
}>;
|
|
110
110
|
declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
111
|
+
tenantId: string;
|
|
112
|
+
projectId: string;
|
|
111
113
|
id: string;
|
|
112
114
|
name: string;
|
|
113
115
|
description: string | null;
|
|
116
|
+
prompt: string | null;
|
|
117
|
+
agentId: string;
|
|
114
118
|
createdAt: string;
|
|
115
119
|
updatedAt: string;
|
|
116
|
-
projectId: string;
|
|
117
|
-
tenantId: string;
|
|
118
|
-
agentId: string;
|
|
119
|
-
stopWhen: {
|
|
120
|
-
stepCountIs?: number | undefined;
|
|
121
|
-
} | null;
|
|
122
|
-
prompt: string | null;
|
|
123
|
-
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
124
120
|
models: {
|
|
125
121
|
base?: {
|
|
126
122
|
model?: string | undefined;
|
|
@@ -135,6 +131,10 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
135
131
|
providerOptions?: Record<string, any> | undefined;
|
|
136
132
|
} | undefined;
|
|
137
133
|
} | null;
|
|
134
|
+
stopWhen: {
|
|
135
|
+
stepCountIs?: number | undefined;
|
|
136
|
+
} | null;
|
|
137
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
138
138
|
}>;
|
|
139
139
|
declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
140
140
|
scopes: AgentScopeConfig;
|
|
@@ -18,19 +18,19 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
18
18
|
scopes: ProjectScopeConfig;
|
|
19
19
|
toolId: string;
|
|
20
20
|
}) => Promise<{
|
|
21
|
+
tenantId: string;
|
|
22
|
+
projectId: string;
|
|
21
23
|
id: string;
|
|
22
24
|
name: string;
|
|
23
25
|
description: string | null;
|
|
24
|
-
createdAt: string;
|
|
25
|
-
updatedAt: string;
|
|
26
|
-
projectId: string;
|
|
27
|
-
tenantId: string;
|
|
28
|
-
headers: Record<string, string> | null;
|
|
29
26
|
config: {
|
|
30
27
|
type: "mcp";
|
|
31
28
|
mcp: ToolMcpConfig;
|
|
32
29
|
};
|
|
33
30
|
credentialReferenceId: string | null;
|
|
31
|
+
createdAt: string;
|
|
32
|
+
updatedAt: string;
|
|
33
|
+
headers: Record<string, string> | null;
|
|
34
34
|
credentialScope: string;
|
|
35
35
|
imageUrl: string | null;
|
|
36
36
|
capabilities: ToolServerCapabilities | null;
|
|
@@ -76,19 +76,19 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
76
76
|
};
|
|
77
77
|
}>;
|
|
78
78
|
declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
|
|
79
|
+
tenantId: string;
|
|
80
|
+
projectId: string;
|
|
79
81
|
id: string;
|
|
80
82
|
name: string;
|
|
81
83
|
description: string | null;
|
|
82
|
-
createdAt: string;
|
|
83
|
-
updatedAt: string;
|
|
84
|
-
projectId: string;
|
|
85
|
-
tenantId: string;
|
|
86
|
-
headers: Record<string, string> | null;
|
|
87
84
|
config: {
|
|
88
85
|
type: "mcp";
|
|
89
86
|
mcp: ToolMcpConfig;
|
|
90
87
|
};
|
|
91
88
|
credentialReferenceId: string | null;
|
|
89
|
+
createdAt: string;
|
|
90
|
+
updatedAt: string;
|
|
91
|
+
headers: Record<string, string> | null;
|
|
92
92
|
credentialScope: string;
|
|
93
93
|
imageUrl: string | null;
|
|
94
94
|
capabilities: ToolServerCapabilities | null;
|
|
@@ -133,18 +133,18 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
133
133
|
needsApproval?: boolean;
|
|
134
134
|
}> | null;
|
|
135
135
|
}) => Promise<{
|
|
136
|
+
tenantId: string;
|
|
137
|
+
projectId: string;
|
|
136
138
|
id: string;
|
|
139
|
+
agentId: string;
|
|
137
140
|
createdAt: string;
|
|
138
141
|
updatedAt: string;
|
|
139
|
-
projectId: string;
|
|
140
|
-
tenantId: string;
|
|
141
|
-
agentId: string;
|
|
142
|
-
headers: Record<string, string> | null;
|
|
143
142
|
toolId: string;
|
|
144
|
-
|
|
143
|
+
headers: Record<string, string> | null;
|
|
145
144
|
toolPolicies: Record<string, {
|
|
146
145
|
needsApproval?: boolean;
|
|
147
146
|
}> | null;
|
|
147
|
+
subAgentId: string;
|
|
148
148
|
selectedTools: string[] | null;
|
|
149
149
|
}>;
|
|
150
150
|
declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -152,18 +152,18 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
|
|
|
152
152
|
subAgentId: string;
|
|
153
153
|
toolId: string;
|
|
154
154
|
}) => Promise<{
|
|
155
|
+
tenantId: string;
|
|
156
|
+
projectId: string;
|
|
155
157
|
id: string;
|
|
158
|
+
agentId: string;
|
|
156
159
|
createdAt: string;
|
|
157
160
|
updatedAt: string;
|
|
158
|
-
projectId: string;
|
|
159
|
-
tenantId: string;
|
|
160
|
-
agentId: string;
|
|
161
|
-
headers: Record<string, string> | null;
|
|
162
161
|
toolId: string;
|
|
163
|
-
|
|
162
|
+
headers: Record<string, string> | null;
|
|
164
163
|
toolPolicies: Record<string, {
|
|
165
164
|
needsApproval?: boolean;
|
|
166
165
|
}> | null;
|
|
166
|
+
subAgentId: string;
|
|
167
167
|
selectedTools: string[] | null;
|
|
168
168
|
}>;
|
|
169
169
|
/**
|
|
@@ -180,18 +180,18 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
180
180
|
}> | null;
|
|
181
181
|
relationId?: string;
|
|
182
182
|
}) => Promise<{
|
|
183
|
+
tenantId: string;
|
|
184
|
+
projectId: string;
|
|
183
185
|
id: string;
|
|
186
|
+
agentId: string;
|
|
184
187
|
createdAt: string;
|
|
185
188
|
updatedAt: string;
|
|
186
|
-
projectId: string;
|
|
187
|
-
tenantId: string;
|
|
188
|
-
agentId: string;
|
|
189
|
-
headers: Record<string, string> | null;
|
|
190
189
|
toolId: string;
|
|
191
|
-
|
|
190
|
+
headers: Record<string, string> | null;
|
|
192
191
|
toolPolicies: Record<string, {
|
|
193
192
|
needsApproval?: boolean;
|
|
194
193
|
}> | null;
|
|
194
|
+
subAgentId: string;
|
|
195
195
|
selectedTools: string[] | null;
|
|
196
196
|
}>;
|
|
197
197
|
/**
|
|
@@ -200,19 +200,19 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
200
200
|
declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
201
201
|
data: ToolInsert;
|
|
202
202
|
}) => Promise<{
|
|
203
|
+
tenantId: string;
|
|
204
|
+
projectId: string;
|
|
203
205
|
id: string;
|
|
204
206
|
name: string;
|
|
205
207
|
description: string | null;
|
|
206
|
-
createdAt: string;
|
|
207
|
-
updatedAt: string;
|
|
208
|
-
projectId: string;
|
|
209
|
-
tenantId: string;
|
|
210
|
-
headers: Record<string, string> | null;
|
|
211
208
|
config: {
|
|
212
209
|
type: "mcp";
|
|
213
210
|
mcp: ToolMcpConfig;
|
|
214
211
|
};
|
|
215
212
|
credentialReferenceId: string | null;
|
|
213
|
+
createdAt: string;
|
|
214
|
+
updatedAt: string;
|
|
215
|
+
headers: Record<string, string> | null;
|
|
216
216
|
credentialScope: string;
|
|
217
217
|
imageUrl: string | null;
|
|
218
218
|
capabilities: ToolServerCapabilities | null;
|
|
@@ -7,49 +7,49 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
7
7
|
scopes: ProjectScopeConfig;
|
|
8
8
|
id: string;
|
|
9
9
|
}) => Promise<{
|
|
10
|
+
tenantId: string;
|
|
11
|
+
projectId: string;
|
|
10
12
|
id: string;
|
|
11
13
|
name: string | null;
|
|
12
|
-
createdAt: string;
|
|
13
|
-
updatedAt: string;
|
|
14
|
-
projectId: string;
|
|
15
|
-
tenantId: string;
|
|
16
14
|
agentId: string;
|
|
17
|
-
expiresAt: string | null;
|
|
18
15
|
publicId: string;
|
|
19
16
|
keyHash: string;
|
|
20
17
|
keyPrefix: string;
|
|
21
18
|
lastUsedAt: string | null;
|
|
19
|
+
expiresAt: string | null;
|
|
20
|
+
createdAt: string;
|
|
21
|
+
updatedAt: string;
|
|
22
22
|
} | undefined>;
|
|
23
23
|
declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
|
|
24
|
+
tenantId: string;
|
|
25
|
+
projectId: string;
|
|
24
26
|
id: string;
|
|
25
27
|
name: string | null;
|
|
26
|
-
createdAt: string;
|
|
27
|
-
updatedAt: string;
|
|
28
|
-
projectId: string;
|
|
29
|
-
tenantId: string;
|
|
30
28
|
agentId: string;
|
|
31
|
-
expiresAt: string | null;
|
|
32
29
|
publicId: string;
|
|
33
30
|
keyHash: string;
|
|
34
31
|
keyPrefix: string;
|
|
35
32
|
lastUsedAt: string | null;
|
|
33
|
+
expiresAt: string | null;
|
|
34
|
+
createdAt: string;
|
|
35
|
+
updatedAt: string;
|
|
36
36
|
} | undefined>;
|
|
37
37
|
declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
38
38
|
scopes: ProjectScopeConfig;
|
|
39
39
|
agentId?: string;
|
|
40
40
|
}) => Promise<{
|
|
41
|
+
tenantId: string;
|
|
42
|
+
projectId: string;
|
|
41
43
|
id: string;
|
|
42
44
|
name: string | null;
|
|
43
|
-
createdAt: string;
|
|
44
|
-
updatedAt: string;
|
|
45
|
-
projectId: string;
|
|
46
|
-
tenantId: string;
|
|
47
45
|
agentId: string;
|
|
48
|
-
expiresAt: string | null;
|
|
49
46
|
publicId: string;
|
|
50
47
|
keyHash: string;
|
|
51
48
|
keyPrefix: string;
|
|
52
49
|
lastUsedAt: string | null;
|
|
50
|
+
expiresAt: string | null;
|
|
51
|
+
createdAt: string;
|
|
52
|
+
updatedAt: string;
|
|
53
53
|
}[]>;
|
|
54
54
|
declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
55
55
|
scopes: ProjectScopeConfig;
|
|
@@ -65,18 +65,18 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
65
65
|
};
|
|
66
66
|
}>;
|
|
67
67
|
declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
|
|
68
|
+
tenantId: string;
|
|
69
|
+
projectId: string;
|
|
68
70
|
id: string;
|
|
69
71
|
name: string | null;
|
|
70
|
-
createdAt: string;
|
|
71
|
-
updatedAt: string;
|
|
72
|
-
projectId: string;
|
|
73
|
-
tenantId: string;
|
|
74
72
|
agentId: string;
|
|
75
|
-
expiresAt: string | null;
|
|
76
73
|
publicId: string;
|
|
77
74
|
keyHash: string;
|
|
78
75
|
keyPrefix: string;
|
|
79
76
|
lastUsedAt: string | null;
|
|
77
|
+
expiresAt: string | null;
|
|
78
|
+
createdAt: string;
|
|
79
|
+
updatedAt: string;
|
|
80
80
|
}>;
|
|
81
81
|
declare const updateApiKey: (db: AgentsRunDatabaseClient) => (params: {
|
|
82
82
|
scopes: ProjectScopeConfig;
|