@inkeep/agents-core 0.68.0 → 0.68.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/data-access/manage/agents.d.ts +31 -31
- package/dist/data-access/manage/artifactComponents.d.ts +2 -2
- 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/functionTools.d.ts +4 -4
- package/dist/data-access/manage/skills.d.ts +5 -5
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +6 -6
- package/dist/data-access/manage/subAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +6 -6
- package/dist/data-access/manage/subAgents.d.ts +9 -9
- package/dist/data-access/manage/tools.d.ts +12 -12
- package/dist/data-access/manage/triggers.d.ts +1 -1
- package/dist/data-access/runtime/apiKeys.d.ts +8 -8
- package/dist/data-access/runtime/apps.d.ts +8 -8
- package/dist/data-access/runtime/conversations.d.ts +8 -8
- package/dist/data-access/runtime/feedback.d.ts +4 -4
- package/dist/data-access/runtime/messages.d.ts +12 -12
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +4 -4
- package/dist/data-access/runtime/tasks.d.ts +1 -1
- package/dist/db/manage/manage-schema.d.ts +358 -358
- package/dist/db/runtime/runtime-schema.d.ts +375 -375
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas/skills.d.ts +28 -28
- package/dist/validation/schemas.d.ts +1830 -1830
- package/package.json +1 -1
|
@@ -16,10 +16,6 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
16
16
|
updatedAt: string;
|
|
17
17
|
description: string | null;
|
|
18
18
|
prompt: string | null;
|
|
19
|
-
tenantId: string;
|
|
20
|
-
projectId: string;
|
|
21
|
-
defaultSubAgentId: string | null;
|
|
22
|
-
contextConfigId: string | null;
|
|
23
19
|
models: {
|
|
24
20
|
base?: {
|
|
25
21
|
model?: string | undefined;
|
|
@@ -40,6 +36,12 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
40
36
|
allowedProviders?: string[] | undefined;
|
|
41
37
|
} | undefined;
|
|
42
38
|
} | null;
|
|
39
|
+
stopWhen: {
|
|
40
|
+
transferCountIs?: number | undefined;
|
|
41
|
+
} | null;
|
|
42
|
+
tenantId: string;
|
|
43
|
+
defaultSubAgentId: string | null;
|
|
44
|
+
contextConfigId: string | null;
|
|
43
45
|
statusUpdates: {
|
|
44
46
|
enabled?: boolean | undefined;
|
|
45
47
|
numEvents?: number | undefined;
|
|
@@ -55,10 +57,8 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
55
57
|
} | undefined;
|
|
56
58
|
}[] | undefined;
|
|
57
59
|
} | null;
|
|
58
|
-
stopWhen: {
|
|
59
|
-
transferCountIs?: number | undefined;
|
|
60
|
-
} | null;
|
|
61
60
|
executionMode: "classic" | "durable";
|
|
61
|
+
projectId: string;
|
|
62
62
|
} | null>;
|
|
63
63
|
declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
64
64
|
scopes: AgentScopeConfig;
|
|
@@ -69,10 +69,6 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
69
69
|
updatedAt: string;
|
|
70
70
|
description: string | null;
|
|
71
71
|
prompt: string | null;
|
|
72
|
-
tenantId: string;
|
|
73
|
-
projectId: string;
|
|
74
|
-
defaultSubAgentId: string | null;
|
|
75
|
-
contextConfigId: string | null;
|
|
76
72
|
models: {
|
|
77
73
|
base?: {
|
|
78
74
|
model?: string | undefined;
|
|
@@ -93,6 +89,12 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
93
89
|
allowedProviders?: string[] | undefined;
|
|
94
90
|
} | undefined;
|
|
95
91
|
} | null;
|
|
92
|
+
stopWhen: {
|
|
93
|
+
transferCountIs?: number | undefined;
|
|
94
|
+
} | null;
|
|
95
|
+
tenantId: string;
|
|
96
|
+
defaultSubAgentId: string | null;
|
|
97
|
+
contextConfigId: string | null;
|
|
96
98
|
statusUpdates: {
|
|
97
99
|
enabled?: boolean | undefined;
|
|
98
100
|
numEvents?: number | undefined;
|
|
@@ -108,10 +110,8 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
108
110
|
} | undefined;
|
|
109
111
|
}[] | undefined;
|
|
110
112
|
} | null;
|
|
111
|
-
stopWhen: {
|
|
112
|
-
transferCountIs?: number | undefined;
|
|
113
|
-
} | null;
|
|
114
113
|
executionMode: "classic" | "durable";
|
|
114
|
+
projectId: string;
|
|
115
115
|
defaultSubAgent: {
|
|
116
116
|
id: string;
|
|
117
117
|
name: string;
|
|
@@ -119,9 +119,6 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
119
119
|
updatedAt: string;
|
|
120
120
|
description: string | null;
|
|
121
121
|
prompt: string | null;
|
|
122
|
-
tenantId: string;
|
|
123
|
-
agentId: string;
|
|
124
|
-
projectId: string;
|
|
125
122
|
models: {
|
|
126
123
|
base?: {
|
|
127
124
|
model?: string | undefined;
|
|
@@ -145,6 +142,9 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
145
142
|
stopWhen: {
|
|
146
143
|
stepCountIs?: number | undefined;
|
|
147
144
|
} | null;
|
|
145
|
+
tenantId: string;
|
|
146
|
+
projectId: string;
|
|
147
|
+
agentId: string;
|
|
148
148
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
149
149
|
} | null;
|
|
150
150
|
} | null>;
|
|
@@ -157,10 +157,6 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
157
157
|
updatedAt: string;
|
|
158
158
|
description: string | null;
|
|
159
159
|
prompt: string | null;
|
|
160
|
-
tenantId: string;
|
|
161
|
-
projectId: string;
|
|
162
|
-
defaultSubAgentId: string | null;
|
|
163
|
-
contextConfigId: string | null;
|
|
164
160
|
models: {
|
|
165
161
|
base?: {
|
|
166
162
|
model?: string | undefined;
|
|
@@ -181,6 +177,12 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
181
177
|
allowedProviders?: string[] | undefined;
|
|
182
178
|
} | undefined;
|
|
183
179
|
} | null;
|
|
180
|
+
stopWhen: {
|
|
181
|
+
transferCountIs?: number | undefined;
|
|
182
|
+
} | null;
|
|
183
|
+
tenantId: string;
|
|
184
|
+
defaultSubAgentId: string | null;
|
|
185
|
+
contextConfigId: string | null;
|
|
184
186
|
statusUpdates: {
|
|
185
187
|
enabled?: boolean | undefined;
|
|
186
188
|
numEvents?: number | undefined;
|
|
@@ -196,10 +198,8 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
196
198
|
} | undefined;
|
|
197
199
|
}[] | undefined;
|
|
198
200
|
} | null;
|
|
199
|
-
stopWhen: {
|
|
200
|
-
transferCountIs?: number | undefined;
|
|
201
|
-
} | null;
|
|
202
201
|
executionMode: "classic" | "durable";
|
|
202
|
+
projectId: string;
|
|
203
203
|
}[]>;
|
|
204
204
|
declare const listAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
205
205
|
scopes: ProjectScopeConfig;
|
|
@@ -287,10 +287,6 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
287
287
|
updatedAt: string;
|
|
288
288
|
description: string | null;
|
|
289
289
|
prompt: string | null;
|
|
290
|
-
tenantId: string;
|
|
291
|
-
projectId: string;
|
|
292
|
-
defaultSubAgentId: string | null;
|
|
293
|
-
contextConfigId: string | null;
|
|
294
290
|
models: {
|
|
295
291
|
base?: {
|
|
296
292
|
model?: string | undefined;
|
|
@@ -311,6 +307,12 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
311
307
|
allowedProviders?: string[] | undefined;
|
|
312
308
|
} | undefined;
|
|
313
309
|
} | null;
|
|
310
|
+
stopWhen: {
|
|
311
|
+
transferCountIs?: number | undefined;
|
|
312
|
+
} | null;
|
|
313
|
+
tenantId: string;
|
|
314
|
+
defaultSubAgentId: string | null;
|
|
315
|
+
contextConfigId: string | null;
|
|
314
316
|
statusUpdates: {
|
|
315
317
|
enabled?: boolean | undefined;
|
|
316
318
|
numEvents?: number | undefined;
|
|
@@ -326,10 +328,8 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
326
328
|
} | undefined;
|
|
327
329
|
}[] | undefined;
|
|
328
330
|
} | null;
|
|
329
|
-
stopWhen: {
|
|
330
|
-
transferCountIs?: number | undefined;
|
|
331
|
-
} | null;
|
|
332
331
|
executionMode: "classic" | "durable";
|
|
332
|
+
projectId: string;
|
|
333
333
|
}>;
|
|
334
334
|
declare const updateAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
335
335
|
scopes: AgentScopeConfig;
|
|
@@ -144,8 +144,8 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
|
|
|
144
144
|
id: string;
|
|
145
145
|
createdAt: string;
|
|
146
146
|
tenantId: string;
|
|
147
|
-
agentId: string;
|
|
148
147
|
projectId: string;
|
|
148
|
+
agentId: string;
|
|
149
149
|
subAgentId: string;
|
|
150
150
|
artifactComponentId: string;
|
|
151
151
|
}>;
|
|
@@ -187,8 +187,8 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
|
|
|
187
187
|
id: string;
|
|
188
188
|
createdAt: string;
|
|
189
189
|
tenantId: string;
|
|
190
|
-
agentId: string;
|
|
191
190
|
projectId: string;
|
|
191
|
+
agentId: string;
|
|
192
192
|
subAgentId: string;
|
|
193
193
|
artifactComponentId: string;
|
|
194
194
|
} | null>;
|
|
@@ -13,10 +13,10 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
15
|
tenantId: string;
|
|
16
|
-
agentId: string;
|
|
17
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;
|
|
@@ -25,10 +25,10 @@ declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
25
25
|
createdAt: string;
|
|
26
26
|
updatedAt: string;
|
|
27
27
|
tenantId: string;
|
|
28
|
-
agentId: string;
|
|
29
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;
|
|
@@ -47,10 +47,10 @@ declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params:
|
|
|
47
47
|
createdAt: string;
|
|
48
48
|
updatedAt: string;
|
|
49
49
|
tenantId: string;
|
|
50
|
-
agentId: string;
|
|
51
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;
|
|
@@ -87,10 +87,10 @@ declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params:
|
|
|
87
87
|
createdAt: string;
|
|
88
88
|
updatedAt: string;
|
|
89
89
|
tenantId: string;
|
|
90
|
-
agentId: string;
|
|
91
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 };
|
|
@@ -68,8 +68,8 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
|
|
|
68
68
|
id: string;
|
|
69
69
|
createdAt: string;
|
|
70
70
|
tenantId: string;
|
|
71
|
-
agentId: string;
|
|
72
71
|
projectId: string;
|
|
72
|
+
agentId: string;
|
|
73
73
|
subAgentId: string;
|
|
74
74
|
dataComponentId: string;
|
|
75
75
|
}>;
|
|
@@ -110,8 +110,8 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
|
|
|
110
110
|
id: string;
|
|
111
111
|
createdAt: string;
|
|
112
112
|
tenantId: string;
|
|
113
|
-
agentId: string;
|
|
114
113
|
projectId: string;
|
|
114
|
+
agentId: string;
|
|
115
115
|
subAgentId: string;
|
|
116
116
|
dataComponentId: string;
|
|
117
117
|
} | null>;
|
|
@@ -59,8 +59,8 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
59
59
|
updatedAt: string;
|
|
60
60
|
description: string | null;
|
|
61
61
|
tenantId: string;
|
|
62
|
-
agentId: string;
|
|
63
62
|
projectId: string;
|
|
63
|
+
agentId: string;
|
|
64
64
|
functionId: string;
|
|
65
65
|
}>;
|
|
66
66
|
/**
|
|
@@ -101,8 +101,8 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
101
101
|
updatedAt: string;
|
|
102
102
|
description: string | null;
|
|
103
103
|
tenantId: string;
|
|
104
|
-
agentId: string;
|
|
105
104
|
projectId: string;
|
|
105
|
+
agentId: string;
|
|
106
106
|
functionId: string;
|
|
107
107
|
}>;
|
|
108
108
|
declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -161,8 +161,8 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
|
|
|
161
161
|
createdAt: string;
|
|
162
162
|
updatedAt: string;
|
|
163
163
|
tenantId: string;
|
|
164
|
-
agentId: string;
|
|
165
164
|
projectId: string;
|
|
165
|
+
agentId: string;
|
|
166
166
|
subAgentId: string;
|
|
167
167
|
toolPolicies: Record<string, {
|
|
168
168
|
needsApproval?: boolean;
|
|
@@ -226,8 +226,8 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
|
|
|
226
226
|
createdAt: string;
|
|
227
227
|
updatedAt: string;
|
|
228
228
|
tenantId: string;
|
|
229
|
-
agentId: string;
|
|
230
229
|
projectId: string;
|
|
230
|
+
agentId: string;
|
|
231
231
|
subAgentId: string;
|
|
232
232
|
toolPolicies: Record<string, {
|
|
233
233
|
needsApproval?: boolean;
|
|
@@ -22,8 +22,8 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
22
22
|
metadata: Record<string, string> | null;
|
|
23
23
|
description: string;
|
|
24
24
|
tenantId: string;
|
|
25
|
-
content: string;
|
|
26
25
|
projectId: string;
|
|
26
|
+
content: string;
|
|
27
27
|
} | null>;
|
|
28
28
|
declare const getSkillByIdWithFiles: (db: AgentsManageDatabaseClient) => (params: {
|
|
29
29
|
scopes: ProjectScopeConfig;
|
|
@@ -117,8 +117,8 @@ declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillApiIn
|
|
|
117
117
|
metadata: Record<string, string> | null;
|
|
118
118
|
description: string;
|
|
119
119
|
tenantId: string;
|
|
120
|
-
content: string;
|
|
121
120
|
projectId: string;
|
|
121
|
+
content: string;
|
|
122
122
|
}>;
|
|
123
123
|
declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
|
|
124
124
|
scopes: ProjectScopeConfig;
|
|
@@ -143,12 +143,12 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
|
|
|
143
143
|
createdAt: string;
|
|
144
144
|
updatedAt: string;
|
|
145
145
|
tenantId: string;
|
|
146
|
-
agentId: string;
|
|
147
146
|
projectId: string;
|
|
148
|
-
|
|
147
|
+
agentId: string;
|
|
148
|
+
skillId: string;
|
|
149
149
|
index: number;
|
|
150
150
|
alwaysLoaded: boolean;
|
|
151
|
-
|
|
151
|
+
subAgentId: string;
|
|
152
152
|
}>;
|
|
153
153
|
declare const deleteSubAgentSkill: (db: AgentsManageDatabaseClient) => (params: {
|
|
154
154
|
scopes: AgentScopeConfig;
|
|
@@ -14,8 +14,8 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
|
|
|
14
14
|
updatedAt: string;
|
|
15
15
|
headers: Record<string, string> | null;
|
|
16
16
|
tenantId: string;
|
|
17
|
-
agentId: string;
|
|
18
17
|
projectId: string;
|
|
18
|
+
agentId: string;
|
|
19
19
|
subAgentId: string;
|
|
20
20
|
externalAgentId: string;
|
|
21
21
|
} | undefined>;
|
|
@@ -49,8 +49,8 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
|
|
|
49
49
|
updatedAt: string;
|
|
50
50
|
headers: Record<string, string> | null;
|
|
51
51
|
tenantId: string;
|
|
52
|
-
agentId: string;
|
|
53
52
|
projectId: string;
|
|
53
|
+
agentId: string;
|
|
54
54
|
subAgentId: string;
|
|
55
55
|
externalAgentId: string;
|
|
56
56
|
}[]>;
|
|
@@ -62,8 +62,8 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
|
|
|
62
62
|
updatedAt: string;
|
|
63
63
|
headers: Record<string, string> | null;
|
|
64
64
|
tenantId: string;
|
|
65
|
-
agentId: string;
|
|
66
65
|
projectId: string;
|
|
66
|
+
agentId: string;
|
|
67
67
|
subAgentId: string;
|
|
68
68
|
externalAgentId: string;
|
|
69
69
|
}[]>;
|
|
@@ -191,8 +191,8 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
191
191
|
updatedAt: string;
|
|
192
192
|
headers: Record<string, string> | null;
|
|
193
193
|
tenantId: string;
|
|
194
|
-
agentId: string;
|
|
195
194
|
projectId: string;
|
|
195
|
+
agentId: string;
|
|
196
196
|
subAgentId: string;
|
|
197
197
|
externalAgentId: string;
|
|
198
198
|
}>;
|
|
@@ -208,8 +208,8 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
|
|
|
208
208
|
updatedAt: string;
|
|
209
209
|
headers: Record<string, string> | null;
|
|
210
210
|
tenantId: string;
|
|
211
|
-
agentId: string;
|
|
212
211
|
projectId: string;
|
|
212
|
+
agentId: string;
|
|
213
213
|
subAgentId: string;
|
|
214
214
|
externalAgentId: string;
|
|
215
215
|
} | undefined>;
|
|
@@ -229,8 +229,8 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
229
229
|
updatedAt: string;
|
|
230
230
|
headers: Record<string, string> | null;
|
|
231
231
|
tenantId: string;
|
|
232
|
-
agentId: string;
|
|
233
232
|
projectId: string;
|
|
233
|
+
agentId: string;
|
|
234
234
|
subAgentId: string;
|
|
235
235
|
externalAgentId: string;
|
|
236
236
|
}>;
|
|
@@ -13,8 +13,8 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
15
|
tenantId: string;
|
|
16
|
-
agentId: string;
|
|
17
16
|
projectId: string;
|
|
17
|
+
agentId: string;
|
|
18
18
|
sourceSubAgentId: string;
|
|
19
19
|
targetSubAgentId: string | null;
|
|
20
20
|
relationType: string | null;
|
|
@@ -48,8 +48,8 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
48
48
|
createdAt: string;
|
|
49
49
|
updatedAt: string;
|
|
50
50
|
tenantId: string;
|
|
51
|
-
agentId: string;
|
|
52
51
|
projectId: string;
|
|
52
|
+
agentId: string;
|
|
53
53
|
sourceSubAgentId: string;
|
|
54
54
|
targetSubAgentId: string | null;
|
|
55
55
|
relationType: string | null;
|
|
@@ -61,8 +61,8 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
|
|
|
61
61
|
createdAt: string;
|
|
62
62
|
updatedAt: string;
|
|
63
63
|
tenantId: string;
|
|
64
|
-
agentId: string;
|
|
65
64
|
projectId: string;
|
|
65
|
+
agentId: string;
|
|
66
66
|
sourceSubAgentId: string;
|
|
67
67
|
targetSubAgentId: string | null;
|
|
68
68
|
relationType: string | null;
|
|
@@ -130,8 +130,8 @@ declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
|
|
|
130
130
|
createdAt: string;
|
|
131
131
|
updatedAt: string;
|
|
132
132
|
tenantId: string;
|
|
133
|
-
agentId: string;
|
|
134
133
|
projectId: string;
|
|
134
|
+
agentId: string;
|
|
135
135
|
sourceSubAgentId: string;
|
|
136
136
|
targetSubAgentId: string | null;
|
|
137
137
|
relationType: string | null;
|
|
@@ -149,8 +149,8 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
149
149
|
createdAt: string;
|
|
150
150
|
updatedAt: string;
|
|
151
151
|
tenantId: string;
|
|
152
|
-
agentId: string;
|
|
153
152
|
projectId: string;
|
|
153
|
+
agentId: string;
|
|
154
154
|
sourceSubAgentId: string;
|
|
155
155
|
targetSubAgentId: string | null;
|
|
156
156
|
relationType: string | null;
|
|
@@ -163,8 +163,8 @@ declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
|
|
|
163
163
|
createdAt: string;
|
|
164
164
|
updatedAt: string;
|
|
165
165
|
tenantId: string;
|
|
166
|
-
agentId: string;
|
|
167
166
|
projectId: string;
|
|
167
|
+
agentId: string;
|
|
168
168
|
sourceSubAgentId: string;
|
|
169
169
|
targetSubAgentId: string | null;
|
|
170
170
|
relationType: string | null;
|
|
@@ -209,14 +209,14 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
209
209
|
updatedAt: string;
|
|
210
210
|
headers: Record<string, string> | null;
|
|
211
211
|
tenantId: string;
|
|
212
|
-
agentId: string;
|
|
213
212
|
projectId: string;
|
|
214
|
-
|
|
213
|
+
agentId: string;
|
|
215
214
|
toolId: string;
|
|
215
|
+
subAgentId: string;
|
|
216
|
+
selectedTools: string[] | null;
|
|
216
217
|
toolPolicies: Record<string, {
|
|
217
218
|
needsApproval?: boolean;
|
|
218
219
|
}> | null;
|
|
219
|
-
selectedTools: string[] | null;
|
|
220
220
|
}>;
|
|
221
221
|
declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
222
222
|
scopes: AgentScopeConfig;
|
|
@@ -253,14 +253,14 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
|
|
|
253
253
|
updatedAt: string;
|
|
254
254
|
headers: Record<string, string> | null;
|
|
255
255
|
tenantId: string;
|
|
256
|
-
agentId: string;
|
|
257
256
|
projectId: string;
|
|
258
|
-
|
|
257
|
+
agentId: string;
|
|
259
258
|
toolId: string;
|
|
259
|
+
subAgentId: string;
|
|
260
|
+
selectedTools: string[] | null;
|
|
260
261
|
toolPolicies: Record<string, {
|
|
261
262
|
needsApproval?: boolean;
|
|
262
263
|
}> | null;
|
|
263
|
-
selectedTools: string[] | null;
|
|
264
264
|
} | undefined>;
|
|
265
265
|
declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
266
266
|
scopes: SubAgentScopeConfig;
|
|
@@ -14,8 +14,8 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
14
14
|
updatedAt: string;
|
|
15
15
|
headers: Record<string, string> | null;
|
|
16
16
|
tenantId: string;
|
|
17
|
-
agentId: string;
|
|
18
17
|
projectId: string;
|
|
18
|
+
agentId: string;
|
|
19
19
|
subAgentId: string;
|
|
20
20
|
targetAgentId: string;
|
|
21
21
|
} | undefined>;
|
|
@@ -49,8 +49,8 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
|
|
|
49
49
|
updatedAt: string;
|
|
50
50
|
headers: Record<string, string> | null;
|
|
51
51
|
tenantId: string;
|
|
52
|
-
agentId: string;
|
|
53
52
|
projectId: string;
|
|
53
|
+
agentId: string;
|
|
54
54
|
subAgentId: string;
|
|
55
55
|
targetAgentId: string;
|
|
56
56
|
}[]>;
|
|
@@ -62,8 +62,8 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
|
|
|
62
62
|
updatedAt: string;
|
|
63
63
|
headers: Record<string, string> | null;
|
|
64
64
|
tenantId: string;
|
|
65
|
-
agentId: string;
|
|
66
65
|
projectId: string;
|
|
66
|
+
agentId: string;
|
|
67
67
|
subAgentId: string;
|
|
68
68
|
targetAgentId: string;
|
|
69
69
|
}[]>;
|
|
@@ -227,8 +227,8 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
227
227
|
updatedAt: string;
|
|
228
228
|
headers: Record<string, string> | null;
|
|
229
229
|
tenantId: string;
|
|
230
|
-
agentId: string;
|
|
231
230
|
projectId: string;
|
|
231
|
+
agentId: string;
|
|
232
232
|
subAgentId: string;
|
|
233
233
|
targetAgentId: string;
|
|
234
234
|
}>;
|
|
@@ -244,8 +244,8 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
|
|
|
244
244
|
updatedAt: string;
|
|
245
245
|
headers: Record<string, string> | null;
|
|
246
246
|
tenantId: string;
|
|
247
|
-
agentId: string;
|
|
248
247
|
projectId: string;
|
|
248
|
+
agentId: string;
|
|
249
249
|
subAgentId: string;
|
|
250
250
|
targetAgentId: string;
|
|
251
251
|
} | undefined>;
|
|
@@ -265,8 +265,8 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
265
265
|
updatedAt: string;
|
|
266
266
|
headers: Record<string, string> | null;
|
|
267
267
|
tenantId: string;
|
|
268
|
-
agentId: string;
|
|
269
268
|
projectId: string;
|
|
269
|
+
agentId: string;
|
|
270
270
|
subAgentId: string;
|
|
271
271
|
targetAgentId: string;
|
|
272
272
|
}>;
|
|
@@ -15,9 +15,6 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
15
15
|
updatedAt: string;
|
|
16
16
|
description: string | null;
|
|
17
17
|
prompt: string | null;
|
|
18
|
-
tenantId: string;
|
|
19
|
-
agentId: string;
|
|
20
|
-
projectId: string;
|
|
21
18
|
models: {
|
|
22
19
|
base?: {
|
|
23
20
|
model?: string | undefined;
|
|
@@ -41,6 +38,9 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
41
38
|
stopWhen: {
|
|
42
39
|
stepCountIs?: number | undefined;
|
|
43
40
|
} | null;
|
|
41
|
+
tenantId: string;
|
|
42
|
+
projectId: string;
|
|
43
|
+
agentId: string;
|
|
44
44
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
45
45
|
} | undefined>;
|
|
46
46
|
declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -52,9 +52,6 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
52
52
|
updatedAt: string;
|
|
53
53
|
description: string | null;
|
|
54
54
|
prompt: string | null;
|
|
55
|
-
tenantId: string;
|
|
56
|
-
agentId: string;
|
|
57
|
-
projectId: string;
|
|
58
55
|
models: {
|
|
59
56
|
base?: {
|
|
60
57
|
model?: string | undefined;
|
|
@@ -78,6 +75,9 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
78
75
|
stopWhen: {
|
|
79
76
|
stepCountIs?: number | undefined;
|
|
80
77
|
} | null;
|
|
78
|
+
tenantId: string;
|
|
79
|
+
projectId: string;
|
|
80
|
+
agentId: string;
|
|
81
81
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
82
82
|
}[]>;
|
|
83
83
|
declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -133,9 +133,6 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
133
133
|
updatedAt: string;
|
|
134
134
|
description: string | null;
|
|
135
135
|
prompt: string | null;
|
|
136
|
-
tenantId: string;
|
|
137
|
-
agentId: string;
|
|
138
|
-
projectId: string;
|
|
139
136
|
models: {
|
|
140
137
|
base?: {
|
|
141
138
|
model?: string | undefined;
|
|
@@ -159,6 +156,9 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
159
156
|
stopWhen: {
|
|
160
157
|
stepCountIs?: number | undefined;
|
|
161
158
|
} | null;
|
|
159
|
+
tenantId: string;
|
|
160
|
+
projectId: string;
|
|
161
|
+
agentId: string;
|
|
162
162
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
163
163
|
}>;
|
|
164
164
|
declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -28,11 +28,11 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
28
28
|
headers: Record<string, string> | null;
|
|
29
29
|
tenantId: string;
|
|
30
30
|
projectId: string;
|
|
31
|
+
credentialReferenceId: string | null;
|
|
31
32
|
config: {
|
|
32
33
|
type: "mcp";
|
|
33
34
|
mcp: ToolMcpConfig;
|
|
34
35
|
};
|
|
35
|
-
credentialReferenceId: string | null;
|
|
36
36
|
credentialScope: string;
|
|
37
37
|
imageUrl: string | null;
|
|
38
38
|
capabilities: ToolServerCapabilities | null;
|
|
@@ -86,11 +86,11 @@ declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInser
|
|
|
86
86
|
headers: Record<string, string> | null;
|
|
87
87
|
tenantId: string;
|
|
88
88
|
projectId: string;
|
|
89
|
+
credentialReferenceId: string | null;
|
|
89
90
|
config: {
|
|
90
91
|
type: "mcp";
|
|
91
92
|
mcp: ToolMcpConfig;
|
|
92
93
|
};
|
|
93
|
-
credentialReferenceId: string | null;
|
|
94
94
|
credentialScope: string;
|
|
95
95
|
imageUrl: string | null;
|
|
96
96
|
capabilities: ToolServerCapabilities | null;
|
|
@@ -140,14 +140,14 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
140
140
|
updatedAt: string;
|
|
141
141
|
headers: Record<string, string> | null;
|
|
142
142
|
tenantId: string;
|
|
143
|
-
agentId: string;
|
|
144
143
|
projectId: string;
|
|
145
|
-
|
|
144
|
+
agentId: string;
|
|
146
145
|
toolId: string;
|
|
146
|
+
subAgentId: string;
|
|
147
|
+
selectedTools: string[] | null;
|
|
147
148
|
toolPolicies: Record<string, {
|
|
148
149
|
needsApproval?: boolean;
|
|
149
150
|
}> | null;
|
|
150
|
-
selectedTools: string[] | null;
|
|
151
151
|
}>;
|
|
152
152
|
declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
153
153
|
scopes: AgentScopeConfig;
|
|
@@ -159,14 +159,14 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
|
|
|
159
159
|
updatedAt: string;
|
|
160
160
|
headers: Record<string, string> | null;
|
|
161
161
|
tenantId: string;
|
|
162
|
-
agentId: string;
|
|
163
162
|
projectId: string;
|
|
164
|
-
|
|
163
|
+
agentId: string;
|
|
165
164
|
toolId: string;
|
|
165
|
+
subAgentId: string;
|
|
166
|
+
selectedTools: string[] | null;
|
|
166
167
|
toolPolicies: Record<string, {
|
|
167
168
|
needsApproval?: boolean;
|
|
168
169
|
}> | null;
|
|
169
|
-
selectedTools: string[] | null;
|
|
170
170
|
}>;
|
|
171
171
|
/**
|
|
172
172
|
* Upsert agent-tool relation (create if it doesn't exist, update if it does)
|
|
@@ -187,14 +187,14 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
187
187
|
updatedAt: string;
|
|
188
188
|
headers: Record<string, string> | null;
|
|
189
189
|
tenantId: string;
|
|
190
|
-
agentId: string;
|
|
191
190
|
projectId: string;
|
|
192
|
-
|
|
191
|
+
agentId: string;
|
|
193
192
|
toolId: string;
|
|
193
|
+
subAgentId: string;
|
|
194
|
+
selectedTools: string[] | null;
|
|
194
195
|
toolPolicies: Record<string, {
|
|
195
196
|
needsApproval?: boolean;
|
|
196
197
|
}> | null;
|
|
197
|
-
selectedTools: string[] | null;
|
|
198
198
|
}>;
|
|
199
199
|
/**
|
|
200
200
|
* Upsert a tool (create if it doesn't exist, update if it does)
|
|
@@ -210,11 +210,11 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
210
210
|
headers: Record<string, string> | null;
|
|
211
211
|
tenantId: string;
|
|
212
212
|
projectId: string;
|
|
213
|
+
credentialReferenceId: string | null;
|
|
213
214
|
config: {
|
|
214
215
|
type: "mcp";
|
|
215
216
|
mcp: ToolMcpConfig;
|
|
216
217
|
};
|
|
217
|
-
credentialReferenceId: string | null;
|
|
218
218
|
credentialScope: string;
|
|
219
219
|
imageUrl: string | null;
|
|
220
220
|
capabilities: ToolServerCapabilities | null;
|
|
@@ -134,8 +134,8 @@ declare const createTriggerUser: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
134
134
|
createdAt: string;
|
|
135
135
|
userId: string;
|
|
136
136
|
tenantId: string;
|
|
137
|
-
agentId: string;
|
|
138
137
|
projectId: string;
|
|
138
|
+
agentId: string;
|
|
139
139
|
triggerId: string;
|
|
140
140
|
}>;
|
|
141
141
|
declare const deleteTriggerUser: (db: AgentsManageDatabaseClient) => (params: {
|