@inkeep/agents-core 0.63.3 → 0.64.2
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/api-client/eval-api-client.d.ts +2 -12
- package/dist/api-client/eval-api-client.js +0 -15
- package/dist/api-client/index.d.ts +2 -2
- package/dist/auth/auth-schema.d.ts +86 -86
- package/dist/auth/auth-validation-schemas.d.ts +137 -137
- package/dist/auth/auth.d.ts +6 -6
- package/dist/auth/auth.js +28 -9
- package/dist/auth/entitlement-constants.d.ts +11 -0
- package/dist/auth/entitlement-constants.js +10 -0
- package/dist/auth/entitlement-lock.d.ts +6 -0
- package/dist/auth/entitlement-lock.js +13 -0
- package/dist/auth/entitlements.d.ts +11 -0
- package/dist/auth/entitlements.js +55 -0
- package/dist/auth/init.js +2 -4
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/client-exports.d.ts +6 -4
- package/dist/client-exports.js +4 -2
- package/dist/constants/models.d.ts +2 -1
- package/dist/constants/models.js +6 -1
- package/dist/constants/otel-attributes.d.ts +2 -0
- package/dist/constants/otel-attributes.js +2 -0
- package/dist/data-access/index.d.ts +5 -4
- package/dist/data-access/index.js +4 -3
- package/dist/data-access/manage/agents.d.ts +65 -23
- package/dist/data-access/manage/artifactComponents.d.ts +6 -6
- package/dist/data-access/manage/contextConfigs.d.ts +4 -4
- package/dist/data-access/manage/dataComponents.d.ts +2 -2
- package/dist/data-access/manage/evalConfig.d.ts +49 -3
- package/dist/data-access/manage/evalConfig.js +61 -3
- package/dist/data-access/manage/functionTools.d.ts +6 -6
- package/dist/data-access/manage/projectLifecycle.d.ts +1 -1
- package/dist/data-access/manage/skills.d.ts +9 -9
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +18 -12
- package/dist/data-access/manage/subAgentRelations.d.ts +22 -16
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +24 -12
- package/dist/data-access/manage/subAgents.d.ts +45 -9
- package/dist/data-access/manage/tools.d.ts +18 -18
- package/dist/data-access/manage/tools.js +41 -4
- package/dist/data-access/manage/triggers.d.ts +2 -2
- package/dist/data-access/runtime/apiKeys.d.ts +8 -8
- package/dist/data-access/runtime/apps.d.ts +38 -47
- package/dist/data-access/runtime/cascade-delete.d.ts +1 -1
- package/dist/data-access/runtime/conversations.d.ts +17 -17
- package/dist/data-access/runtime/entitlements.d.ts +13 -0
- package/dist/data-access/runtime/entitlements.js +33 -0
- package/dist/data-access/runtime/ledgerArtifacts.d.ts +1 -1
- package/dist/data-access/runtime/messages.d.ts +13 -13
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +47 -2
- package/dist/data-access/runtime/scheduledTriggerInvocations.js +34 -1
- package/dist/data-access/runtime/tasks.d.ts +6 -6
- package/dist/data-access/runtime/workflowExecutions.d.ts +1 -1
- package/dist/data-reconciliation/types.d.ts +1 -1
- package/dist/db/clean.d.ts +1 -1
- package/dist/db/manage/manage-schema.d.ts +766 -688
- package/dist/db/manage/manage-schema.js +154 -134
- package/dist/db/runtime/runtime-schema.d.ts +499 -392
- package/dist/db/runtime/runtime-schema.js +20 -3
- package/dist/dolt/backfill-skill-files.d.ts +41 -0
- package/dist/dolt/backfill-skill-files.js +209 -0
- package/dist/dolt/run-sql-file-on-all-branches.d.ts +29 -0
- package/dist/dolt/run-sql-file-on-all-branches.js +177 -0
- package/dist/index.d.ts +20 -16
- package/dist/index.js +12 -8
- package/dist/middleware/create-protected-route.d.ts +3 -0
- package/dist/middleware/create-protected-route.js +7 -2
- package/dist/middleware/entitlement-meta.d.ts +9 -0
- package/dist/middleware/entitlement-meta.js +11 -0
- package/dist/middleware/index.d.ts +2 -1
- package/dist/middleware/index.js +2 -1
- package/dist/types/entities.d.ts +8 -3
- package/dist/types/index.d.ts +3 -3
- package/dist/types/utility.d.ts +6 -6
- package/dist/utils/error.d.ts +54 -51
- package/dist/utils/error.js +3 -0
- package/dist/utils/index.d.ts +3 -3
- package/dist/utils/index.js +2 -2
- package/dist/utils/mcp-client.d.ts +1 -1
- package/dist/utils/mcp-client.js +1 -1
- package/dist/utils/model-factory.js +24 -9
- package/dist/utils/usage-cost-middleware.d.ts +2 -1
- package/dist/utils/usage-cost-middleware.js +22 -5
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/index.d.ts +2 -2
- package/dist/validation/index.js +2 -2
- package/dist/validation/schemas/skills.d.ts +43 -43
- package/dist/validation/schemas.d.ts +2376 -1441
- package/dist/validation/schemas.js +22 -24
- package/drizzle/manage/0016_complex_klaw.sql +2 -0
- package/drizzle/manage/0017_brief_doctor_strange.sql +29 -0
- package/drizzle/manage/meta/0016_snapshot.json +3530 -0
- package/drizzle/manage/meta/0017_snapshot.json +3748 -0
- package/drizzle/manage/meta/_journal.json +14 -0
- package/drizzle/runtime/0029_burly_satana.sql +13 -0
- package/drizzle/runtime/0030_set-allow-anonymous-for-existing-apps.sql +56 -0
- package/drizzle/runtime/meta/0029_snapshot.json +4756 -0
- package/drizzle/runtime/meta/_journal.json +14 -0
- package/package.json +3 -1
- /package/drizzle/runtime/meta/{0023_snapshot.json → 0025_snapshot.json} +0 -0
|
@@ -12,11 +12,11 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
|
|
|
12
12
|
id: string;
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
|
-
|
|
15
|
+
headers: Record<string, string> | null;
|
|
16
16
|
tenantId: string;
|
|
17
|
+
projectId: string;
|
|
17
18
|
agentId: string;
|
|
18
19
|
subAgentId: string;
|
|
19
|
-
headers: Record<string, string> | null;
|
|
20
20
|
externalAgentId: string;
|
|
21
21
|
} | undefined>;
|
|
22
22
|
declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -47,11 +47,11 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
|
|
|
47
47
|
id: string;
|
|
48
48
|
createdAt: string;
|
|
49
49
|
updatedAt: string;
|
|
50
|
-
|
|
50
|
+
headers: Record<string, string> | null;
|
|
51
51
|
tenantId: string;
|
|
52
|
+
projectId: string;
|
|
52
53
|
agentId: string;
|
|
53
54
|
subAgentId: string;
|
|
54
|
-
headers: Record<string, string> | null;
|
|
55
55
|
externalAgentId: string;
|
|
56
56
|
}[]>;
|
|
57
57
|
declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -60,11 +60,11 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
|
|
|
60
60
|
id: string;
|
|
61
61
|
createdAt: string;
|
|
62
62
|
updatedAt: string;
|
|
63
|
-
|
|
63
|
+
headers: Record<string, string> | null;
|
|
64
64
|
tenantId: string;
|
|
65
|
+
projectId: string;
|
|
65
66
|
agentId: string;
|
|
66
67
|
subAgentId: string;
|
|
67
|
-
headers: Record<string, string> | null;
|
|
68
68
|
externalAgentId: string;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -148,14 +148,20 @@ declare const getSubAgentsForExternalAgent: (db: AgentsManageDatabaseClient) =>
|
|
|
148
148
|
base?: {
|
|
149
149
|
model?: string | undefined;
|
|
150
150
|
providerOptions?: Record<string, unknown> | undefined;
|
|
151
|
+
fallbackModels?: string[] | undefined;
|
|
152
|
+
allowedProviders?: string[] | undefined;
|
|
151
153
|
} | undefined;
|
|
152
154
|
structuredOutput?: {
|
|
153
155
|
model?: string | undefined;
|
|
154
156
|
providerOptions?: Record<string, unknown> | undefined;
|
|
157
|
+
fallbackModels?: string[] | undefined;
|
|
158
|
+
allowedProviders?: string[] | undefined;
|
|
155
159
|
} | undefined;
|
|
156
160
|
summarizer?: {
|
|
157
161
|
model?: string | undefined;
|
|
158
162
|
providerOptions?: Record<string, unknown> | undefined;
|
|
163
|
+
fallbackModels?: string[] | undefined;
|
|
164
|
+
allowedProviders?: string[] | undefined;
|
|
159
165
|
} | undefined;
|
|
160
166
|
} | null;
|
|
161
167
|
stopWhen: {
|
|
@@ -183,11 +189,11 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
183
189
|
id: string;
|
|
184
190
|
createdAt: string;
|
|
185
191
|
updatedAt: string;
|
|
186
|
-
|
|
192
|
+
headers: Record<string, string> | null;
|
|
187
193
|
tenantId: string;
|
|
194
|
+
projectId: string;
|
|
188
195
|
agentId: string;
|
|
189
196
|
subAgentId: string;
|
|
190
|
-
headers: Record<string, string> | null;
|
|
191
197
|
externalAgentId: string;
|
|
192
198
|
}>;
|
|
193
199
|
/**
|
|
@@ -200,11 +206,11 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
|
|
|
200
206
|
id: string;
|
|
201
207
|
createdAt: string;
|
|
202
208
|
updatedAt: string;
|
|
203
|
-
|
|
209
|
+
headers: Record<string, string> | null;
|
|
204
210
|
tenantId: string;
|
|
211
|
+
projectId: string;
|
|
205
212
|
agentId: string;
|
|
206
213
|
subAgentId: string;
|
|
207
|
-
headers: Record<string, string> | null;
|
|
208
214
|
externalAgentId: string;
|
|
209
215
|
} | undefined>;
|
|
210
216
|
/**
|
|
@@ -221,11 +227,11 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
221
227
|
id: string;
|
|
222
228
|
createdAt: string;
|
|
223
229
|
updatedAt: string;
|
|
224
|
-
|
|
230
|
+
headers: Record<string, string> | null;
|
|
225
231
|
tenantId: string;
|
|
232
|
+
projectId: string;
|
|
226
233
|
agentId: string;
|
|
227
234
|
subAgentId: string;
|
|
228
|
-
headers: Record<string, string> | null;
|
|
229
235
|
externalAgentId: string;
|
|
230
236
|
}>;
|
|
231
237
|
declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -12,12 +12,12 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
12
12
|
id: string;
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
|
-
projectId: string;
|
|
16
15
|
tenantId: string;
|
|
16
|
+
projectId: string;
|
|
17
17
|
agentId: string;
|
|
18
|
-
relationType: string | null;
|
|
19
18
|
sourceSubAgentId: string;
|
|
20
19
|
targetSubAgentId: string | null;
|
|
20
|
+
relationType: string | null;
|
|
21
21
|
} | undefined>;
|
|
22
22
|
declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
23
23
|
scopes: AgentScopeConfig;
|
|
@@ -47,12 +47,12 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
47
47
|
id: string;
|
|
48
48
|
createdAt: string;
|
|
49
49
|
updatedAt: string;
|
|
50
|
-
projectId: string;
|
|
51
50
|
tenantId: string;
|
|
51
|
+
projectId: string;
|
|
52
52
|
agentId: string;
|
|
53
|
-
relationType: string | null;
|
|
54
53
|
sourceSubAgentId: string;
|
|
55
54
|
targetSubAgentId: string | null;
|
|
55
|
+
relationType: string | null;
|
|
56
56
|
}[]>;
|
|
57
57
|
declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
@@ -60,12 +60,12 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
|
|
|
60
60
|
id: string;
|
|
61
61
|
createdAt: string;
|
|
62
62
|
updatedAt: string;
|
|
63
|
-
projectId: string;
|
|
64
63
|
tenantId: string;
|
|
64
|
+
projectId: string;
|
|
65
65
|
agentId: string;
|
|
66
|
-
relationType: string | null;
|
|
67
66
|
sourceSubAgentId: string;
|
|
68
67
|
targetSubAgentId: string | null;
|
|
68
|
+
relationType: string | null;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const getAgentRelationsBySource: (db: AgentsManageDatabaseClient) => (params: {
|
|
71
71
|
scopes: AgentScopeConfig;
|
|
@@ -129,12 +129,12 @@ declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
|
|
|
129
129
|
id: string;
|
|
130
130
|
createdAt: string;
|
|
131
131
|
updatedAt: string;
|
|
132
|
-
projectId: string;
|
|
133
132
|
tenantId: string;
|
|
133
|
+
projectId: string;
|
|
134
134
|
agentId: string;
|
|
135
|
-
relationType: string | null;
|
|
136
135
|
sourceSubAgentId: string;
|
|
137
136
|
targetSubAgentId: string | null;
|
|
137
|
+
relationType: string | null;
|
|
138
138
|
}>;
|
|
139
139
|
/**
|
|
140
140
|
* Check if sub-agent relation exists by agent, source, target, and relation type
|
|
@@ -148,12 +148,12 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
148
148
|
id: string;
|
|
149
149
|
createdAt: string;
|
|
150
150
|
updatedAt: string;
|
|
151
|
-
projectId: string;
|
|
152
151
|
tenantId: string;
|
|
152
|
+
projectId: string;
|
|
153
153
|
agentId: string;
|
|
154
|
-
relationType: string | null;
|
|
155
154
|
sourceSubAgentId: string;
|
|
156
155
|
targetSubAgentId: string | null;
|
|
156
|
+
relationType: string | null;
|
|
157
157
|
} | undefined>;
|
|
158
158
|
/**
|
|
159
159
|
* Upsert agent relation (create if it doesn't exist, no-op if it does)
|
|
@@ -162,12 +162,12 @@ declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
|
|
|
162
162
|
id: string;
|
|
163
163
|
createdAt: string;
|
|
164
164
|
updatedAt: string;
|
|
165
|
-
projectId: string;
|
|
166
165
|
tenantId: string;
|
|
166
|
+
projectId: string;
|
|
167
167
|
agentId: string;
|
|
168
|
-
relationType: string | null;
|
|
169
168
|
sourceSubAgentId: string;
|
|
170
169
|
targetSubAgentId: string | null;
|
|
170
|
+
relationType: string | null;
|
|
171
171
|
}>;
|
|
172
172
|
declare const updateAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
173
173
|
scopes: AgentScopeConfig;
|
|
@@ -207,12 +207,12 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
207
207
|
id: string;
|
|
208
208
|
createdAt: string;
|
|
209
209
|
updatedAt: string;
|
|
210
|
-
|
|
210
|
+
headers: Record<string, string> | null;
|
|
211
211
|
tenantId: string;
|
|
212
|
+
projectId: string;
|
|
212
213
|
agentId: string;
|
|
213
214
|
subAgentId: string;
|
|
214
215
|
toolId: string;
|
|
215
|
-
headers: Record<string, string> | null;
|
|
216
216
|
selectedTools: string[] | null;
|
|
217
217
|
toolPolicies: Record<string, {
|
|
218
218
|
needsApproval?: boolean;
|
|
@@ -251,12 +251,12 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
|
|
|
251
251
|
id: string;
|
|
252
252
|
createdAt: string;
|
|
253
253
|
updatedAt: string;
|
|
254
|
-
|
|
254
|
+
headers: Record<string, string> | null;
|
|
255
255
|
tenantId: string;
|
|
256
|
+
projectId: string;
|
|
256
257
|
agentId: string;
|
|
257
258
|
subAgentId: string;
|
|
258
259
|
toolId: string;
|
|
259
|
-
headers: Record<string, string> | null;
|
|
260
260
|
selectedTools: string[] | null;
|
|
261
261
|
toolPolicies: Record<string, {
|
|
262
262
|
needsApproval?: boolean;
|
|
@@ -411,14 +411,20 @@ declare const getAgentsForTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
411
411
|
base?: {
|
|
412
412
|
model?: string | undefined;
|
|
413
413
|
providerOptions?: Record<string, unknown> | undefined;
|
|
414
|
+
fallbackModels?: string[] | undefined;
|
|
415
|
+
allowedProviders?: string[] | undefined;
|
|
414
416
|
} | undefined;
|
|
415
417
|
structuredOutput?: {
|
|
416
418
|
model?: string | undefined;
|
|
417
419
|
providerOptions?: Record<string, unknown> | undefined;
|
|
420
|
+
fallbackModels?: string[] | undefined;
|
|
421
|
+
allowedProviders?: string[] | undefined;
|
|
418
422
|
} | undefined;
|
|
419
423
|
summarizer?: {
|
|
420
424
|
model?: string | undefined;
|
|
421
425
|
providerOptions?: Record<string, unknown> | undefined;
|
|
426
|
+
fallbackModels?: string[] | undefined;
|
|
427
|
+
allowedProviders?: string[] | undefined;
|
|
422
428
|
} | undefined;
|
|
423
429
|
} | null;
|
|
424
430
|
stopWhen: {
|
|
@@ -12,11 +12,11 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
12
12
|
id: string;
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
|
-
|
|
15
|
+
headers: Record<string, string> | null;
|
|
16
16
|
tenantId: string;
|
|
17
|
+
projectId: string;
|
|
17
18
|
agentId: string;
|
|
18
19
|
subAgentId: string;
|
|
19
|
-
headers: Record<string, string> | null;
|
|
20
20
|
targetAgentId: string;
|
|
21
21
|
} | undefined>;
|
|
22
22
|
declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -47,11 +47,11 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
|
|
|
47
47
|
id: string;
|
|
48
48
|
createdAt: string;
|
|
49
49
|
updatedAt: string;
|
|
50
|
-
|
|
50
|
+
headers: Record<string, string> | null;
|
|
51
51
|
tenantId: string;
|
|
52
|
+
projectId: string;
|
|
52
53
|
agentId: string;
|
|
53
54
|
subAgentId: string;
|
|
54
|
-
headers: Record<string, string> | null;
|
|
55
55
|
targetAgentId: string;
|
|
56
56
|
}[]>;
|
|
57
57
|
declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -60,11 +60,11 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
|
|
|
60
60
|
id: string;
|
|
61
61
|
createdAt: string;
|
|
62
62
|
updatedAt: string;
|
|
63
|
-
|
|
63
|
+
headers: Record<string, string> | null;
|
|
64
64
|
tenantId: string;
|
|
65
|
+
projectId: string;
|
|
65
66
|
agentId: string;
|
|
66
67
|
subAgentId: string;
|
|
67
|
-
headers: Record<string, string> | null;
|
|
68
68
|
targetAgentId: string;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -114,14 +114,20 @@ declare const getTeamAgentsForSubAgent: (db: AgentsManageDatabaseClient) => (par
|
|
|
114
114
|
base?: {
|
|
115
115
|
model?: string | undefined;
|
|
116
116
|
providerOptions?: Record<string, unknown> | undefined;
|
|
117
|
+
fallbackModels?: string[] | undefined;
|
|
118
|
+
allowedProviders?: string[] | undefined;
|
|
117
119
|
} | undefined;
|
|
118
120
|
structuredOutput?: {
|
|
119
121
|
model?: string | undefined;
|
|
120
122
|
providerOptions?: Record<string, unknown> | undefined;
|
|
123
|
+
fallbackModels?: string[] | undefined;
|
|
124
|
+
allowedProviders?: string[] | undefined;
|
|
121
125
|
} | undefined;
|
|
122
126
|
summarizer?: {
|
|
123
127
|
model?: string | undefined;
|
|
124
128
|
providerOptions?: Record<string, unknown> | undefined;
|
|
129
|
+
fallbackModels?: string[] | undefined;
|
|
130
|
+
allowedProviders?: string[] | undefined;
|
|
125
131
|
} | undefined;
|
|
126
132
|
} | null;
|
|
127
133
|
statusUpdates: {
|
|
@@ -178,14 +184,20 @@ declare const getSubAgentsForTeamAgent: (db: AgentsManageDatabaseClient) => (par
|
|
|
178
184
|
base?: {
|
|
179
185
|
model?: string | undefined;
|
|
180
186
|
providerOptions?: Record<string, unknown> | undefined;
|
|
187
|
+
fallbackModels?: string[] | undefined;
|
|
188
|
+
allowedProviders?: string[] | undefined;
|
|
181
189
|
} | undefined;
|
|
182
190
|
structuredOutput?: {
|
|
183
191
|
model?: string | undefined;
|
|
184
192
|
providerOptions?: Record<string, unknown> | undefined;
|
|
193
|
+
fallbackModels?: string[] | undefined;
|
|
194
|
+
allowedProviders?: string[] | undefined;
|
|
185
195
|
} | undefined;
|
|
186
196
|
summarizer?: {
|
|
187
197
|
model?: string | undefined;
|
|
188
198
|
providerOptions?: Record<string, unknown> | undefined;
|
|
199
|
+
fallbackModels?: string[] | undefined;
|
|
200
|
+
allowedProviders?: string[] | undefined;
|
|
189
201
|
} | undefined;
|
|
190
202
|
} | null;
|
|
191
203
|
stopWhen: {
|
|
@@ -213,11 +225,11 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
213
225
|
id: string;
|
|
214
226
|
createdAt: string;
|
|
215
227
|
updatedAt: string;
|
|
216
|
-
|
|
228
|
+
headers: Record<string, string> | null;
|
|
217
229
|
tenantId: string;
|
|
230
|
+
projectId: string;
|
|
218
231
|
agentId: string;
|
|
219
232
|
subAgentId: string;
|
|
220
|
-
headers: Record<string, string> | null;
|
|
221
233
|
targetAgentId: string;
|
|
222
234
|
}>;
|
|
223
235
|
/**
|
|
@@ -230,11 +242,11 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
|
|
|
230
242
|
id: string;
|
|
231
243
|
createdAt: string;
|
|
232
244
|
updatedAt: string;
|
|
233
|
-
|
|
245
|
+
headers: Record<string, string> | null;
|
|
234
246
|
tenantId: string;
|
|
247
|
+
projectId: string;
|
|
235
248
|
agentId: string;
|
|
236
249
|
subAgentId: string;
|
|
237
|
-
headers: Record<string, string> | null;
|
|
238
250
|
targetAgentId: string;
|
|
239
251
|
} | undefined>;
|
|
240
252
|
/**
|
|
@@ -251,11 +263,11 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
251
263
|
id: string;
|
|
252
264
|
createdAt: string;
|
|
253
265
|
updatedAt: string;
|
|
254
|
-
|
|
266
|
+
headers: Record<string, string> | null;
|
|
255
267
|
tenantId: string;
|
|
268
|
+
projectId: string;
|
|
256
269
|
agentId: string;
|
|
257
270
|
subAgentId: string;
|
|
258
|
-
headers: Record<string, string> | null;
|
|
259
271
|
targetAgentId: string;
|
|
260
272
|
}>;
|
|
261
273
|
declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -11,28 +11,34 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
13
|
name: string;
|
|
14
|
-
description: string | null;
|
|
15
14
|
createdAt: string;
|
|
16
15
|
updatedAt: string;
|
|
17
|
-
|
|
18
|
-
tenantId: string;
|
|
16
|
+
description: string | null;
|
|
19
17
|
models: {
|
|
20
18
|
base?: {
|
|
21
19
|
model?: string | undefined;
|
|
22
20
|
providerOptions?: Record<string, unknown> | undefined;
|
|
21
|
+
fallbackModels?: string[] | undefined;
|
|
22
|
+
allowedProviders?: string[] | undefined;
|
|
23
23
|
} | undefined;
|
|
24
24
|
structuredOutput?: {
|
|
25
25
|
model?: string | undefined;
|
|
26
26
|
providerOptions?: Record<string, unknown> | undefined;
|
|
27
|
+
fallbackModels?: string[] | undefined;
|
|
28
|
+
allowedProviders?: string[] | undefined;
|
|
27
29
|
} | undefined;
|
|
28
30
|
summarizer?: {
|
|
29
31
|
model?: string | undefined;
|
|
30
32
|
providerOptions?: Record<string, unknown> | undefined;
|
|
33
|
+
fallbackModels?: string[] | undefined;
|
|
34
|
+
allowedProviders?: string[] | undefined;
|
|
31
35
|
} | undefined;
|
|
32
36
|
} | null;
|
|
33
37
|
stopWhen: {
|
|
34
38
|
stepCountIs?: number | undefined;
|
|
35
39
|
} | null;
|
|
40
|
+
tenantId: string;
|
|
41
|
+
projectId: string;
|
|
36
42
|
agentId: string;
|
|
37
43
|
prompt: string | null;
|
|
38
44
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
@@ -42,28 +48,34 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
42
48
|
}) => Promise<{
|
|
43
49
|
id: string;
|
|
44
50
|
name: string;
|
|
45
|
-
description: string | null;
|
|
46
51
|
createdAt: string;
|
|
47
52
|
updatedAt: string;
|
|
48
|
-
|
|
49
|
-
tenantId: string;
|
|
53
|
+
description: string | null;
|
|
50
54
|
models: {
|
|
51
55
|
base?: {
|
|
52
56
|
model?: string | undefined;
|
|
53
57
|
providerOptions?: Record<string, unknown> | undefined;
|
|
58
|
+
fallbackModels?: string[] | undefined;
|
|
59
|
+
allowedProviders?: string[] | undefined;
|
|
54
60
|
} | undefined;
|
|
55
61
|
structuredOutput?: {
|
|
56
62
|
model?: string | undefined;
|
|
57
63
|
providerOptions?: Record<string, unknown> | undefined;
|
|
64
|
+
fallbackModels?: string[] | undefined;
|
|
65
|
+
allowedProviders?: string[] | undefined;
|
|
58
66
|
} | undefined;
|
|
59
67
|
summarizer?: {
|
|
60
68
|
model?: string | undefined;
|
|
61
69
|
providerOptions?: Record<string, unknown> | undefined;
|
|
70
|
+
fallbackModels?: string[] | undefined;
|
|
71
|
+
allowedProviders?: string[] | undefined;
|
|
62
72
|
} | undefined;
|
|
63
73
|
} | null;
|
|
64
74
|
stopWhen: {
|
|
65
75
|
stepCountIs?: number | undefined;
|
|
66
76
|
} | null;
|
|
77
|
+
tenantId: string;
|
|
78
|
+
projectId: string;
|
|
67
79
|
agentId: string;
|
|
68
80
|
prompt: string | null;
|
|
69
81
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
@@ -81,14 +93,20 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
|
|
|
81
93
|
base?: {
|
|
82
94
|
model?: string | undefined;
|
|
83
95
|
providerOptions?: Record<string, unknown> | undefined;
|
|
96
|
+
fallbackModels?: string[] | undefined;
|
|
97
|
+
allowedProviders?: string[] | undefined;
|
|
84
98
|
} | undefined;
|
|
85
99
|
structuredOutput?: {
|
|
86
100
|
model?: string | undefined;
|
|
87
101
|
providerOptions?: Record<string, unknown> | undefined;
|
|
102
|
+
fallbackModels?: string[] | undefined;
|
|
103
|
+
allowedProviders?: string[] | undefined;
|
|
88
104
|
} | undefined;
|
|
89
105
|
summarizer?: {
|
|
90
106
|
model?: string | undefined;
|
|
91
107
|
providerOptions?: Record<string, unknown> | undefined;
|
|
108
|
+
fallbackModels?: string[] | undefined;
|
|
109
|
+
allowedProviders?: string[] | undefined;
|
|
92
110
|
} | undefined;
|
|
93
111
|
} | null;
|
|
94
112
|
stopWhen: {
|
|
@@ -111,28 +129,34 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
|
|
|
111
129
|
declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
112
130
|
id: string;
|
|
113
131
|
name: string;
|
|
114
|
-
description: string | null;
|
|
115
132
|
createdAt: string;
|
|
116
133
|
updatedAt: string;
|
|
117
|
-
|
|
118
|
-
tenantId: string;
|
|
134
|
+
description: string | null;
|
|
119
135
|
models: {
|
|
120
136
|
base?: {
|
|
121
137
|
model?: string | undefined;
|
|
122
138
|
providerOptions?: Record<string, unknown> | undefined;
|
|
139
|
+
fallbackModels?: string[] | undefined;
|
|
140
|
+
allowedProviders?: string[] | undefined;
|
|
123
141
|
} | undefined;
|
|
124
142
|
structuredOutput?: {
|
|
125
143
|
model?: string | undefined;
|
|
126
144
|
providerOptions?: Record<string, unknown> | undefined;
|
|
145
|
+
fallbackModels?: string[] | undefined;
|
|
146
|
+
allowedProviders?: string[] | undefined;
|
|
127
147
|
} | undefined;
|
|
128
148
|
summarizer?: {
|
|
129
149
|
model?: string | undefined;
|
|
130
150
|
providerOptions?: Record<string, unknown> | undefined;
|
|
151
|
+
fallbackModels?: string[] | undefined;
|
|
152
|
+
allowedProviders?: string[] | undefined;
|
|
131
153
|
} | undefined;
|
|
132
154
|
} | null;
|
|
133
155
|
stopWhen: {
|
|
134
156
|
stepCountIs?: number | undefined;
|
|
135
157
|
} | null;
|
|
158
|
+
tenantId: string;
|
|
159
|
+
projectId: string;
|
|
136
160
|
agentId: string;
|
|
137
161
|
prompt: string | null;
|
|
138
162
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
@@ -150,14 +174,20 @@ declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
150
174
|
base?: {
|
|
151
175
|
model?: string | undefined;
|
|
152
176
|
providerOptions?: Record<string, unknown> | undefined;
|
|
177
|
+
fallbackModels?: string[] | undefined;
|
|
178
|
+
allowedProviders?: string[] | undefined;
|
|
153
179
|
} | undefined;
|
|
154
180
|
structuredOutput?: {
|
|
155
181
|
model?: string | undefined;
|
|
156
182
|
providerOptions?: Record<string, unknown> | undefined;
|
|
183
|
+
fallbackModels?: string[] | undefined;
|
|
184
|
+
allowedProviders?: string[] | undefined;
|
|
157
185
|
} | undefined;
|
|
158
186
|
summarizer?: {
|
|
159
187
|
model?: string | undefined;
|
|
160
188
|
providerOptions?: Record<string, unknown> | undefined;
|
|
189
|
+
fallbackModels?: string[] | undefined;
|
|
190
|
+
allowedProviders?: string[] | undefined;
|
|
161
191
|
} | undefined;
|
|
162
192
|
} | null;
|
|
163
193
|
stopWhen: {
|
|
@@ -197,14 +227,20 @@ declare const getSubAgentsByIds: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
197
227
|
base?: {
|
|
198
228
|
model?: string | undefined;
|
|
199
229
|
providerOptions?: Record<string, unknown> | undefined;
|
|
230
|
+
fallbackModels?: string[] | undefined;
|
|
231
|
+
allowedProviders?: string[] | undefined;
|
|
200
232
|
} | undefined;
|
|
201
233
|
structuredOutput?: {
|
|
202
234
|
model?: string | undefined;
|
|
203
235
|
providerOptions?: Record<string, unknown> | undefined;
|
|
236
|
+
fallbackModels?: string[] | undefined;
|
|
237
|
+
allowedProviders?: string[] | undefined;
|
|
204
238
|
} | undefined;
|
|
205
239
|
summarizer?: {
|
|
206
240
|
model?: string | undefined;
|
|
207
241
|
providerOptions?: Record<string, unknown> | undefined;
|
|
242
|
+
fallbackModels?: string[] | undefined;
|
|
243
|
+
allowedProviders?: string[] | undefined;
|
|
208
244
|
} | undefined;
|
|
209
245
|
} | null;
|
|
210
246
|
stopWhen: {
|
|
@@ -22,18 +22,18 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
22
22
|
}) => Promise<{
|
|
23
23
|
id: string;
|
|
24
24
|
name: string;
|
|
25
|
-
description: string | null;
|
|
26
25
|
createdAt: string;
|
|
27
26
|
updatedAt: string;
|
|
28
|
-
|
|
27
|
+
headers: Record<string, string> | null;
|
|
28
|
+
description: string | null;
|
|
29
29
|
tenantId: string;
|
|
30
|
+
projectId: string;
|
|
31
|
+
credentialReferenceId: string | null;
|
|
30
32
|
config: {
|
|
31
33
|
type: "mcp";
|
|
32
34
|
mcp: ToolMcpConfig;
|
|
33
35
|
};
|
|
34
|
-
credentialReferenceId: string | null;
|
|
35
36
|
credentialScope: string;
|
|
36
|
-
headers: Record<string, string> | null;
|
|
37
37
|
imageUrl: string | null;
|
|
38
38
|
capabilities: ToolServerCapabilities | null;
|
|
39
39
|
lastError: string | null;
|
|
@@ -80,18 +80,18 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
80
80
|
declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
|
|
81
81
|
id: string;
|
|
82
82
|
name: string;
|
|
83
|
-
description: string | null;
|
|
84
83
|
createdAt: string;
|
|
85
84
|
updatedAt: string;
|
|
86
|
-
|
|
85
|
+
headers: Record<string, string> | null;
|
|
86
|
+
description: string | null;
|
|
87
87
|
tenantId: string;
|
|
88
|
+
projectId: string;
|
|
89
|
+
credentialReferenceId: string | null;
|
|
88
90
|
config: {
|
|
89
91
|
type: "mcp";
|
|
90
92
|
mcp: ToolMcpConfig;
|
|
91
93
|
};
|
|
92
|
-
credentialReferenceId: string | null;
|
|
93
94
|
credentialScope: string;
|
|
94
|
-
headers: Record<string, string> | null;
|
|
95
95
|
imageUrl: string | null;
|
|
96
96
|
capabilities: ToolServerCapabilities | null;
|
|
97
97
|
lastError: string | null;
|
|
@@ -138,12 +138,12 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
138
138
|
id: string;
|
|
139
139
|
createdAt: string;
|
|
140
140
|
updatedAt: string;
|
|
141
|
-
|
|
141
|
+
headers: Record<string, string> | null;
|
|
142
142
|
tenantId: string;
|
|
143
|
+
projectId: string;
|
|
143
144
|
agentId: string;
|
|
144
145
|
subAgentId: string;
|
|
145
146
|
toolId: string;
|
|
146
|
-
headers: Record<string, string> | null;
|
|
147
147
|
selectedTools: string[] | null;
|
|
148
148
|
toolPolicies: Record<string, {
|
|
149
149
|
needsApproval?: boolean;
|
|
@@ -157,12 +157,12 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
|
|
|
157
157
|
id: string;
|
|
158
158
|
createdAt: string;
|
|
159
159
|
updatedAt: string;
|
|
160
|
-
|
|
160
|
+
headers: Record<string, string> | null;
|
|
161
161
|
tenantId: string;
|
|
162
|
+
projectId: string;
|
|
162
163
|
agentId: string;
|
|
163
164
|
subAgentId: string;
|
|
164
165
|
toolId: string;
|
|
165
|
-
headers: Record<string, string> | null;
|
|
166
166
|
selectedTools: string[] | null;
|
|
167
167
|
toolPolicies: Record<string, {
|
|
168
168
|
needsApproval?: boolean;
|
|
@@ -185,12 +185,12 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
185
185
|
id: string;
|
|
186
186
|
createdAt: string;
|
|
187
187
|
updatedAt: string;
|
|
188
|
-
|
|
188
|
+
headers: Record<string, string> | null;
|
|
189
189
|
tenantId: string;
|
|
190
|
+
projectId: string;
|
|
190
191
|
agentId: string;
|
|
191
192
|
subAgentId: string;
|
|
192
193
|
toolId: string;
|
|
193
|
-
headers: Record<string, string> | null;
|
|
194
194
|
selectedTools: string[] | null;
|
|
195
195
|
toolPolicies: Record<string, {
|
|
196
196
|
needsApproval?: boolean;
|
|
@@ -204,18 +204,18 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
204
204
|
}) => Promise<{
|
|
205
205
|
id: string;
|
|
206
206
|
name: string;
|
|
207
|
-
description: string | null;
|
|
208
207
|
createdAt: string;
|
|
209
208
|
updatedAt: string;
|
|
210
|
-
|
|
209
|
+
headers: Record<string, string> | null;
|
|
210
|
+
description: string | null;
|
|
211
211
|
tenantId: string;
|
|
212
|
+
projectId: string;
|
|
213
|
+
credentialReferenceId: string | null;
|
|
212
214
|
config: {
|
|
213
215
|
type: "mcp";
|
|
214
216
|
mcp: ToolMcpConfig;
|
|
215
217
|
};
|
|
216
|
-
credentialReferenceId: string | null;
|
|
217
218
|
credentialScope: string;
|
|
218
|
-
headers: Record<string, string> | null;
|
|
219
219
|
imageUrl: string | null;
|
|
220
220
|
capabilities: ToolServerCapabilities | null;
|
|
221
221
|
lastError: string | null;
|