@inkeep/agents-core 0.0.0-dev-20260326163133 → 0.0.0-dev-20260326201814
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.d.ts +6 -6
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/client-exports.d.ts +2 -2
- package/dist/client-exports.js +2 -2
- package/dist/data-access/index.d.ts +2 -1
- package/dist/data-access/index.js +2 -1
- package/dist/data-access/manage/agentFull.js +10 -5
- package/dist/data-access/manage/agents.d.ts +37 -31
- package/dist/data-access/manage/agents.js +2 -0
- package/dist/data-access/manage/artifactComponents.d.ts +10 -10
- package/dist/data-access/manage/contextConfigs.d.ts +12 -12
- package/dist/data-access/manage/dataComponents.d.ts +4 -4
- package/dist/data-access/manage/functionTools.d.ts +14 -14
- package/dist/data-access/manage/skills.d.ts +13 -13
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgentRelations.d.ts +30 -30
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgents.d.ts +21 -21
- package/dist/data-access/manage/tools.d.ts +30 -30
- package/dist/data-access/runtime/apiKeys.d.ts +12 -12
- package/dist/data-access/runtime/apps.d.ts +8 -8
- package/dist/data-access/runtime/conversations.d.ts +24 -24
- package/dist/data-access/runtime/messages.d.ts +9 -9
- package/dist/data-access/runtime/tasks.d.ts +4 -4
- package/dist/data-access/runtime/workflowExecutions.d.ts +25 -0
- package/dist/data-access/runtime/workflowExecutions.js +32 -0
- package/dist/db/manage/manage-schema.d.ts +377 -357
- package/dist/db/manage/manage-schema.js +1 -0
- package/dist/db/runtime/runtime-schema.d.ts +496 -303
- package/dist/db/runtime/runtime-schema.js +16 -2
- package/dist/index.d.ts +5 -4
- package/dist/index.js +4 -3
- package/dist/types/entities.d.ts +5 -2
- package/dist/types/index.d.ts +2 -2
- 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.d.ts +2020 -1861
- package/dist/validation/schemas.js +16 -3
- package/drizzle/manage/0013_gorgeous_umar.sql +1 -0
- package/drizzle/manage/meta/0013_snapshot.json +3704 -0
- package/drizzle/manage/meta/_journal.json +7 -0
- package/drizzle/runtime/0026_graceful_scorpion.sql +15 -0
- package/drizzle/runtime/meta/{0025_snapshot.json → 0026_snapshot.json} +114 -1
- package/drizzle/runtime/meta/_journal.json +7 -0
- package/package.json +1 -1
|
@@ -133,7 +133,8 @@ const createFullAgentServerSide = (db, logger = defaultLogger) => async (scopes,
|
|
|
133
133
|
models: typed.models,
|
|
134
134
|
statusUpdates: typed.statusUpdates,
|
|
135
135
|
prompt: typed.prompt,
|
|
136
|
-
stopWhen: typed.stopWhen
|
|
136
|
+
stopWhen: typed.stopWhen,
|
|
137
|
+
executionMode: typed.executionMode
|
|
137
138
|
} });
|
|
138
139
|
if (!agent?.id) throw new Error("Failed to create agent: no ID returned");
|
|
139
140
|
finalAgentId = agent.id;
|
|
@@ -178,7 +179,8 @@ const createFullAgentServerSide = (db, logger = defaultLogger) => async (scopes,
|
|
|
178
179
|
models: typed.models,
|
|
179
180
|
statusUpdates: typed.statusUpdates,
|
|
180
181
|
prompt: typed.prompt,
|
|
181
|
-
stopWhen: typed.stopWhen
|
|
182
|
+
stopWhen: typed.stopWhen,
|
|
183
|
+
executionMode: typed.executionMode
|
|
182
184
|
} });
|
|
183
185
|
logger.info({
|
|
184
186
|
agentId: finalAgentId,
|
|
@@ -716,7 +718,8 @@ const updateFullAgentServerSide = (db, logger = defaultLogger) => async (scopes,
|
|
|
716
718
|
models: typedAgentDefinition.models,
|
|
717
719
|
statusUpdates: typedAgentDefinition.statusUpdates,
|
|
718
720
|
prompt: typedAgentDefinition.prompt,
|
|
719
|
-
stopWhen: typedAgentDefinition.stopWhen
|
|
721
|
+
stopWhen: typedAgentDefinition.stopWhen,
|
|
722
|
+
executionMode: typedAgentDefinition.executionMode
|
|
720
723
|
} });
|
|
721
724
|
if (!agent?.id) throw new Error("Failed to upsert agent: no ID returned");
|
|
722
725
|
finalAgentId = agent.id;
|
|
@@ -761,7 +764,8 @@ const updateFullAgentServerSide = (db, logger = defaultLogger) => async (scopes,
|
|
|
761
764
|
models: typedAgentDefinition.models,
|
|
762
765
|
statusUpdates: typedAgentDefinition.statusUpdates,
|
|
763
766
|
prompt: typedAgentDefinition.prompt,
|
|
764
|
-
stopWhen: typedAgentDefinition.stopWhen
|
|
767
|
+
stopWhen: typedAgentDefinition.stopWhen,
|
|
768
|
+
executionMode: typedAgentDefinition.executionMode
|
|
765
769
|
} });
|
|
766
770
|
logger.info({
|
|
767
771
|
agentId: finalAgentId,
|
|
@@ -1229,7 +1233,8 @@ const updateFullAgentServerSide = (db, logger = defaultLogger) => async (scopes,
|
|
|
1229
1233
|
models: typedAgentDefinition.models,
|
|
1230
1234
|
statusUpdates: typedAgentDefinition.statusUpdates,
|
|
1231
1235
|
prompt: typedAgentDefinition.prompt,
|
|
1232
|
-
stopWhen: typedAgentDefinition.stopWhen
|
|
1236
|
+
stopWhen: typedAgentDefinition.stopWhen,
|
|
1237
|
+
executionMode: typedAgentDefinition.executionMode
|
|
1233
1238
|
}
|
|
1234
1239
|
});
|
|
1235
1240
|
logger.info({ agentId: typedAgentDefinition.id }, "Agent metadata updated");
|
|
@@ -10,13 +10,12 @@ import { PgColumn } from "drizzle-orm/pg-core";
|
|
|
10
10
|
declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
11
11
|
scopes: AgentScopeConfig;
|
|
12
12
|
}) => Promise<{
|
|
13
|
+
tenantId: string;
|
|
13
14
|
id: string;
|
|
14
15
|
name: string;
|
|
16
|
+
createdAt: string;
|
|
17
|
+
updatedAt: string;
|
|
15
18
|
description: string | null;
|
|
16
|
-
defaultSubAgentId: string | null;
|
|
17
|
-
tenantId: string;
|
|
18
|
-
projectId: string;
|
|
19
|
-
prompt: string | null;
|
|
20
19
|
models: {
|
|
21
20
|
base?: {
|
|
22
21
|
model?: string | undefined;
|
|
@@ -34,9 +33,9 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
34
33
|
stopWhen: {
|
|
35
34
|
transferCountIs?: number | undefined;
|
|
36
35
|
} | null;
|
|
37
|
-
|
|
38
|
-
updatedAt: string;
|
|
36
|
+
defaultSubAgentId: string | null;
|
|
39
37
|
contextConfigId: string | null;
|
|
38
|
+
prompt: string | null;
|
|
40
39
|
statusUpdates: {
|
|
41
40
|
enabled?: boolean | undefined;
|
|
42
41
|
numEvents?: number | undefined;
|
|
@@ -52,17 +51,18 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
52
51
|
} | undefined;
|
|
53
52
|
}[] | undefined;
|
|
54
53
|
} | null;
|
|
54
|
+
executionMode: "classic" | "durable";
|
|
55
|
+
projectId: string;
|
|
55
56
|
} | null>;
|
|
56
57
|
declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
57
58
|
scopes: AgentScopeConfig;
|
|
58
59
|
}) => Promise<{
|
|
60
|
+
tenantId: string;
|
|
59
61
|
id: string;
|
|
60
62
|
name: string;
|
|
63
|
+
createdAt: string;
|
|
64
|
+
updatedAt: string;
|
|
61
65
|
description: string | null;
|
|
62
|
-
defaultSubAgentId: string | null;
|
|
63
|
-
tenantId: string;
|
|
64
|
-
projectId: string;
|
|
65
|
-
prompt: string | null;
|
|
66
66
|
models: {
|
|
67
67
|
base?: {
|
|
68
68
|
model?: string | undefined;
|
|
@@ -80,9 +80,9 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
80
80
|
stopWhen: {
|
|
81
81
|
transferCountIs?: number | undefined;
|
|
82
82
|
} | null;
|
|
83
|
-
|
|
84
|
-
updatedAt: string;
|
|
83
|
+
defaultSubAgentId: string | null;
|
|
85
84
|
contextConfigId: string | null;
|
|
85
|
+
prompt: string | null;
|
|
86
86
|
statusUpdates: {
|
|
87
87
|
enabled?: boolean | undefined;
|
|
88
88
|
numEvents?: number | undefined;
|
|
@@ -98,15 +98,15 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
98
98
|
} | undefined;
|
|
99
99
|
}[] | undefined;
|
|
100
100
|
} | null;
|
|
101
|
+
executionMode: "classic" | "durable";
|
|
102
|
+
projectId: string;
|
|
101
103
|
defaultSubAgent: {
|
|
104
|
+
tenantId: string;
|
|
102
105
|
id: string;
|
|
103
106
|
name: string;
|
|
107
|
+
createdAt: string;
|
|
108
|
+
updatedAt: string;
|
|
104
109
|
description: string | null;
|
|
105
|
-
tenantId: string;
|
|
106
|
-
projectId: string;
|
|
107
|
-
agentId: string;
|
|
108
|
-
prompt: string | null;
|
|
109
|
-
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
110
110
|
models: {
|
|
111
111
|
base?: {
|
|
112
112
|
model?: string | undefined;
|
|
@@ -124,20 +124,21 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
124
124
|
stopWhen: {
|
|
125
125
|
stepCountIs?: number | undefined;
|
|
126
126
|
} | null;
|
|
127
|
-
|
|
128
|
-
|
|
127
|
+
prompt: string | null;
|
|
128
|
+
projectId: string;
|
|
129
|
+
agentId: string;
|
|
130
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
129
131
|
} | null;
|
|
130
132
|
} | null>;
|
|
131
133
|
declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
132
134
|
scopes: ProjectScopeConfig;
|
|
133
135
|
}) => Promise<{
|
|
136
|
+
tenantId: string;
|
|
134
137
|
id: string;
|
|
135
138
|
name: string;
|
|
139
|
+
createdAt: string;
|
|
140
|
+
updatedAt: string;
|
|
136
141
|
description: string | null;
|
|
137
|
-
defaultSubAgentId: string | null;
|
|
138
|
-
tenantId: string;
|
|
139
|
-
projectId: string;
|
|
140
|
-
prompt: string | null;
|
|
141
142
|
models: {
|
|
142
143
|
base?: {
|
|
143
144
|
model?: string | undefined;
|
|
@@ -155,9 +156,9 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
155
156
|
stopWhen: {
|
|
156
157
|
transferCountIs?: number | undefined;
|
|
157
158
|
} | null;
|
|
158
|
-
|
|
159
|
-
updatedAt: string;
|
|
159
|
+
defaultSubAgentId: string | null;
|
|
160
160
|
contextConfigId: string | null;
|
|
161
|
+
prompt: string | null;
|
|
161
162
|
statusUpdates: {
|
|
162
163
|
enabled?: boolean | undefined;
|
|
163
164
|
numEvents?: number | undefined;
|
|
@@ -173,6 +174,8 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
173
174
|
} | undefined;
|
|
174
175
|
}[] | undefined;
|
|
175
176
|
} | null;
|
|
177
|
+
executionMode: "classic" | "durable";
|
|
178
|
+
projectId: string;
|
|
176
179
|
}[]>;
|
|
177
180
|
declare const listAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
178
181
|
scopes: ProjectScopeConfig;
|
|
@@ -216,6 +219,7 @@ declare const listAgentsPaginated: (db: AgentsManageDatabaseClient) => (params:
|
|
|
216
219
|
stopWhen: {
|
|
217
220
|
transferCountIs?: number | undefined;
|
|
218
221
|
} | null;
|
|
222
|
+
executionMode: "classic" | "durable";
|
|
219
223
|
name: string;
|
|
220
224
|
description: string | null;
|
|
221
225
|
projectId: string;
|
|
@@ -247,13 +251,12 @@ declare function listAgentsAcrossProjectMainBranches(db: AgentsManageDatabaseCli
|
|
|
247
251
|
projectIds: string[];
|
|
248
252
|
}): Promise<AvailableAgentInfo[]>;
|
|
249
253
|
declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
|
|
254
|
+
tenantId: string;
|
|
250
255
|
id: string;
|
|
251
256
|
name: string;
|
|
257
|
+
createdAt: string;
|
|
258
|
+
updatedAt: string;
|
|
252
259
|
description: string | null;
|
|
253
|
-
defaultSubAgentId: string | null;
|
|
254
|
-
tenantId: string;
|
|
255
|
-
projectId: string;
|
|
256
|
-
prompt: string | null;
|
|
257
260
|
models: {
|
|
258
261
|
base?: {
|
|
259
262
|
model?: string | undefined;
|
|
@@ -271,9 +274,9 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
271
274
|
stopWhen: {
|
|
272
275
|
transferCountIs?: number | undefined;
|
|
273
276
|
} | null;
|
|
274
|
-
|
|
275
|
-
updatedAt: string;
|
|
277
|
+
defaultSubAgentId: string | null;
|
|
276
278
|
contextConfigId: string | null;
|
|
279
|
+
prompt: string | null;
|
|
277
280
|
statusUpdates: {
|
|
278
281
|
enabled?: boolean | undefined;
|
|
279
282
|
numEvents?: number | undefined;
|
|
@@ -289,6 +292,8 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
289
292
|
} | undefined;
|
|
290
293
|
}[] | undefined;
|
|
291
294
|
} | null;
|
|
295
|
+
executionMode: "classic" | "durable";
|
|
296
|
+
projectId: string;
|
|
292
297
|
}>;
|
|
293
298
|
declare const updateAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
294
299
|
scopes: AgentScopeConfig;
|
|
@@ -331,6 +336,7 @@ declare const updateAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
331
336
|
stopWhen: {
|
|
332
337
|
transferCountIs?: number | undefined;
|
|
333
338
|
} | null;
|
|
339
|
+
executionMode: "classic" | "durable";
|
|
334
340
|
name: string;
|
|
335
341
|
description: string | null;
|
|
336
342
|
projectId: string;
|
|
@@ -86,6 +86,7 @@ const createAgent = (db) => async (data) => {
|
|
|
86
86
|
...data,
|
|
87
87
|
createdAt: now,
|
|
88
88
|
updatedAt: now,
|
|
89
|
+
executionMode: data.executionMode ?? "classic",
|
|
89
90
|
...data.description !== void 0 && { description: data.description },
|
|
90
91
|
...data.contextConfigId !== void 0 && { contextConfigId: data.contextConfigId },
|
|
91
92
|
...data.models !== void 0 && { models: data.models },
|
|
@@ -423,6 +424,7 @@ const getFullAgentDefinitionInternal = (db) => async ({ scopes: { tenantId, proj
|
|
|
423
424
|
if (agent.statusUpdates) result.statusUpdates = agent.statusUpdates;
|
|
424
425
|
if (agent.prompt) result.prompt = agent.prompt;
|
|
425
426
|
if (agent.stopWhen) result.stopWhen = agent.stopWhen;
|
|
427
|
+
if (agent.executionMode) result.executionMode = agent.executionMode;
|
|
426
428
|
if (contextConfig) {
|
|
427
429
|
const { id, headersSchema, contextVariables } = contextConfig;
|
|
428
430
|
result.contextConfig = {
|
|
@@ -9,13 +9,13 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
|
|
|
9
9
|
scopes: ProjectScopeConfig;
|
|
10
10
|
id: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
+
tenantId: string;
|
|
12
13
|
id: string;
|
|
13
14
|
name: string;
|
|
14
|
-
description: string | null;
|
|
15
|
-
tenantId: string;
|
|
16
|
-
projectId: string;
|
|
17
15
|
createdAt: string;
|
|
18
16
|
updatedAt: string;
|
|
17
|
+
description: string | null;
|
|
18
|
+
projectId: string;
|
|
19
19
|
props: {
|
|
20
20
|
[x: string]: unknown;
|
|
21
21
|
type: "object";
|
|
@@ -65,13 +65,13 @@ declare const listArtifactComponentsPaginated: (db: AgentsManageDatabaseClient)
|
|
|
65
65
|
};
|
|
66
66
|
}>;
|
|
67
67
|
declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
|
|
68
|
+
tenantId: string;
|
|
68
69
|
id: string;
|
|
69
70
|
name: string;
|
|
70
|
-
description: string | null;
|
|
71
|
-
tenantId: string;
|
|
72
|
-
projectId: string;
|
|
73
71
|
createdAt: string;
|
|
74
72
|
updatedAt: string;
|
|
73
|
+
description: string | null;
|
|
74
|
+
projectId: string;
|
|
75
75
|
props: {
|
|
76
76
|
[x: string]: unknown;
|
|
77
77
|
type: "object";
|
|
@@ -141,11 +141,11 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
|
|
|
141
141
|
scopes: SubAgentScopeConfig;
|
|
142
142
|
artifactComponentId: string;
|
|
143
143
|
}) => Promise<{
|
|
144
|
-
id: string;
|
|
145
144
|
tenantId: string;
|
|
145
|
+
id: string;
|
|
146
|
+
createdAt: string;
|
|
146
147
|
projectId: string;
|
|
147
148
|
agentId: string;
|
|
148
|
-
createdAt: string;
|
|
149
149
|
subAgentId: string;
|
|
150
150
|
artifactComponentId: string;
|
|
151
151
|
}>;
|
|
@@ -184,11 +184,11 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
|
|
|
184
184
|
scopes: SubAgentScopeConfig;
|
|
185
185
|
artifactComponentId: string;
|
|
186
186
|
}) => Promise<{
|
|
187
|
-
id: string;
|
|
188
187
|
tenantId: string;
|
|
188
|
+
id: string;
|
|
189
|
+
createdAt: string;
|
|
189
190
|
projectId: string;
|
|
190
191
|
agentId: string;
|
|
191
|
-
createdAt: string;
|
|
192
192
|
subAgentId: string;
|
|
193
193
|
artifactComponentId: string;
|
|
194
194
|
} | null>;
|
|
@@ -9,26 +9,26 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
9
9
|
scopes: AgentScopeConfig;
|
|
10
10
|
id: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
id: string;
|
|
13
12
|
tenantId: string;
|
|
14
|
-
|
|
15
|
-
agentId: string;
|
|
13
|
+
id: string;
|
|
16
14
|
createdAt: string;
|
|
17
15
|
updatedAt: string;
|
|
16
|
+
projectId: string;
|
|
18
17
|
headersSchema: unknown;
|
|
19
18
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
19
|
+
agentId: string;
|
|
20
20
|
} | undefined>;
|
|
21
21
|
declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
|
|
22
22
|
scopes: AgentScopeConfig;
|
|
23
23
|
}) => Promise<{
|
|
24
|
-
id: string;
|
|
25
24
|
tenantId: string;
|
|
26
|
-
|
|
27
|
-
agentId: string;
|
|
25
|
+
id: string;
|
|
28
26
|
createdAt: string;
|
|
29
27
|
updatedAt: string;
|
|
28
|
+
projectId: string;
|
|
30
29
|
headersSchema: unknown;
|
|
31
30
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
31
|
+
agentId: string;
|
|
32
32
|
}[]>;
|
|
33
33
|
declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
34
34
|
scopes: AgentScopeConfig;
|
|
@@ -43,14 +43,14 @@ declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (
|
|
|
43
43
|
};
|
|
44
44
|
}>;
|
|
45
45
|
declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params: ContextConfigInsert) => Promise<{
|
|
46
|
-
id: string;
|
|
47
46
|
tenantId: string;
|
|
48
|
-
|
|
49
|
-
agentId: string;
|
|
47
|
+
id: string;
|
|
50
48
|
createdAt: string;
|
|
51
49
|
updatedAt: string;
|
|
50
|
+
projectId: string;
|
|
52
51
|
headersSchema: unknown;
|
|
53
52
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
53
|
+
agentId: string;
|
|
54
54
|
}>;
|
|
55
55
|
declare const updateContextConfig: (db: AgentsManageDatabaseClient) => (params: {
|
|
56
56
|
scopes: AgentScopeConfig;
|
|
@@ -83,14 +83,14 @@ declare const countContextConfigs: (db: AgentsManageDatabaseClient) => (params:
|
|
|
83
83
|
declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params: {
|
|
84
84
|
data: ContextConfigInsert;
|
|
85
85
|
}) => Promise<{
|
|
86
|
-
id: string;
|
|
87
86
|
tenantId: string;
|
|
88
|
-
|
|
89
|
-
agentId: string;
|
|
87
|
+
id: string;
|
|
90
88
|
createdAt: string;
|
|
91
89
|
updatedAt: string;
|
|
90
|
+
projectId: string;
|
|
92
91
|
headersSchema: unknown;
|
|
93
92
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
93
|
+
agentId: string;
|
|
94
94
|
}>;
|
|
95
95
|
//#endregion
|
|
96
96
|
export { countContextConfigs, createContextConfig, deleteContextConfig, getContextConfigById, hasContextConfig, listContextConfigs, listContextConfigsPaginated, updateContextConfig, upsertContextConfig };
|
|
@@ -65,11 +65,11 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
|
|
|
65
65
|
scopes: SubAgentScopeConfig;
|
|
66
66
|
dataComponentId: string;
|
|
67
67
|
}) => Promise<{
|
|
68
|
-
id: string;
|
|
69
68
|
tenantId: string;
|
|
69
|
+
id: string;
|
|
70
|
+
createdAt: string;
|
|
70
71
|
projectId: string;
|
|
71
72
|
agentId: string;
|
|
72
|
-
createdAt: string;
|
|
73
73
|
subAgentId: string;
|
|
74
74
|
dataComponentId: string;
|
|
75
75
|
}>;
|
|
@@ -107,11 +107,11 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
|
|
|
107
107
|
scopes: SubAgentScopeConfig;
|
|
108
108
|
dataComponentId: string;
|
|
109
109
|
}) => Promise<{
|
|
110
|
-
id: string;
|
|
111
110
|
tenantId: string;
|
|
111
|
+
id: string;
|
|
112
|
+
createdAt: string;
|
|
112
113
|
projectId: string;
|
|
113
114
|
agentId: string;
|
|
114
|
-
createdAt: string;
|
|
115
115
|
subAgentId: string;
|
|
116
116
|
dataComponentId: string;
|
|
117
117
|
} | null>;
|
|
@@ -53,14 +53,14 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
53
53
|
data: FunctionToolApiInsert;
|
|
54
54
|
scopes: AgentScopeConfig;
|
|
55
55
|
}) => Promise<{
|
|
56
|
+
tenantId: string;
|
|
56
57
|
id: string;
|
|
57
58
|
name: string;
|
|
59
|
+
createdAt: string;
|
|
60
|
+
updatedAt: string;
|
|
58
61
|
description: string | null;
|
|
59
|
-
tenantId: string;
|
|
60
62
|
projectId: string;
|
|
61
63
|
agentId: string;
|
|
62
|
-
createdAt: string;
|
|
63
|
-
updatedAt: string;
|
|
64
64
|
functionId: string;
|
|
65
65
|
}>;
|
|
66
66
|
/**
|
|
@@ -95,14 +95,14 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
95
95
|
data: FunctionToolApiInsert;
|
|
96
96
|
scopes: AgentScopeConfig;
|
|
97
97
|
}) => Promise<{
|
|
98
|
+
tenantId: string;
|
|
98
99
|
id: string;
|
|
99
100
|
name: string;
|
|
101
|
+
createdAt: string;
|
|
102
|
+
updatedAt: string;
|
|
100
103
|
description: string | null;
|
|
101
|
-
tenantId: string;
|
|
102
104
|
projectId: string;
|
|
103
105
|
agentId: string;
|
|
104
|
-
createdAt: string;
|
|
105
|
-
updatedAt: string;
|
|
106
106
|
functionId: string;
|
|
107
107
|
}>;
|
|
108
108
|
declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -157,16 +157,16 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
|
|
|
157
157
|
needsApproval?: boolean;
|
|
158
158
|
}> | null;
|
|
159
159
|
}) => Promise<{
|
|
160
|
-
id: string;
|
|
161
160
|
tenantId: string;
|
|
162
|
-
|
|
163
|
-
agentId: string;
|
|
161
|
+
id: string;
|
|
164
162
|
createdAt: string;
|
|
165
163
|
updatedAt: string;
|
|
164
|
+
projectId: string;
|
|
165
|
+
agentId: string;
|
|
166
|
+
subAgentId: string;
|
|
166
167
|
toolPolicies: Record<string, {
|
|
167
168
|
needsApproval?: boolean;
|
|
168
169
|
}> | null;
|
|
169
|
-
subAgentId: string;
|
|
170
170
|
functionToolId: string;
|
|
171
171
|
}>;
|
|
172
172
|
/**
|
|
@@ -222,16 +222,16 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
|
|
|
222
222
|
needsApproval?: boolean;
|
|
223
223
|
}> | null;
|
|
224
224
|
}) => Promise<{
|
|
225
|
-
id: string;
|
|
226
225
|
tenantId: string;
|
|
227
|
-
|
|
228
|
-
agentId: string;
|
|
226
|
+
id: string;
|
|
229
227
|
createdAt: string;
|
|
230
228
|
updatedAt: string;
|
|
229
|
+
projectId: string;
|
|
230
|
+
agentId: string;
|
|
231
|
+
subAgentId: string;
|
|
231
232
|
toolPolicies: Record<string, {
|
|
232
233
|
needsApproval?: boolean;
|
|
233
234
|
}> | null;
|
|
234
|
-
subAgentId: string;
|
|
235
235
|
functionToolId: string;
|
|
236
236
|
}>;
|
|
237
237
|
//#endregion
|
|
@@ -8,14 +8,14 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
8
8
|
scopes: ProjectScopeConfig;
|
|
9
9
|
skillId: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
+
tenantId: string;
|
|
11
12
|
id: string;
|
|
12
13
|
name: string;
|
|
13
|
-
description: string;
|
|
14
|
-
tenantId: string;
|
|
15
|
-
projectId: string;
|
|
16
14
|
createdAt: string;
|
|
17
15
|
updatedAt: string;
|
|
18
16
|
metadata: Record<string, string> | null;
|
|
17
|
+
description: string;
|
|
18
|
+
projectId: string;
|
|
19
19
|
content: string;
|
|
20
20
|
} | null>;
|
|
21
21
|
declare const listSkills: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -41,25 +41,25 @@ declare const listSkills: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
41
41
|
};
|
|
42
42
|
}>;
|
|
43
43
|
declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
|
|
44
|
+
tenantId: string;
|
|
44
45
|
id: string;
|
|
45
46
|
name: string;
|
|
46
|
-
description: string;
|
|
47
|
-
tenantId: string;
|
|
48
|
-
projectId: string;
|
|
49
47
|
createdAt: string;
|
|
50
48
|
updatedAt: string;
|
|
51
49
|
metadata: Record<string, string> | null;
|
|
50
|
+
description: string;
|
|
51
|
+
projectId: string;
|
|
52
52
|
content: string;
|
|
53
53
|
}>;
|
|
54
54
|
declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
|
|
55
|
+
tenantId: string;
|
|
55
56
|
id: string;
|
|
56
57
|
name: string;
|
|
57
|
-
description: string;
|
|
58
|
-
tenantId: string;
|
|
59
|
-
projectId: string;
|
|
60
58
|
createdAt: string;
|
|
61
59
|
updatedAt: string;
|
|
62
60
|
metadata: Record<string, string> | null;
|
|
61
|
+
description: string;
|
|
62
|
+
projectId: string;
|
|
63
63
|
content: string;
|
|
64
64
|
}>;
|
|
65
65
|
declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -91,16 +91,16 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
|
|
|
91
91
|
index: number;
|
|
92
92
|
alwaysLoaded?: boolean;
|
|
93
93
|
}) => Promise<{
|
|
94
|
-
id: string;
|
|
95
94
|
tenantId: string;
|
|
96
|
-
|
|
97
|
-
agentId: string;
|
|
95
|
+
id: string;
|
|
98
96
|
createdAt: string;
|
|
99
97
|
updatedAt: string;
|
|
98
|
+
projectId: string;
|
|
99
|
+
agentId: string;
|
|
100
|
+
skillId: string;
|
|
100
101
|
index: number;
|
|
101
102
|
alwaysLoaded: boolean;
|
|
102
103
|
subAgentId: string;
|
|
103
|
-
skillId: string;
|
|
104
104
|
}>;
|
|
105
105
|
declare const deleteSubAgentSkill: (db: AgentsManageDatabaseClient) => (params: {
|
|
106
106
|
scopes: AgentScopeConfig;
|
|
@@ -9,15 +9,15 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
|
|
|
9
9
|
scopes: SubAgentScopeConfig;
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
id: string;
|
|
13
12
|
tenantId: string;
|
|
14
|
-
|
|
15
|
-
agentId: string;
|
|
13
|
+
id: string;
|
|
16
14
|
createdAt: string;
|
|
17
15
|
updatedAt: string;
|
|
18
16
|
headers: Record<string, string> | null;
|
|
19
|
-
|
|
17
|
+
projectId: string;
|
|
18
|
+
agentId: string;
|
|
20
19
|
subAgentId: string;
|
|
20
|
+
externalAgentId: string;
|
|
21
21
|
} | undefined>;
|
|
22
22
|
declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
23
23
|
scopes: SubAgentScopeConfig;
|
|
@@ -44,28 +44,28 @@ declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClien
|
|
|
44
44
|
declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
|
-
id: string;
|
|
48
47
|
tenantId: string;
|
|
49
|
-
|
|
50
|
-
agentId: string;
|
|
48
|
+
id: string;
|
|
51
49
|
createdAt: string;
|
|
52
50
|
updatedAt: string;
|
|
53
51
|
headers: Record<string, string> | null;
|
|
54
|
-
|
|
52
|
+
projectId: string;
|
|
53
|
+
agentId: string;
|
|
55
54
|
subAgentId: string;
|
|
55
|
+
externalAgentId: string;
|
|
56
56
|
}[]>;
|
|
57
57
|
declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
|
-
id: string;
|
|
61
60
|
tenantId: string;
|
|
62
|
-
|
|
63
|
-
agentId: string;
|
|
61
|
+
id: string;
|
|
64
62
|
createdAt: string;
|
|
65
63
|
updatedAt: string;
|
|
66
64
|
headers: Record<string, string> | null;
|
|
67
|
-
|
|
65
|
+
projectId: string;
|
|
66
|
+
agentId: string;
|
|
68
67
|
subAgentId: string;
|
|
68
|
+
externalAgentId: string;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
71
71
|
scopes: AgentScopeConfig;
|
|
@@ -180,15 +180,15 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
180
180
|
headers?: Record<string, string> | null;
|
|
181
181
|
};
|
|
182
182
|
}) => Promise<{
|
|
183
|
-
id: string;
|
|
184
183
|
tenantId: string;
|
|
185
|
-
|
|
186
|
-
agentId: string;
|
|
184
|
+
id: string;
|
|
187
185
|
createdAt: string;
|
|
188
186
|
updatedAt: string;
|
|
189
187
|
headers: Record<string, string> | null;
|
|
190
|
-
|
|
188
|
+
projectId: string;
|
|
189
|
+
agentId: string;
|
|
191
190
|
subAgentId: string;
|
|
191
|
+
externalAgentId: string;
|
|
192
192
|
}>;
|
|
193
193
|
/**
|
|
194
194
|
* Check if sub-agent external agent relation exists by params
|
|
@@ -197,15 +197,15 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
|
|
|
197
197
|
scopes: SubAgentScopeConfig;
|
|
198
198
|
externalAgentId: string;
|
|
199
199
|
}) => Promise<{
|
|
200
|
-
id: string;
|
|
201
200
|
tenantId: string;
|
|
202
|
-
|
|
203
|
-
agentId: string;
|
|
201
|
+
id: string;
|
|
204
202
|
createdAt: string;
|
|
205
203
|
updatedAt: string;
|
|
206
204
|
headers: Record<string, string> | null;
|
|
207
|
-
|
|
205
|
+
projectId: string;
|
|
206
|
+
agentId: string;
|
|
208
207
|
subAgentId: string;
|
|
208
|
+
externalAgentId: string;
|
|
209
209
|
} | undefined>;
|
|
210
210
|
/**
|
|
211
211
|
* Upsert sub-agent external agent relation (create if it doesn't exist, update if it does)
|
|
@@ -218,15 +218,15 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
218
218
|
headers?: Record<string, string> | null;
|
|
219
219
|
};
|
|
220
220
|
}) => Promise<{
|
|
221
|
-
id: string;
|
|
222
221
|
tenantId: string;
|
|
223
|
-
|
|
224
|
-
agentId: string;
|
|
222
|
+
id: string;
|
|
225
223
|
createdAt: string;
|
|
226
224
|
updatedAt: string;
|
|
227
225
|
headers: Record<string, string> | null;
|
|
228
|
-
|
|
226
|
+
projectId: string;
|
|
227
|
+
agentId: string;
|
|
229
228
|
subAgentId: string;
|
|
229
|
+
externalAgentId: string;
|
|
230
230
|
}>;
|
|
231
231
|
declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
232
232
|
scopes: SubAgentScopeConfig;
|