@inkeep/agents-core 0.0.0-dev-20260105203532 → 0.0.0-dev-20260106150708
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/data-access/agents.d.ts +22 -22
- package/dist/data-access/apiKeys.d.ts +12 -12
- package/dist/data-access/artifactComponents.d.ts +12 -12
- package/dist/data-access/contextConfigs.d.ts +8 -8
- package/dist/data-access/conversations.d.ts +8 -8
- package/dist/data-access/dataComponents.d.ts +6 -6
- package/dist/data-access/functionTools.d.ts +8 -8
- package/dist/data-access/messages.d.ts +21 -21
- package/dist/data-access/subAgentExternalAgentRelations.d.ts +18 -18
- package/dist/data-access/subAgentRelations.d.ts +18 -18
- package/dist/data-access/subAgentTeamAgentRelations.d.ts +18 -18
- package/dist/data-access/subAgents.d.ts +18 -18
- package/dist/data-access/tasks.d.ts +3 -3
- package/dist/data-access/tools.d.ts +21 -21
- package/dist/db/schema.d.ts +288 -288
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas.d.ts +948 -948
- package/package.json +1 -1
|
@@ -9,23 +9,23 @@ declare const getMessageById: (db: DatabaseClient) => (params: {
|
|
|
9
9
|
scopes: ProjectScopeConfig;
|
|
10
10
|
messageId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
id: string;
|
|
13
|
-
createdAt: string;
|
|
14
|
-
updatedAt: string;
|
|
15
|
-
metadata: MessageMetadata | null;
|
|
16
|
-
role: string;
|
|
17
12
|
fromSubAgentId: string | null;
|
|
18
13
|
toSubAgentId: string | null;
|
|
19
14
|
fromExternalAgentId: string | null;
|
|
20
15
|
toExternalAgentId: string | null;
|
|
21
16
|
taskId: string | null;
|
|
22
17
|
a2aTaskId: string | null;
|
|
23
|
-
|
|
18
|
+
id: string;
|
|
19
|
+
createdAt: string;
|
|
20
|
+
updatedAt: string;
|
|
21
|
+
metadata: MessageMetadata | null;
|
|
22
|
+
role: string;
|
|
24
23
|
tenantId: string;
|
|
25
|
-
|
|
24
|
+
projectId: string;
|
|
26
25
|
conversationId: string;
|
|
27
26
|
fromTeamAgentId: string | null;
|
|
28
27
|
toTeamAgentId: string | null;
|
|
28
|
+
content: MessageContent;
|
|
29
29
|
visibility: string;
|
|
30
30
|
messageType: string;
|
|
31
31
|
parentMessageId: string | null;
|
|
@@ -140,23 +140,23 @@ declare const getVisibleMessages: (db: DatabaseClient) => (params: {
|
|
|
140
140
|
id: string;
|
|
141
141
|
}[]>;
|
|
142
142
|
declare const createMessage: (db: DatabaseClient) => (params: MessageInsert) => Promise<{
|
|
143
|
-
id: string;
|
|
144
|
-
createdAt: string;
|
|
145
|
-
updatedAt: string;
|
|
146
|
-
metadata: MessageMetadata | null;
|
|
147
|
-
role: string;
|
|
148
143
|
fromSubAgentId: string | null;
|
|
149
144
|
toSubAgentId: string | null;
|
|
150
145
|
fromExternalAgentId: string | null;
|
|
151
146
|
toExternalAgentId: string | null;
|
|
152
147
|
taskId: string | null;
|
|
153
148
|
a2aTaskId: string | null;
|
|
154
|
-
|
|
149
|
+
id: string;
|
|
150
|
+
createdAt: string;
|
|
151
|
+
updatedAt: string;
|
|
152
|
+
metadata: MessageMetadata | null;
|
|
153
|
+
role: string;
|
|
155
154
|
tenantId: string;
|
|
156
|
-
|
|
155
|
+
projectId: string;
|
|
157
156
|
conversationId: string;
|
|
158
157
|
fromTeamAgentId: string | null;
|
|
159
158
|
toTeamAgentId: string | null;
|
|
159
|
+
content: MessageContent;
|
|
160
160
|
visibility: string;
|
|
161
161
|
messageType: string;
|
|
162
162
|
parentMessageId: string | null;
|
|
@@ -193,23 +193,23 @@ declare const deleteMessage: (db: DatabaseClient) => (params: {
|
|
|
193
193
|
scopes: ProjectScopeConfig;
|
|
194
194
|
messageId: string;
|
|
195
195
|
}) => Promise<{
|
|
196
|
-
id: string;
|
|
197
|
-
createdAt: string;
|
|
198
|
-
updatedAt: string;
|
|
199
|
-
metadata: MessageMetadata | null;
|
|
200
|
-
role: string;
|
|
201
196
|
fromSubAgentId: string | null;
|
|
202
197
|
toSubAgentId: string | null;
|
|
203
198
|
fromExternalAgentId: string | null;
|
|
204
199
|
toExternalAgentId: string | null;
|
|
205
200
|
taskId: string | null;
|
|
206
201
|
a2aTaskId: string | null;
|
|
207
|
-
|
|
202
|
+
id: string;
|
|
203
|
+
createdAt: string;
|
|
204
|
+
updatedAt: string;
|
|
205
|
+
metadata: MessageMetadata | null;
|
|
206
|
+
role: string;
|
|
208
207
|
tenantId: string;
|
|
209
|
-
|
|
208
|
+
projectId: string;
|
|
210
209
|
conversationId: string;
|
|
211
210
|
fromTeamAgentId: string | null;
|
|
212
211
|
toTeamAgentId: string | null;
|
|
212
|
+
content: MessageContent;
|
|
213
213
|
visibility: string;
|
|
214
214
|
messageType: string;
|
|
215
215
|
parentMessageId: string | null;
|
|
@@ -8,14 +8,14 @@ declare const getSubAgentExternalAgentRelationById: (db: DatabaseClient) => (par
|
|
|
8
8
|
scopes: SubAgentScopeConfig;
|
|
9
9
|
relationId: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
+
subAgentId: string;
|
|
11
12
|
id: string;
|
|
12
13
|
createdAt: string;
|
|
13
14
|
updatedAt: string;
|
|
14
15
|
headers: Record<string, string> | null;
|
|
15
|
-
subAgentId: string;
|
|
16
|
-
agentId: string;
|
|
17
|
-
projectId: string;
|
|
18
16
|
tenantId: string;
|
|
17
|
+
projectId: string;
|
|
18
|
+
agentId: string;
|
|
19
19
|
externalAgentId: string;
|
|
20
20
|
} | undefined>;
|
|
21
21
|
declare const listSubAgentExternalAgentRelations: (db: DatabaseClient) => (params: {
|
|
@@ -43,27 +43,27 @@ declare const listSubAgentExternalAgentRelations: (db: DatabaseClient) => (param
|
|
|
43
43
|
declare const getSubAgentExternalAgentRelations: (db: DatabaseClient) => (params: {
|
|
44
44
|
scopes: SubAgentScopeConfig;
|
|
45
45
|
}) => Promise<{
|
|
46
|
+
subAgentId: string;
|
|
46
47
|
id: string;
|
|
47
48
|
createdAt: string;
|
|
48
49
|
updatedAt: string;
|
|
49
50
|
headers: Record<string, string> | null;
|
|
50
|
-
subAgentId: string;
|
|
51
|
-
agentId: string;
|
|
52
|
-
projectId: string;
|
|
53
51
|
tenantId: string;
|
|
52
|
+
projectId: string;
|
|
53
|
+
agentId: string;
|
|
54
54
|
externalAgentId: string;
|
|
55
55
|
}[]>;
|
|
56
56
|
declare const getSubAgentExternalAgentRelationsByAgent: (db: DatabaseClient) => (params: {
|
|
57
57
|
scopes: AgentScopeConfig;
|
|
58
58
|
}) => Promise<{
|
|
59
|
+
subAgentId: string;
|
|
59
60
|
id: string;
|
|
60
61
|
createdAt: string;
|
|
61
62
|
updatedAt: string;
|
|
62
63
|
headers: Record<string, string> | null;
|
|
63
|
-
subAgentId: string;
|
|
64
|
-
agentId: string;
|
|
65
|
-
projectId: string;
|
|
66
64
|
tenantId: string;
|
|
65
|
+
projectId: string;
|
|
66
|
+
agentId: string;
|
|
67
67
|
externalAgentId: string;
|
|
68
68
|
}[]>;
|
|
69
69
|
declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: DatabaseClient) => (params: {
|
|
@@ -179,14 +179,14 @@ declare const createSubAgentExternalAgentRelation: (db: DatabaseClient) => (para
|
|
|
179
179
|
headers?: Record<string, string> | null;
|
|
180
180
|
};
|
|
181
181
|
}) => Promise<{
|
|
182
|
+
subAgentId: string;
|
|
182
183
|
id: string;
|
|
183
184
|
createdAt: string;
|
|
184
185
|
updatedAt: string;
|
|
185
186
|
headers: Record<string, string> | null;
|
|
186
|
-
subAgentId: string;
|
|
187
|
-
agentId: string;
|
|
188
|
-
projectId: string;
|
|
189
187
|
tenantId: string;
|
|
188
|
+
projectId: string;
|
|
189
|
+
agentId: string;
|
|
190
190
|
externalAgentId: string;
|
|
191
191
|
}>;
|
|
192
192
|
/**
|
|
@@ -196,14 +196,14 @@ declare const getSubAgentExternalAgentRelationByParams: (db: DatabaseClient) =>
|
|
|
196
196
|
scopes: SubAgentScopeConfig;
|
|
197
197
|
externalAgentId: string;
|
|
198
198
|
}) => Promise<{
|
|
199
|
+
subAgentId: string;
|
|
199
200
|
id: string;
|
|
200
201
|
createdAt: string;
|
|
201
202
|
updatedAt: string;
|
|
202
203
|
headers: Record<string, string> | null;
|
|
203
|
-
subAgentId: string;
|
|
204
|
-
agentId: string;
|
|
205
|
-
projectId: string;
|
|
206
204
|
tenantId: string;
|
|
205
|
+
projectId: string;
|
|
206
|
+
agentId: string;
|
|
207
207
|
externalAgentId: string;
|
|
208
208
|
} | undefined>;
|
|
209
209
|
/**
|
|
@@ -217,14 +217,14 @@ declare const upsertSubAgentExternalAgentRelation: (db: DatabaseClient) => (para
|
|
|
217
217
|
headers?: Record<string, string> | null;
|
|
218
218
|
};
|
|
219
219
|
}) => Promise<{
|
|
220
|
+
subAgentId: string;
|
|
220
221
|
id: string;
|
|
221
222
|
createdAt: string;
|
|
222
223
|
updatedAt: string;
|
|
223
224
|
headers: Record<string, string> | null;
|
|
224
|
-
subAgentId: string;
|
|
225
|
-
agentId: string;
|
|
226
|
-
projectId: string;
|
|
227
225
|
tenantId: string;
|
|
226
|
+
projectId: string;
|
|
227
|
+
agentId: string;
|
|
228
228
|
externalAgentId: string;
|
|
229
229
|
}>;
|
|
230
230
|
declare const updateSubAgentExternalAgentRelation: (db: DatabaseClient) => (params: {
|
|
@@ -11,9 +11,9 @@ declare const getAgentRelationById: (db: DatabaseClient) => (params: {
|
|
|
11
11
|
id: string;
|
|
12
12
|
createdAt: string;
|
|
13
13
|
updatedAt: string;
|
|
14
|
-
agentId: string;
|
|
15
|
-
projectId: string;
|
|
16
14
|
tenantId: string;
|
|
15
|
+
projectId: string;
|
|
16
|
+
agentId: string;
|
|
17
17
|
sourceSubAgentId: string;
|
|
18
18
|
targetSubAgentId: string | null;
|
|
19
19
|
relationType: string | null;
|
|
@@ -46,9 +46,9 @@ declare const getAgentRelations: (db: DatabaseClient) => (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
|
sourceSubAgentId: string;
|
|
53
53
|
targetSubAgentId: string | null;
|
|
54
54
|
relationType: string | null;
|
|
@@ -59,9 +59,9 @@ declare const getAgentRelationsByAgent: (db: DatabaseClient) => (params: {
|
|
|
59
59
|
id: string;
|
|
60
60
|
createdAt: string;
|
|
61
61
|
updatedAt: string;
|
|
62
|
-
agentId: string;
|
|
63
|
-
projectId: string;
|
|
64
62
|
tenantId: string;
|
|
63
|
+
projectId: string;
|
|
64
|
+
agentId: string;
|
|
65
65
|
sourceSubAgentId: string;
|
|
66
66
|
targetSubAgentId: string | null;
|
|
67
67
|
relationType: string | null;
|
|
@@ -128,9 +128,9 @@ declare const createSubAgentRelation: (db: DatabaseClient) => (params: SubAgentR
|
|
|
128
128
|
id: string;
|
|
129
129
|
createdAt: string;
|
|
130
130
|
updatedAt: string;
|
|
131
|
-
agentId: string;
|
|
132
|
-
projectId: string;
|
|
133
131
|
tenantId: string;
|
|
132
|
+
projectId: string;
|
|
133
|
+
agentId: string;
|
|
134
134
|
sourceSubAgentId: string;
|
|
135
135
|
targetSubAgentId: string | null;
|
|
136
136
|
relationType: string | null;
|
|
@@ -147,9 +147,9 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
|
|
|
147
147
|
id: string;
|
|
148
148
|
createdAt: string;
|
|
149
149
|
updatedAt: string;
|
|
150
|
-
agentId: string;
|
|
151
|
-
projectId: string;
|
|
152
150
|
tenantId: string;
|
|
151
|
+
projectId: string;
|
|
152
|
+
agentId: string;
|
|
153
153
|
sourceSubAgentId: string;
|
|
154
154
|
targetSubAgentId: string | null;
|
|
155
155
|
relationType: string | null;
|
|
@@ -161,9 +161,9 @@ declare const upsertSubAgentRelation: (db: DatabaseClient) => (params: SubAgentR
|
|
|
161
161
|
id: string;
|
|
162
162
|
createdAt: string;
|
|
163
163
|
updatedAt: string;
|
|
164
|
-
agentId: string;
|
|
165
|
-
projectId: string;
|
|
166
164
|
tenantId: string;
|
|
165
|
+
projectId: string;
|
|
166
|
+
agentId: string;
|
|
167
167
|
sourceSubAgentId: string;
|
|
168
168
|
targetSubAgentId: string | null;
|
|
169
169
|
relationType: string | null;
|
|
@@ -203,14 +203,14 @@ declare const createAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
203
203
|
}> | null;
|
|
204
204
|
};
|
|
205
205
|
}) => Promise<{
|
|
206
|
+
subAgentId: string;
|
|
206
207
|
id: string;
|
|
207
208
|
createdAt: string;
|
|
208
209
|
updatedAt: string;
|
|
209
210
|
headers: Record<string, string> | null;
|
|
210
|
-
subAgentId: string;
|
|
211
|
-
agentId: string;
|
|
212
|
-
projectId: string;
|
|
213
211
|
tenantId: string;
|
|
212
|
+
projectId: string;
|
|
213
|
+
agentId: string;
|
|
214
214
|
toolId: string;
|
|
215
215
|
selectedTools: string[] | null;
|
|
216
216
|
toolPolicies: Record<string, {
|
|
@@ -247,14 +247,14 @@ declare const getAgentToolRelationById: (db: DatabaseClient) => (params: {
|
|
|
247
247
|
scopes: SubAgentScopeConfig;
|
|
248
248
|
relationId: string;
|
|
249
249
|
}) => Promise<{
|
|
250
|
+
subAgentId: string;
|
|
250
251
|
id: string;
|
|
251
252
|
createdAt: string;
|
|
252
253
|
updatedAt: string;
|
|
253
254
|
headers: Record<string, string> | null;
|
|
254
|
-
subAgentId: string;
|
|
255
|
-
agentId: string;
|
|
256
|
-
projectId: string;
|
|
257
255
|
tenantId: string;
|
|
256
|
+
projectId: string;
|
|
257
|
+
agentId: string;
|
|
258
258
|
toolId: string;
|
|
259
259
|
selectedTools: string[] | null;
|
|
260
260
|
toolPolicies: Record<string, {
|
|
@@ -8,14 +8,14 @@ declare const getSubAgentTeamAgentRelationById: (db: DatabaseClient) => (params:
|
|
|
8
8
|
scopes: SubAgentScopeConfig;
|
|
9
9
|
relationId: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
+
subAgentId: string;
|
|
11
12
|
id: string;
|
|
12
13
|
createdAt: string;
|
|
13
14
|
updatedAt: string;
|
|
14
15
|
headers: Record<string, string> | null;
|
|
15
|
-
subAgentId: string;
|
|
16
|
-
agentId: string;
|
|
17
|
-
projectId: string;
|
|
18
16
|
tenantId: string;
|
|
17
|
+
projectId: string;
|
|
18
|
+
agentId: string;
|
|
19
19
|
targetAgentId: string;
|
|
20
20
|
} | undefined>;
|
|
21
21
|
declare const listSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
|
|
@@ -43,27 +43,27 @@ declare const listSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
|
|
|
43
43
|
declare const getSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
|
|
44
44
|
scopes: SubAgentScopeConfig;
|
|
45
45
|
}) => Promise<{
|
|
46
|
+
subAgentId: string;
|
|
46
47
|
id: string;
|
|
47
48
|
createdAt: string;
|
|
48
49
|
updatedAt: string;
|
|
49
50
|
headers: Record<string, string> | null;
|
|
50
|
-
subAgentId: string;
|
|
51
|
-
agentId: string;
|
|
52
|
-
projectId: string;
|
|
53
51
|
tenantId: string;
|
|
52
|
+
projectId: string;
|
|
53
|
+
agentId: string;
|
|
54
54
|
targetAgentId: string;
|
|
55
55
|
}[]>;
|
|
56
56
|
declare const getSubAgentTeamAgentRelationsByAgent: (db: DatabaseClient) => (params: {
|
|
57
57
|
scopes: AgentScopeConfig;
|
|
58
58
|
}) => Promise<{
|
|
59
|
+
subAgentId: string;
|
|
59
60
|
id: string;
|
|
60
61
|
createdAt: string;
|
|
61
62
|
updatedAt: string;
|
|
62
63
|
headers: Record<string, string> | null;
|
|
63
|
-
subAgentId: string;
|
|
64
|
-
agentId: string;
|
|
65
|
-
projectId: string;
|
|
66
64
|
tenantId: string;
|
|
65
|
+
projectId: string;
|
|
66
|
+
agentId: string;
|
|
67
67
|
targetAgentId: string;
|
|
68
68
|
}[]>;
|
|
69
69
|
declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: DatabaseClient) => (params: {
|
|
@@ -209,14 +209,14 @@ declare const createSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
|
|
|
209
209
|
headers?: Record<string, string> | null;
|
|
210
210
|
};
|
|
211
211
|
}) => Promise<{
|
|
212
|
+
subAgentId: string;
|
|
212
213
|
id: string;
|
|
213
214
|
createdAt: string;
|
|
214
215
|
updatedAt: string;
|
|
215
216
|
headers: Record<string, string> | null;
|
|
216
|
-
subAgentId: string;
|
|
217
|
-
agentId: string;
|
|
218
|
-
projectId: string;
|
|
219
217
|
tenantId: string;
|
|
218
|
+
projectId: string;
|
|
219
|
+
agentId: string;
|
|
220
220
|
targetAgentId: string;
|
|
221
221
|
}>;
|
|
222
222
|
/**
|
|
@@ -226,14 +226,14 @@ declare const getSubAgentTeamAgentRelationByParams: (db: DatabaseClient) => (par
|
|
|
226
226
|
scopes: SubAgentScopeConfig;
|
|
227
227
|
targetAgentId: string;
|
|
228
228
|
}) => Promise<{
|
|
229
|
+
subAgentId: string;
|
|
229
230
|
id: string;
|
|
230
231
|
createdAt: string;
|
|
231
232
|
updatedAt: string;
|
|
232
233
|
headers: Record<string, string> | null;
|
|
233
|
-
subAgentId: string;
|
|
234
|
-
agentId: string;
|
|
235
|
-
projectId: string;
|
|
236
234
|
tenantId: string;
|
|
235
|
+
projectId: string;
|
|
236
|
+
agentId: string;
|
|
237
237
|
targetAgentId: string;
|
|
238
238
|
} | undefined>;
|
|
239
239
|
/**
|
|
@@ -247,14 +247,14 @@ declare const upsertSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
|
|
|
247
247
|
headers?: Record<string, string> | null;
|
|
248
248
|
};
|
|
249
249
|
}) => Promise<{
|
|
250
|
+
subAgentId: string;
|
|
250
251
|
id: string;
|
|
251
252
|
createdAt: string;
|
|
252
253
|
updatedAt: string;
|
|
253
254
|
headers: Record<string, string> | null;
|
|
254
|
-
subAgentId: string;
|
|
255
|
-
agentId: string;
|
|
256
|
-
projectId: string;
|
|
257
255
|
tenantId: string;
|
|
256
|
+
projectId: string;
|
|
257
|
+
agentId: string;
|
|
258
258
|
targetAgentId: string;
|
|
259
259
|
}>;
|
|
260
260
|
declare const updateSubAgentTeamAgentRelation: (db: DatabaseClient) => (params: {
|
|
@@ -8,13 +8,11 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
|
|
|
8
8
|
scopes: AgentScopeConfig;
|
|
9
9
|
subAgentId: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
-
|
|
11
|
+
description: string | null;
|
|
12
12
|
name: string;
|
|
13
|
+
id: string;
|
|
13
14
|
createdAt: string;
|
|
14
15
|
updatedAt: string;
|
|
15
|
-
description: string | null;
|
|
16
|
-
prompt: string | null;
|
|
17
|
-
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
18
16
|
models: {
|
|
19
17
|
base?: {
|
|
20
18
|
model?: string | undefined;
|
|
@@ -32,20 +30,20 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
|
|
|
32
30
|
stopWhen: {
|
|
33
31
|
stepCountIs?: number | undefined;
|
|
34
32
|
} | null;
|
|
35
|
-
agentId: string;
|
|
36
|
-
projectId: string;
|
|
37
33
|
tenantId: string;
|
|
34
|
+
prompt: string | null;
|
|
35
|
+
projectId: string;
|
|
36
|
+
agentId: string;
|
|
37
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
38
38
|
} | undefined>;
|
|
39
39
|
declare const listSubAgents: (db: DatabaseClient) => (params: {
|
|
40
40
|
scopes: AgentScopeConfig;
|
|
41
41
|
}) => Promise<{
|
|
42
|
-
|
|
42
|
+
description: string | null;
|
|
43
43
|
name: string;
|
|
44
|
+
id: string;
|
|
44
45
|
createdAt: string;
|
|
45
46
|
updatedAt: string;
|
|
46
|
-
description: string | null;
|
|
47
|
-
prompt: string | null;
|
|
48
|
-
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
49
47
|
models: {
|
|
50
48
|
base?: {
|
|
51
49
|
model?: string | undefined;
|
|
@@ -63,9 +61,11 @@ declare const listSubAgents: (db: DatabaseClient) => (params: {
|
|
|
63
61
|
stopWhen: {
|
|
64
62
|
stepCountIs?: number | undefined;
|
|
65
63
|
} | null;
|
|
66
|
-
agentId: string;
|
|
67
|
-
projectId: string;
|
|
68
64
|
tenantId: string;
|
|
65
|
+
prompt: string | null;
|
|
66
|
+
projectId: string;
|
|
67
|
+
agentId: string;
|
|
68
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
|
|
71
71
|
scopes: AgentScopeConfig;
|
|
@@ -108,13 +108,11 @@ declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
|
|
|
108
108
|
};
|
|
109
109
|
}>;
|
|
110
110
|
declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
111
|
-
|
|
111
|
+
description: string | null;
|
|
112
112
|
name: string;
|
|
113
|
+
id: string;
|
|
113
114
|
createdAt: string;
|
|
114
115
|
updatedAt: string;
|
|
115
|
-
description: string | null;
|
|
116
|
-
prompt: string | null;
|
|
117
|
-
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
118
116
|
models: {
|
|
119
117
|
base?: {
|
|
120
118
|
model?: string | undefined;
|
|
@@ -132,9 +130,11 @@ declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) =
|
|
|
132
130
|
stopWhen: {
|
|
133
131
|
stepCountIs?: number | undefined;
|
|
134
132
|
} | null;
|
|
135
|
-
agentId: string;
|
|
136
|
-
projectId: string;
|
|
137
133
|
tenantId: string;
|
|
134
|
+
prompt: string | null;
|
|
135
|
+
projectId: string;
|
|
136
|
+
agentId: string;
|
|
137
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
138
138
|
}>;
|
|
139
139
|
declare const updateSubAgent: (db: DatabaseClient) => (params: {
|
|
140
140
|
scopes: AgentScopeConfig;
|
|
@@ -6,15 +6,15 @@ import { DatabaseClient } from "../db/client.js";
|
|
|
6
6
|
|
|
7
7
|
//#region src/data-access/tasks.d.ts
|
|
8
8
|
declare const createTask: (db: DatabaseClient) => (params: TaskInsert) => Promise<{
|
|
9
|
+
subAgentId: string;
|
|
9
10
|
id: string;
|
|
10
11
|
createdAt: string;
|
|
11
12
|
updatedAt: string;
|
|
12
13
|
metadata: TaskMetadataConfig | null;
|
|
13
14
|
status: string;
|
|
14
|
-
subAgentId: string;
|
|
15
|
-
agentId: string;
|
|
16
|
-
projectId: string;
|
|
17
15
|
tenantId: string;
|
|
16
|
+
projectId: string;
|
|
17
|
+
agentId: string;
|
|
18
18
|
contextId: string;
|
|
19
19
|
}>;
|
|
20
20
|
declare const getTask: (db: DatabaseClient) => (params: {
|
|
@@ -12,19 +12,19 @@ declare const getToolById: (db: DatabaseClient) => (params: {
|
|
|
12
12
|
scopes: ProjectScopeConfig;
|
|
13
13
|
toolId: string;
|
|
14
14
|
}) => Promise<{
|
|
15
|
-
|
|
15
|
+
description: string | null;
|
|
16
16
|
name: string;
|
|
17
|
+
id: string;
|
|
17
18
|
createdAt: string;
|
|
18
19
|
updatedAt: string;
|
|
19
|
-
description: string | null;
|
|
20
20
|
headers: Record<string, string> | null;
|
|
21
|
-
projectId: string;
|
|
22
21
|
tenantId: string;
|
|
22
|
+
projectId: string;
|
|
23
|
+
credentialReferenceId: string | null;
|
|
23
24
|
config: {
|
|
24
25
|
type: "mcp";
|
|
25
26
|
mcp: ToolMcpConfig;
|
|
26
27
|
};
|
|
27
|
-
credentialReferenceId: string | null;
|
|
28
28
|
credentialScope: string;
|
|
29
29
|
imageUrl: string | null;
|
|
30
30
|
capabilities: ToolServerCapabilities | null;
|
|
@@ -61,19 +61,19 @@ declare const listTools: (db: DatabaseClient) => (params: {
|
|
|
61
61
|
};
|
|
62
62
|
}>;
|
|
63
63
|
declare const createTool: (db: DatabaseClient) => (params: ToolInsert) => Promise<{
|
|
64
|
-
|
|
64
|
+
description: string | null;
|
|
65
65
|
name: string;
|
|
66
|
+
id: string;
|
|
66
67
|
createdAt: string;
|
|
67
68
|
updatedAt: string;
|
|
68
|
-
description: string | null;
|
|
69
69
|
headers: Record<string, string> | null;
|
|
70
|
-
projectId: string;
|
|
71
70
|
tenantId: string;
|
|
71
|
+
projectId: string;
|
|
72
|
+
credentialReferenceId: string | null;
|
|
72
73
|
config: {
|
|
73
74
|
type: "mcp";
|
|
74
75
|
mcp: ToolMcpConfig;
|
|
75
76
|
};
|
|
76
|
-
credentialReferenceId: string | null;
|
|
77
77
|
credentialScope: string;
|
|
78
78
|
imageUrl: string | null;
|
|
79
79
|
capabilities: ToolServerCapabilities | null;
|
|
@@ -116,14 +116,14 @@ declare const addToolToAgent: (db: DatabaseClient) => (params: {
|
|
|
116
116
|
needsApproval?: boolean;
|
|
117
117
|
}> | null;
|
|
118
118
|
}) => Promise<{
|
|
119
|
+
subAgentId: string;
|
|
119
120
|
id: string;
|
|
120
121
|
createdAt: string;
|
|
121
122
|
updatedAt: string;
|
|
122
123
|
headers: Record<string, string> | null;
|
|
123
|
-
subAgentId: string;
|
|
124
|
-
agentId: string;
|
|
125
|
-
projectId: string;
|
|
126
124
|
tenantId: string;
|
|
125
|
+
projectId: string;
|
|
126
|
+
agentId: string;
|
|
127
127
|
toolId: string;
|
|
128
128
|
selectedTools: string[] | null;
|
|
129
129
|
toolPolicies: Record<string, {
|
|
@@ -135,14 +135,14 @@ declare const removeToolFromAgent: (db: DatabaseClient) => (params: {
|
|
|
135
135
|
subAgentId: string;
|
|
136
136
|
toolId: string;
|
|
137
137
|
}) => Promise<{
|
|
138
|
+
subAgentId: string;
|
|
138
139
|
id: string;
|
|
139
140
|
createdAt: string;
|
|
140
141
|
updatedAt: string;
|
|
141
142
|
headers: Record<string, string> | null;
|
|
142
|
-
subAgentId: string;
|
|
143
|
-
agentId: string;
|
|
144
|
-
projectId: string;
|
|
145
143
|
tenantId: string;
|
|
144
|
+
projectId: string;
|
|
145
|
+
agentId: string;
|
|
146
146
|
toolId: string;
|
|
147
147
|
selectedTools: string[] | null;
|
|
148
148
|
toolPolicies: Record<string, {
|
|
@@ -163,14 +163,14 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
163
163
|
}> | null;
|
|
164
164
|
relationId?: string;
|
|
165
165
|
}) => Promise<{
|
|
166
|
+
subAgentId: string;
|
|
166
167
|
id: string;
|
|
167
168
|
createdAt: string;
|
|
168
169
|
updatedAt: string;
|
|
169
170
|
headers: Record<string, string> | null;
|
|
170
|
-
subAgentId: string;
|
|
171
|
-
agentId: string;
|
|
172
|
-
projectId: string;
|
|
173
171
|
tenantId: string;
|
|
172
|
+
projectId: string;
|
|
173
|
+
agentId: string;
|
|
174
174
|
toolId: string;
|
|
175
175
|
selectedTools: string[] | null;
|
|
176
176
|
toolPolicies: Record<string, {
|
|
@@ -183,19 +183,19 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
183
183
|
declare const upsertTool: (db: DatabaseClient) => (params: {
|
|
184
184
|
data: ToolInsert;
|
|
185
185
|
}) => Promise<{
|
|
186
|
-
|
|
186
|
+
description: string | null;
|
|
187
187
|
name: string;
|
|
188
|
+
id: string;
|
|
188
189
|
createdAt: string;
|
|
189
190
|
updatedAt: string;
|
|
190
|
-
description: string | null;
|
|
191
191
|
headers: Record<string, string> | null;
|
|
192
|
-
projectId: string;
|
|
193
192
|
tenantId: string;
|
|
193
|
+
projectId: string;
|
|
194
|
+
credentialReferenceId: string | null;
|
|
194
195
|
config: {
|
|
195
196
|
type: "mcp";
|
|
196
197
|
mcp: ToolMcpConfig;
|
|
197
198
|
};
|
|
198
|
-
credentialReferenceId: string | null;
|
|
199
199
|
credentialScope: string;
|
|
200
200
|
imageUrl: string | null;
|
|
201
201
|
capabilities: ToolServerCapabilities | null;
|