@inkeep/agents-core 0.63.3 → 0.64.1
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.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 +9 -9
- 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 +83 -41
- package/dist/data-access/manage/artifactComponents.d.ts +8 -8
- package/dist/data-access/manage/contextConfigs.d.ts +8 -8
- package/dist/data-access/manage/dataComponents.d.ts +4 -4
- 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 +10 -10
- package/dist/data-access/manage/projectLifecycle.d.ts +1 -1
- package/dist/data-access/manage/skills.d.ts +12 -12
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -18
- package/dist/data-access/manage/subAgentRelations.d.ts +32 -26
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +30 -18
- package/dist/data-access/manage/subAgents.d.ts +51 -15
- package/dist/data-access/manage/tools.d.ts +21 -21
- package/dist/data-access/manage/tools.js +41 -4
- package/dist/data-access/runtime/apiKeys.d.ts +12 -12
- package/dist/data-access/runtime/apps.d.ts +40 -49
- package/dist/data-access/runtime/cascade-delete.d.ts +1 -1
- package/dist/data-access/runtime/conversations.d.ts +25 -25
- 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 +7 -7
- 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 +674 -596
- 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 +5 -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/index.d.ts +2 -2
- package/dist/validation/index.js +2 -2
- package/dist/validation/schemas/skills.d.ts +45 -45
- package/dist/validation/schemas.d.ts +3504 -2569
- 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
|
@@ -15,15 +15,15 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
15
15
|
scopes: ProjectScopeConfig;
|
|
16
16
|
skillId: string;
|
|
17
17
|
}) => Promise<{
|
|
18
|
+
tenantId: string;
|
|
19
|
+
projectId: string;
|
|
18
20
|
id: string;
|
|
19
21
|
name: string;
|
|
20
22
|
description: string;
|
|
21
|
-
content: string;
|
|
22
|
-
metadata: Record<string, string> | null;
|
|
23
23
|
createdAt: string;
|
|
24
24
|
updatedAt: string;
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
metadata: Record<string, string> | null;
|
|
26
|
+
content: string;
|
|
27
27
|
} | null>;
|
|
28
28
|
declare const getSkillByIdWithFiles: (db: AgentsManageDatabaseClient) => (params: {
|
|
29
29
|
scopes: ProjectScopeConfig;
|
|
@@ -110,15 +110,15 @@ interface WithTenantIdProjectId {
|
|
|
110
110
|
}
|
|
111
111
|
declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillApiInsert & WithTenantIdProjectId) => Promise<SkillRecordWithFiles>;
|
|
112
112
|
declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillApiInsert & WithTenantIdProjectId) => Promise<{
|
|
113
|
+
tenantId: string;
|
|
114
|
+
projectId: string;
|
|
113
115
|
id: string;
|
|
114
116
|
name: string;
|
|
115
117
|
description: string;
|
|
116
|
-
content: string;
|
|
117
|
-
metadata: Record<string, string> | null;
|
|
118
118
|
createdAt: string;
|
|
119
119
|
updatedAt: string;
|
|
120
|
-
|
|
121
|
-
|
|
120
|
+
metadata: Record<string, string> | null;
|
|
121
|
+
content: string;
|
|
122
122
|
}>;
|
|
123
123
|
declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
|
|
124
124
|
scopes: ProjectScopeConfig;
|
|
@@ -139,16 +139,16 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
|
|
|
139
139
|
index: number;
|
|
140
140
|
alwaysLoaded?: boolean;
|
|
141
141
|
}) => Promise<{
|
|
142
|
+
tenantId: string;
|
|
143
|
+
projectId: string;
|
|
142
144
|
id: string;
|
|
143
145
|
createdAt: string;
|
|
144
146
|
updatedAt: string;
|
|
145
|
-
projectId: string;
|
|
146
|
-
tenantId: string;
|
|
147
147
|
agentId: string;
|
|
148
|
-
subAgentId: string;
|
|
149
|
-
skillId: string;
|
|
150
148
|
index: number;
|
|
151
149
|
alwaysLoaded: boolean;
|
|
150
|
+
subAgentId: string;
|
|
151
|
+
skillId: string;
|
|
152
152
|
}>;
|
|
153
153
|
declare const deleteSubAgentSkill: (db: AgentsManageDatabaseClient) => (params: {
|
|
154
154
|
scopes: AgentScopeConfig;
|
|
@@ -9,15 +9,15 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
|
|
|
9
9
|
scopes: SubAgentScopeConfig;
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
+
tenantId: string;
|
|
13
|
+
projectId: string;
|
|
12
14
|
id: string;
|
|
13
15
|
createdAt: string;
|
|
14
16
|
updatedAt: string;
|
|
15
|
-
projectId: string;
|
|
16
|
-
tenantId: string;
|
|
17
17
|
agentId: string;
|
|
18
|
-
subAgentId: string;
|
|
19
18
|
headers: Record<string, string> | null;
|
|
20
19
|
externalAgentId: string;
|
|
20
|
+
subAgentId: 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
|
+
tenantId: string;
|
|
48
|
+
projectId: string;
|
|
47
49
|
id: string;
|
|
48
50
|
createdAt: string;
|
|
49
51
|
updatedAt: string;
|
|
50
|
-
projectId: string;
|
|
51
|
-
tenantId: string;
|
|
52
52
|
agentId: string;
|
|
53
|
-
subAgentId: string;
|
|
54
53
|
headers: Record<string, string> | null;
|
|
55
54
|
externalAgentId: string;
|
|
55
|
+
subAgentId: string;
|
|
56
56
|
}[]>;
|
|
57
57
|
declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
|
+
tenantId: string;
|
|
61
|
+
projectId: string;
|
|
60
62
|
id: string;
|
|
61
63
|
createdAt: string;
|
|
62
64
|
updatedAt: string;
|
|
63
|
-
projectId: string;
|
|
64
|
-
tenantId: string;
|
|
65
65
|
agentId: string;
|
|
66
|
-
subAgentId: string;
|
|
67
66
|
headers: Record<string, string> | null;
|
|
68
67
|
externalAgentId: string;
|
|
68
|
+
subAgentId: string;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
71
71
|
scopes: AgentScopeConfig;
|
|
@@ -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: {
|
|
@@ -180,15 +186,15 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
180
186
|
headers?: Record<string, string> | null;
|
|
181
187
|
};
|
|
182
188
|
}) => Promise<{
|
|
189
|
+
tenantId: string;
|
|
190
|
+
projectId: string;
|
|
183
191
|
id: string;
|
|
184
192
|
createdAt: string;
|
|
185
193
|
updatedAt: string;
|
|
186
|
-
projectId: string;
|
|
187
|
-
tenantId: string;
|
|
188
194
|
agentId: string;
|
|
189
|
-
subAgentId: string;
|
|
190
195
|
headers: Record<string, string> | null;
|
|
191
196
|
externalAgentId: string;
|
|
197
|
+
subAgentId: string;
|
|
192
198
|
}>;
|
|
193
199
|
/**
|
|
194
200
|
* Check if sub-agent external agent relation exists by params
|
|
@@ -197,15 +203,15 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
|
|
|
197
203
|
scopes: SubAgentScopeConfig;
|
|
198
204
|
externalAgentId: string;
|
|
199
205
|
}) => Promise<{
|
|
206
|
+
tenantId: string;
|
|
207
|
+
projectId: string;
|
|
200
208
|
id: string;
|
|
201
209
|
createdAt: string;
|
|
202
210
|
updatedAt: string;
|
|
203
|
-
projectId: string;
|
|
204
|
-
tenantId: string;
|
|
205
211
|
agentId: string;
|
|
206
|
-
subAgentId: string;
|
|
207
212
|
headers: Record<string, string> | null;
|
|
208
213
|
externalAgentId: string;
|
|
214
|
+
subAgentId: string;
|
|
209
215
|
} | undefined>;
|
|
210
216
|
/**
|
|
211
217
|
* Upsert sub-agent external agent relation (create if it doesn't exist, update if it does)
|
|
@@ -218,15 +224,15 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
218
224
|
headers?: Record<string, string> | null;
|
|
219
225
|
};
|
|
220
226
|
}) => Promise<{
|
|
227
|
+
tenantId: string;
|
|
228
|
+
projectId: string;
|
|
221
229
|
id: string;
|
|
222
230
|
createdAt: string;
|
|
223
231
|
updatedAt: string;
|
|
224
|
-
projectId: string;
|
|
225
|
-
tenantId: string;
|
|
226
232
|
agentId: string;
|
|
227
|
-
subAgentId: string;
|
|
228
233
|
headers: Record<string, string> | null;
|
|
229
234
|
externalAgentId: string;
|
|
235
|
+
subAgentId: string;
|
|
230
236
|
}>;
|
|
231
237
|
declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
232
238
|
scopes: SubAgentScopeConfig;
|
|
@@ -9,15 +9,15 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
9
9
|
scopes: AgentScopeConfig;
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
+
tenantId: string;
|
|
13
|
+
projectId: string;
|
|
12
14
|
id: string;
|
|
13
15
|
createdAt: string;
|
|
14
16
|
updatedAt: string;
|
|
15
|
-
projectId: string;
|
|
16
|
-
tenantId: 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;
|
|
@@ -44,28 +44,28 @@ declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
44
44
|
declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
|
+
tenantId: string;
|
|
48
|
+
projectId: string;
|
|
47
49
|
id: string;
|
|
48
50
|
createdAt: string;
|
|
49
51
|
updatedAt: string;
|
|
50
|
-
projectId: string;
|
|
51
|
-
tenantId: 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;
|
|
59
59
|
}) => Promise<{
|
|
60
|
+
tenantId: string;
|
|
61
|
+
projectId: string;
|
|
60
62
|
id: string;
|
|
61
63
|
createdAt: string;
|
|
62
64
|
updatedAt: string;
|
|
63
|
-
projectId: string;
|
|
64
|
-
tenantId: 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;
|
|
@@ -126,15 +126,15 @@ declare const getRelatedAgentsForAgent: (db: AgentsManageDatabaseClient) => (par
|
|
|
126
126
|
}[];
|
|
127
127
|
}>;
|
|
128
128
|
declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
129
|
+
tenantId: string;
|
|
130
|
+
projectId: string;
|
|
129
131
|
id: string;
|
|
130
132
|
createdAt: string;
|
|
131
133
|
updatedAt: string;
|
|
132
|
-
projectId: string;
|
|
133
|
-
tenantId: 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
|
|
@@ -145,29 +145,29 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
145
145
|
targetSubAgentId?: string;
|
|
146
146
|
relationType: string;
|
|
147
147
|
}) => Promise<{
|
|
148
|
+
tenantId: string;
|
|
149
|
+
projectId: string;
|
|
148
150
|
id: string;
|
|
149
151
|
createdAt: string;
|
|
150
152
|
updatedAt: string;
|
|
151
|
-
projectId: string;
|
|
152
|
-
tenantId: 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)
|
|
160
160
|
*/
|
|
161
161
|
declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
162
|
+
tenantId: string;
|
|
163
|
+
projectId: string;
|
|
162
164
|
id: string;
|
|
163
165
|
createdAt: string;
|
|
164
166
|
updatedAt: string;
|
|
165
|
-
projectId: string;
|
|
166
|
-
tenantId: 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;
|
|
@@ -204,19 +204,19 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
204
204
|
}> | null;
|
|
205
205
|
};
|
|
206
206
|
}) => Promise<{
|
|
207
|
+
tenantId: string;
|
|
208
|
+
projectId: string;
|
|
207
209
|
id: string;
|
|
208
210
|
createdAt: string;
|
|
209
211
|
updatedAt: string;
|
|
210
|
-
projectId: string;
|
|
211
|
-
tenantId: string;
|
|
212
212
|
agentId: string;
|
|
213
|
-
subAgentId: string;
|
|
214
213
|
toolId: string;
|
|
215
214
|
headers: Record<string, string> | null;
|
|
216
|
-
selectedTools: string[] | null;
|
|
217
215
|
toolPolicies: Record<string, {
|
|
218
216
|
needsApproval?: boolean;
|
|
219
217
|
}> | null;
|
|
218
|
+
subAgentId: string;
|
|
219
|
+
selectedTools: string[] | null;
|
|
220
220
|
}>;
|
|
221
221
|
declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
222
222
|
scopes: AgentScopeConfig;
|
|
@@ -248,19 +248,19 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
|
|
|
248
248
|
scopes: SubAgentScopeConfig;
|
|
249
249
|
relationId: string;
|
|
250
250
|
}) => Promise<{
|
|
251
|
+
tenantId: string;
|
|
252
|
+
projectId: string;
|
|
251
253
|
id: string;
|
|
252
254
|
createdAt: string;
|
|
253
255
|
updatedAt: string;
|
|
254
|
-
projectId: string;
|
|
255
|
-
tenantId: string;
|
|
256
256
|
agentId: string;
|
|
257
|
-
subAgentId: string;
|
|
258
257
|
toolId: string;
|
|
259
258
|
headers: Record<string, string> | null;
|
|
260
|
-
selectedTools: string[] | null;
|
|
261
259
|
toolPolicies: Record<string, {
|
|
262
260
|
needsApproval?: boolean;
|
|
263
261
|
}> | null;
|
|
262
|
+
subAgentId: string;
|
|
263
|
+
selectedTools: string[] | null;
|
|
264
264
|
} | undefined>;
|
|
265
265
|
declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
266
266
|
scopes: SubAgentScopeConfig;
|
|
@@ -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: {
|
|
@@ -9,14 +9,14 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
9
9
|
scopes: SubAgentScopeConfig;
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
+
tenantId: string;
|
|
13
|
+
projectId: string;
|
|
12
14
|
id: string;
|
|
13
15
|
createdAt: string;
|
|
14
16
|
updatedAt: string;
|
|
15
|
-
projectId: string;
|
|
16
|
-
tenantId: string;
|
|
17
17
|
agentId: string;
|
|
18
|
-
subAgentId: string;
|
|
19
18
|
headers: Record<string, string> | null;
|
|
19
|
+
subAgentId: string;
|
|
20
20
|
targetAgentId: string;
|
|
21
21
|
} | undefined>;
|
|
22
22
|
declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -44,27 +44,27 @@ declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =
|
|
|
44
44
|
declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
|
+
tenantId: string;
|
|
48
|
+
projectId: string;
|
|
47
49
|
id: string;
|
|
48
50
|
createdAt: string;
|
|
49
51
|
updatedAt: string;
|
|
50
|
-
projectId: string;
|
|
51
|
-
tenantId: string;
|
|
52
52
|
agentId: string;
|
|
53
|
-
subAgentId: string;
|
|
54
53
|
headers: Record<string, string> | null;
|
|
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
|
+
tenantId: string;
|
|
61
|
+
projectId: string;
|
|
60
62
|
id: string;
|
|
61
63
|
createdAt: string;
|
|
62
64
|
updatedAt: string;
|
|
63
|
-
projectId: string;
|
|
64
|
-
tenantId: string;
|
|
65
65
|
agentId: string;
|
|
66
|
-
subAgentId: string;
|
|
67
66
|
headers: Record<string, string> | null;
|
|
67
|
+
subAgentId: string;
|
|
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: {
|
|
@@ -210,14 +222,14 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
210
222
|
headers?: Record<string, string> | null;
|
|
211
223
|
};
|
|
212
224
|
}) => Promise<{
|
|
225
|
+
tenantId: string;
|
|
226
|
+
projectId: string;
|
|
213
227
|
id: string;
|
|
214
228
|
createdAt: string;
|
|
215
229
|
updatedAt: string;
|
|
216
|
-
projectId: string;
|
|
217
|
-
tenantId: string;
|
|
218
230
|
agentId: string;
|
|
219
|
-
subAgentId: string;
|
|
220
231
|
headers: Record<string, string> | null;
|
|
232
|
+
subAgentId: string;
|
|
221
233
|
targetAgentId: string;
|
|
222
234
|
}>;
|
|
223
235
|
/**
|
|
@@ -227,14 +239,14 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
|
|
|
227
239
|
scopes: SubAgentScopeConfig;
|
|
228
240
|
targetAgentId: string;
|
|
229
241
|
}) => Promise<{
|
|
242
|
+
tenantId: string;
|
|
243
|
+
projectId: string;
|
|
230
244
|
id: string;
|
|
231
245
|
createdAt: string;
|
|
232
246
|
updatedAt: string;
|
|
233
|
-
projectId: string;
|
|
234
|
-
tenantId: string;
|
|
235
247
|
agentId: string;
|
|
236
|
-
subAgentId: string;
|
|
237
248
|
headers: Record<string, string> | null;
|
|
249
|
+
subAgentId: string;
|
|
238
250
|
targetAgentId: string;
|
|
239
251
|
} | undefined>;
|
|
240
252
|
/**
|
|
@@ -248,14 +260,14 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
248
260
|
headers?: Record<string, string> | null;
|
|
249
261
|
};
|
|
250
262
|
}) => Promise<{
|
|
263
|
+
tenantId: string;
|
|
264
|
+
projectId: string;
|
|
251
265
|
id: string;
|
|
252
266
|
createdAt: string;
|
|
253
267
|
updatedAt: string;
|
|
254
|
-
projectId: string;
|
|
255
|
-
tenantId: string;
|
|
256
268
|
agentId: string;
|
|
257
|
-
subAgentId: string;
|
|
258
269
|
headers: Record<string, string> | null;
|
|
270
|
+
subAgentId: string;
|
|
259
271
|
targetAgentId: string;
|
|
260
272
|
}>;
|
|
261
273
|
declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -9,63 +9,75 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
9
9
|
scopes: AgentScopeConfig;
|
|
10
10
|
subAgentId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
+
tenantId: string;
|
|
13
|
+
projectId: string;
|
|
12
14
|
id: string;
|
|
13
15
|
name: string;
|
|
14
16
|
description: string | null;
|
|
15
|
-
createdAt: string;
|
|
16
|
-
updatedAt: string;
|
|
17
|
-
projectId: string;
|
|
18
|
-
tenantId: string;
|
|
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;
|
|
37
|
+
prompt: string | null;
|
|
33
38
|
stopWhen: {
|
|
34
39
|
stepCountIs?: number | undefined;
|
|
35
40
|
} | null;
|
|
41
|
+
createdAt: string;
|
|
42
|
+
updatedAt: string;
|
|
36
43
|
agentId: string;
|
|
37
|
-
prompt: string | null;
|
|
38
44
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
39
45
|
} | undefined>;
|
|
40
46
|
declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
41
47
|
scopes: AgentScopeConfig;
|
|
42
48
|
}) => Promise<{
|
|
49
|
+
tenantId: string;
|
|
50
|
+
projectId: string;
|
|
43
51
|
id: string;
|
|
44
52
|
name: string;
|
|
45
53
|
description: string | null;
|
|
46
|
-
createdAt: string;
|
|
47
|
-
updatedAt: string;
|
|
48
|
-
projectId: string;
|
|
49
|
-
tenantId: string;
|
|
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;
|
|
74
|
+
prompt: string | null;
|
|
64
75
|
stopWhen: {
|
|
65
76
|
stepCountIs?: number | undefined;
|
|
66
77
|
} | null;
|
|
78
|
+
createdAt: string;
|
|
79
|
+
updatedAt: string;
|
|
67
80
|
agentId: string;
|
|
68
|
-
prompt: string | null;
|
|
69
81
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
70
82
|
}[]>;
|
|
71
83
|
declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -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: {
|
|
@@ -109,32 +127,38 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
|
|
|
109
127
|
};
|
|
110
128
|
}>;
|
|
111
129
|
declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
130
|
+
tenantId: string;
|
|
131
|
+
projectId: string;
|
|
112
132
|
id: string;
|
|
113
133
|
name: string;
|
|
114
134
|
description: string | null;
|
|
115
|
-
createdAt: string;
|
|
116
|
-
updatedAt: string;
|
|
117
|
-
projectId: string;
|
|
118
|
-
tenantId: string;
|
|
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;
|
|
155
|
+
prompt: string | null;
|
|
133
156
|
stopWhen: {
|
|
134
157
|
stepCountIs?: number | undefined;
|
|
135
158
|
} | null;
|
|
159
|
+
createdAt: string;
|
|
160
|
+
updatedAt: string;
|
|
136
161
|
agentId: string;
|
|
137
|
-
prompt: string | null;
|
|
138
162
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
139
163
|
}>;
|
|
140
164
|
declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -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: {
|