@inkeep/agents-core 0.0.0-dev-20260126174131 → 0.0.0-dev-20260126204245
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-schema.d.ts +104 -104
- package/dist/auth/auth-validation-schemas.d.ts +146 -146
- package/dist/auth/auth.d.ts +53 -53
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/client-exports.d.ts +14 -15
- package/dist/constants/execution-limits-shared/defaults.d.ts +1 -1
- package/dist/constants/execution-limits-shared/defaults.js +1 -1
- package/dist/constants/execution-limits-shared/index.d.ts +1 -1
- package/dist/data-access/manage/agents.d.ts +55 -55
- package/dist/data-access/manage/artifactComponents.d.ts +12 -12
- package/dist/data-access/manage/contextConfigs.d.ts +16 -16
- 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/subAgentExternalAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgents.d.ts +33 -33
- package/dist/data-access/manage/tools.d.ts +21 -21
- package/dist/data-access/manage/tools.js +27 -7
- package/dist/data-access/manage/triggers.d.ts +2 -2
- package/dist/data-access/runtime/apiKeys.d.ts +16 -16
- package/dist/data-access/runtime/conversations.d.ts +23 -23
- package/dist/data-access/runtime/messages.d.ts +12 -12
- package/dist/data-access/runtime/tasks.d.ts +6 -6
- package/dist/db/manage/manage-schema.d.ts +381 -381
- package/dist/db/runtime/runtime-schema.d.ts +181 -181
- package/dist/types/utility.d.ts +1 -1
- package/dist/types/utility.js +2 -1
- package/dist/utils/jmespath-utils.js +1 -1
- package/dist/utils/mcp-client.d.ts +1 -1
- package/dist/utils/mcp-client.js +1 -1
- package/dist/validation/dolt-schemas.d.ts +1 -1
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas.d.ts +1892 -1888
- package/package.json +1 -1
|
@@ -7,13 +7,13 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
|
|
|
7
7
|
scopes: ProjectScopeConfig;
|
|
8
8
|
id: string;
|
|
9
9
|
}) => Promise<{
|
|
10
|
+
name: string;
|
|
11
|
+
description: string | null;
|
|
12
|
+
tenantId: string;
|
|
13
|
+
projectId: string;
|
|
10
14
|
id: string;
|
|
11
15
|
createdAt: string;
|
|
12
|
-
name: string;
|
|
13
16
|
updatedAt: string;
|
|
14
|
-
projectId: string;
|
|
15
|
-
tenantId: string;
|
|
16
|
-
description: string | null;
|
|
17
17
|
props: Record<string, unknown> | null;
|
|
18
18
|
render: {
|
|
19
19
|
component: string;
|
|
@@ -49,13 +49,13 @@ declare const listArtifactComponentsPaginated: (db: AgentsManageDatabaseClient)
|
|
|
49
49
|
};
|
|
50
50
|
}>;
|
|
51
51
|
declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
|
|
52
|
+
name: string;
|
|
53
|
+
description: string | null;
|
|
54
|
+
tenantId: string;
|
|
55
|
+
projectId: string;
|
|
52
56
|
id: string;
|
|
53
57
|
createdAt: string;
|
|
54
|
-
name: string;
|
|
55
58
|
updatedAt: string;
|
|
56
|
-
projectId: string;
|
|
57
|
-
tenantId: string;
|
|
58
|
-
description: string | null;
|
|
59
59
|
props: Record<string, unknown> | null;
|
|
60
60
|
render: {
|
|
61
61
|
component: string;
|
|
@@ -104,11 +104,11 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
|
|
|
104
104
|
scopes: SubAgentScopeConfig;
|
|
105
105
|
artifactComponentId: string;
|
|
106
106
|
}) => Promise<{
|
|
107
|
+
tenantId: string;
|
|
108
|
+
projectId: string;
|
|
107
109
|
id: string;
|
|
108
110
|
createdAt: string;
|
|
109
111
|
agentId: string;
|
|
110
|
-
projectId: string;
|
|
111
|
-
tenantId: string;
|
|
112
112
|
subAgentId: string;
|
|
113
113
|
artifactComponentId: string;
|
|
114
114
|
}>;
|
|
@@ -147,11 +147,11 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
|
|
|
147
147
|
scopes: SubAgentScopeConfig;
|
|
148
148
|
artifactComponentId: string;
|
|
149
149
|
}) => Promise<{
|
|
150
|
+
tenantId: string;
|
|
151
|
+
projectId: string;
|
|
150
152
|
id: string;
|
|
151
153
|
createdAt: string;
|
|
152
154
|
agentId: string;
|
|
153
|
-
projectId: string;
|
|
154
|
-
tenantId: string;
|
|
155
155
|
subAgentId: string;
|
|
156
156
|
artifactComponentId: string;
|
|
157
157
|
} | null>;
|
|
@@ -8,26 +8,26 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
8
8
|
scopes: AgentScopeConfig;
|
|
9
9
|
id: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
+
tenantId: string;
|
|
12
|
+
projectId: string;
|
|
11
13
|
id: string;
|
|
12
|
-
headersSchema: unknown;
|
|
13
|
-
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
14
14
|
createdAt: string;
|
|
15
15
|
updatedAt: string;
|
|
16
16
|
agentId: string;
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
headersSchema: unknown;
|
|
18
|
+
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
19
19
|
} | undefined>;
|
|
20
20
|
declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
|
|
21
21
|
scopes: AgentScopeConfig;
|
|
22
22
|
}) => Promise<{
|
|
23
|
+
tenantId: string;
|
|
24
|
+
projectId: string;
|
|
23
25
|
id: string;
|
|
24
|
-
headersSchema: unknown;
|
|
25
|
-
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
26
26
|
createdAt: string;
|
|
27
27
|
updatedAt: string;
|
|
28
28
|
agentId: string;
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
headersSchema: unknown;
|
|
30
|
+
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
31
31
|
}[]>;
|
|
32
32
|
declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
33
33
|
scopes: AgentScopeConfig;
|
|
@@ -42,14 +42,14 @@ declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (
|
|
|
42
42
|
};
|
|
43
43
|
}>;
|
|
44
44
|
declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params: ContextConfigInsert) => Promise<{
|
|
45
|
+
tenantId: string;
|
|
46
|
+
projectId: string;
|
|
45
47
|
id: string;
|
|
46
|
-
headersSchema: unknown;
|
|
47
|
-
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
48
48
|
createdAt: string;
|
|
49
49
|
updatedAt: string;
|
|
50
50
|
agentId: string;
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
headersSchema: unknown;
|
|
52
|
+
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
53
53
|
}>;
|
|
54
54
|
declare const updateContextConfig: (db: AgentsManageDatabaseClient) => (params: {
|
|
55
55
|
scopes: AgentScopeConfig;
|
|
@@ -82,14 +82,14 @@ declare const countContextConfigs: (db: AgentsManageDatabaseClient) => (params:
|
|
|
82
82
|
declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params: {
|
|
83
83
|
data: ContextConfigInsert;
|
|
84
84
|
}) => Promise<{
|
|
85
|
+
tenantId: string;
|
|
86
|
+
projectId: string;
|
|
85
87
|
id: string;
|
|
86
|
-
headersSchema: unknown;
|
|
87
|
-
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
88
88
|
createdAt: string;
|
|
89
89
|
updatedAt: string;
|
|
90
90
|
agentId: string;
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
headersSchema: unknown;
|
|
92
|
+
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
93
93
|
}>;
|
|
94
94
|
//#endregion
|
|
95
95
|
export { countContextConfigs, createContextConfig, deleteContextConfig, getContextConfigById, hasContextConfig, listContextConfigs, listContextConfigsPaginated, updateContextConfig, upsertContextConfig };
|
|
@@ -64,11 +64,11 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
|
|
|
64
64
|
scopes: SubAgentScopeConfig;
|
|
65
65
|
dataComponentId: string;
|
|
66
66
|
}) => Promise<{
|
|
67
|
+
tenantId: string;
|
|
68
|
+
projectId: string;
|
|
67
69
|
id: string;
|
|
68
70
|
createdAt: string;
|
|
69
71
|
agentId: string;
|
|
70
|
-
projectId: string;
|
|
71
|
-
tenantId: string;
|
|
72
72
|
subAgentId: string;
|
|
73
73
|
dataComponentId: string;
|
|
74
74
|
}>;
|
|
@@ -106,11 +106,11 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
|
|
|
106
106
|
scopes: SubAgentScopeConfig;
|
|
107
107
|
dataComponentId: string;
|
|
108
108
|
}) => Promise<{
|
|
109
|
+
tenantId: string;
|
|
110
|
+
projectId: string;
|
|
109
111
|
id: string;
|
|
110
112
|
createdAt: string;
|
|
111
113
|
agentId: string;
|
|
112
|
-
projectId: string;
|
|
113
|
-
tenantId: string;
|
|
114
114
|
subAgentId: string;
|
|
115
115
|
dataComponentId: string;
|
|
116
116
|
} | null>;
|
|
@@ -53,14 +53,14 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
53
53
|
data: FunctionToolApiInsert;
|
|
54
54
|
scopes: AgentScopeConfig;
|
|
55
55
|
}) => Promise<{
|
|
56
|
+
name: string;
|
|
57
|
+
description: string | null;
|
|
58
|
+
tenantId: string;
|
|
59
|
+
projectId: string;
|
|
56
60
|
id: string;
|
|
57
61
|
createdAt: string;
|
|
58
|
-
name: string;
|
|
59
62
|
updatedAt: string;
|
|
60
63
|
agentId: string;
|
|
61
|
-
projectId: string;
|
|
62
|
-
tenantId: string;
|
|
63
|
-
description: string | null;
|
|
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
|
+
name: string;
|
|
99
|
+
description: string | null;
|
|
100
|
+
tenantId: string;
|
|
101
|
+
projectId: string;
|
|
98
102
|
id: string;
|
|
99
103
|
createdAt: string;
|
|
100
|
-
name: string;
|
|
101
104
|
updatedAt: string;
|
|
102
105
|
agentId: string;
|
|
103
|
-
projectId: string;
|
|
104
|
-
tenantId: string;
|
|
105
|
-
description: string | null;
|
|
106
106
|
functionId: string;
|
|
107
107
|
}>;
|
|
108
108
|
declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -161,17 +161,17 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
|
|
|
161
161
|
needsApproval?: boolean;
|
|
162
162
|
}> | null;
|
|
163
163
|
}) => Promise<{
|
|
164
|
+
tenantId: string;
|
|
165
|
+
projectId: string;
|
|
164
166
|
id: string;
|
|
165
167
|
createdAt: string;
|
|
166
168
|
updatedAt: string;
|
|
167
169
|
agentId: string;
|
|
168
|
-
projectId: string;
|
|
169
|
-
tenantId: string;
|
|
170
170
|
subAgentId: string;
|
|
171
|
+
functionToolId: string;
|
|
171
172
|
toolPolicies: Record<string, {
|
|
172
173
|
needsApproval?: boolean;
|
|
173
174
|
}> | null;
|
|
174
|
-
functionToolId: string;
|
|
175
175
|
}>;
|
|
176
176
|
/**
|
|
177
177
|
* Update an agent-function tool relation
|
|
@@ -226,17 +226,17 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
|
|
|
226
226
|
needsApproval?: boolean;
|
|
227
227
|
}> | null;
|
|
228
228
|
}) => Promise<{
|
|
229
|
+
tenantId: string;
|
|
230
|
+
projectId: string;
|
|
229
231
|
id: string;
|
|
230
232
|
createdAt: string;
|
|
231
233
|
updatedAt: string;
|
|
232
234
|
agentId: string;
|
|
233
|
-
projectId: string;
|
|
234
|
-
tenantId: string;
|
|
235
235
|
subAgentId: string;
|
|
236
|
+
functionToolId: string;
|
|
236
237
|
toolPolicies: Record<string, {
|
|
237
238
|
needsApproval?: boolean;
|
|
238
239
|
}> | null;
|
|
239
|
-
functionToolId: string;
|
|
240
240
|
}>;
|
|
241
241
|
//#endregion
|
|
242
242
|
export { addFunctionToolToSubAgent, associateFunctionToolWithSubAgent, createFunctionTool, deleteFunctionTool, getFunctionToolById, getFunctionToolsForSubAgent, getSubAgentsUsingFunctionTool, isFunctionToolAssociatedWithSubAgent, listFunctionTools, removeFunctionToolFromSubAgent, updateFunctionTool, updateSubAgentFunctionToolRelation, upsertFunctionTool, upsertSubAgentFunctionToolRelation };
|
|
@@ -8,12 +8,12 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
|
|
|
8
8
|
scopes: SubAgentScopeConfig;
|
|
9
9
|
relationId: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
+
tenantId: string;
|
|
12
|
+
projectId: string;
|
|
11
13
|
id: string;
|
|
12
14
|
createdAt: string;
|
|
13
15
|
updatedAt: string;
|
|
14
16
|
agentId: string;
|
|
15
|
-
projectId: string;
|
|
16
|
-
tenantId: string;
|
|
17
17
|
headers: Record<string, string> | null;
|
|
18
18
|
subAgentId: string;
|
|
19
19
|
externalAgentId: string;
|
|
@@ -43,12 +43,12 @@ declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClien
|
|
|
43
43
|
declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
44
44
|
scopes: SubAgentScopeConfig;
|
|
45
45
|
}) => Promise<{
|
|
46
|
+
tenantId: string;
|
|
47
|
+
projectId: string;
|
|
46
48
|
id: string;
|
|
47
49
|
createdAt: string;
|
|
48
50
|
updatedAt: string;
|
|
49
51
|
agentId: string;
|
|
50
|
-
projectId: string;
|
|
51
|
-
tenantId: string;
|
|
52
52
|
headers: Record<string, string> | null;
|
|
53
53
|
subAgentId: string;
|
|
54
54
|
externalAgentId: string;
|
|
@@ -56,12 +56,12 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
|
|
|
56
56
|
declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
57
57
|
scopes: AgentScopeConfig;
|
|
58
58
|
}) => Promise<{
|
|
59
|
+
tenantId: string;
|
|
60
|
+
projectId: string;
|
|
59
61
|
id: string;
|
|
60
62
|
createdAt: string;
|
|
61
63
|
updatedAt: string;
|
|
62
64
|
agentId: string;
|
|
63
|
-
projectId: string;
|
|
64
|
-
tenantId: string;
|
|
65
65
|
headers: Record<string, string> | null;
|
|
66
66
|
subAgentId: string;
|
|
67
67
|
externalAgentId: string;
|
|
@@ -179,12 +179,12 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
179
179
|
headers?: Record<string, string> | null;
|
|
180
180
|
};
|
|
181
181
|
}) => Promise<{
|
|
182
|
+
tenantId: string;
|
|
183
|
+
projectId: string;
|
|
182
184
|
id: string;
|
|
183
185
|
createdAt: string;
|
|
184
186
|
updatedAt: string;
|
|
185
187
|
agentId: string;
|
|
186
|
-
projectId: string;
|
|
187
|
-
tenantId: string;
|
|
188
188
|
headers: Record<string, string> | null;
|
|
189
189
|
subAgentId: string;
|
|
190
190
|
externalAgentId: string;
|
|
@@ -196,12 +196,12 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
|
|
|
196
196
|
scopes: SubAgentScopeConfig;
|
|
197
197
|
externalAgentId: string;
|
|
198
198
|
}) => Promise<{
|
|
199
|
+
tenantId: string;
|
|
200
|
+
projectId: string;
|
|
199
201
|
id: string;
|
|
200
202
|
createdAt: string;
|
|
201
203
|
updatedAt: string;
|
|
202
204
|
agentId: string;
|
|
203
|
-
projectId: string;
|
|
204
|
-
tenantId: string;
|
|
205
205
|
headers: Record<string, string> | null;
|
|
206
206
|
subAgentId: string;
|
|
207
207
|
externalAgentId: string;
|
|
@@ -217,12 +217,12 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
217
217
|
headers?: Record<string, string> | null;
|
|
218
218
|
};
|
|
219
219
|
}) => Promise<{
|
|
220
|
+
tenantId: string;
|
|
221
|
+
projectId: string;
|
|
220
222
|
id: string;
|
|
221
223
|
createdAt: string;
|
|
222
224
|
updatedAt: string;
|
|
223
225
|
agentId: string;
|
|
224
|
-
projectId: string;
|
|
225
|
-
tenantId: string;
|
|
226
226
|
headers: Record<string, string> | null;
|
|
227
227
|
subAgentId: string;
|
|
228
228
|
externalAgentId: string;
|
|
@@ -8,15 +8,15 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
8
8
|
scopes: AgentScopeConfig;
|
|
9
9
|
relationId: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
+
tenantId: string;
|
|
12
|
+
projectId: string;
|
|
11
13
|
id: string;
|
|
12
14
|
createdAt: string;
|
|
13
15
|
updatedAt: string;
|
|
14
16
|
agentId: string;
|
|
15
|
-
projectId: string;
|
|
16
|
-
tenantId: string;
|
|
17
|
-
relationType: string | null;
|
|
18
17
|
sourceSubAgentId: string;
|
|
19
18
|
targetSubAgentId: string | null;
|
|
19
|
+
relationType: string | null;
|
|
20
20
|
} | undefined>;
|
|
21
21
|
declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
22
22
|
scopes: AgentScopeConfig;
|
|
@@ -43,28 +43,28 @@ declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
43
43
|
declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
44
44
|
scopes: SubAgentScopeConfig;
|
|
45
45
|
}) => Promise<{
|
|
46
|
+
tenantId: string;
|
|
47
|
+
projectId: string;
|
|
46
48
|
id: string;
|
|
47
49
|
createdAt: string;
|
|
48
50
|
updatedAt: string;
|
|
49
51
|
agentId: string;
|
|
50
|
-
projectId: string;
|
|
51
|
-
tenantId: string;
|
|
52
|
-
relationType: string | null;
|
|
53
52
|
sourceSubAgentId: string;
|
|
54
53
|
targetSubAgentId: string | null;
|
|
54
|
+
relationType: string | null;
|
|
55
55
|
}[]>;
|
|
56
56
|
declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
57
57
|
scopes: AgentScopeConfig;
|
|
58
58
|
}) => Promise<{
|
|
59
|
+
tenantId: string;
|
|
60
|
+
projectId: string;
|
|
59
61
|
id: string;
|
|
60
62
|
createdAt: string;
|
|
61
63
|
updatedAt: string;
|
|
62
64
|
agentId: string;
|
|
63
|
-
projectId: string;
|
|
64
|
-
tenantId: string;
|
|
65
|
-
relationType: string | null;
|
|
66
65
|
sourceSubAgentId: string;
|
|
67
66
|
targetSubAgentId: string | null;
|
|
67
|
+
relationType: string | null;
|
|
68
68
|
}[]>;
|
|
69
69
|
declare const getAgentRelationsBySource: (db: AgentsManageDatabaseClient) => (params: {
|
|
70
70
|
scopes: AgentScopeConfig;
|
|
@@ -125,15 +125,15 @@ declare const getRelatedAgentsForAgent: (db: AgentsManageDatabaseClient) => (par
|
|
|
125
125
|
}[];
|
|
126
126
|
}>;
|
|
127
127
|
declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
128
|
+
tenantId: string;
|
|
129
|
+
projectId: string;
|
|
128
130
|
id: string;
|
|
129
131
|
createdAt: string;
|
|
130
132
|
updatedAt: string;
|
|
131
133
|
agentId: string;
|
|
132
|
-
projectId: string;
|
|
133
|
-
tenantId: string;
|
|
134
|
-
relationType: string | null;
|
|
135
134
|
sourceSubAgentId: string;
|
|
136
135
|
targetSubAgentId: string | null;
|
|
136
|
+
relationType: string | null;
|
|
137
137
|
}>;
|
|
138
138
|
/**
|
|
139
139
|
* Check if sub-agent relation exists by agent, source, target, and relation type
|
|
@@ -144,29 +144,29 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
144
144
|
targetSubAgentId?: string;
|
|
145
145
|
relationType: string;
|
|
146
146
|
}) => Promise<{
|
|
147
|
+
tenantId: string;
|
|
148
|
+
projectId: string;
|
|
147
149
|
id: string;
|
|
148
150
|
createdAt: string;
|
|
149
151
|
updatedAt: string;
|
|
150
152
|
agentId: string;
|
|
151
|
-
projectId: string;
|
|
152
|
-
tenantId: string;
|
|
153
|
-
relationType: string | null;
|
|
154
153
|
sourceSubAgentId: string;
|
|
155
154
|
targetSubAgentId: string | null;
|
|
155
|
+
relationType: string | null;
|
|
156
156
|
} | undefined>;
|
|
157
157
|
/**
|
|
158
158
|
* Upsert agent relation (create if it doesn't exist, no-op if it does)
|
|
159
159
|
*/
|
|
160
160
|
declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
161
|
+
tenantId: string;
|
|
162
|
+
projectId: string;
|
|
161
163
|
id: string;
|
|
162
164
|
createdAt: string;
|
|
163
165
|
updatedAt: string;
|
|
164
166
|
agentId: string;
|
|
165
|
-
projectId: string;
|
|
166
|
-
tenantId: string;
|
|
167
|
-
relationType: string | null;
|
|
168
167
|
sourceSubAgentId: string;
|
|
169
168
|
targetSubAgentId: string | null;
|
|
169
|
+
relationType: string | null;
|
|
170
170
|
}>;
|
|
171
171
|
declare const updateAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
172
172
|
scopes: AgentScopeConfig;
|
|
@@ -203,15 +203,15 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
203
203
|
}> | null;
|
|
204
204
|
};
|
|
205
205
|
}) => Promise<{
|
|
206
|
+
tenantId: string;
|
|
207
|
+
projectId: string;
|
|
206
208
|
id: string;
|
|
207
209
|
createdAt: string;
|
|
208
210
|
updatedAt: string;
|
|
209
211
|
agentId: string;
|
|
210
|
-
projectId: string;
|
|
211
|
-
tenantId: string;
|
|
212
212
|
headers: Record<string, string> | null;
|
|
213
|
-
subAgentId: string;
|
|
214
213
|
toolId: string;
|
|
214
|
+
subAgentId: string;
|
|
215
215
|
toolPolicies: Record<string, {
|
|
216
216
|
needsApproval?: boolean;
|
|
217
217
|
}> | null;
|
|
@@ -247,15 +247,15 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
|
|
|
247
247
|
scopes: SubAgentScopeConfig;
|
|
248
248
|
relationId: string;
|
|
249
249
|
}) => Promise<{
|
|
250
|
+
tenantId: string;
|
|
251
|
+
projectId: string;
|
|
250
252
|
id: string;
|
|
251
253
|
createdAt: string;
|
|
252
254
|
updatedAt: string;
|
|
253
255
|
agentId: string;
|
|
254
|
-
projectId: string;
|
|
255
|
-
tenantId: string;
|
|
256
256
|
headers: Record<string, string> | null;
|
|
257
|
-
subAgentId: string;
|
|
258
257
|
toolId: string;
|
|
258
|
+
subAgentId: string;
|
|
259
259
|
toolPolicies: Record<string, {
|
|
260
260
|
needsApproval?: boolean;
|
|
261
261
|
}> | null;
|
|
@@ -8,12 +8,12 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
8
8
|
scopes: SubAgentScopeConfig;
|
|
9
9
|
relationId: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
+
tenantId: string;
|
|
12
|
+
projectId: string;
|
|
11
13
|
id: string;
|
|
12
14
|
createdAt: string;
|
|
13
15
|
updatedAt: string;
|
|
14
16
|
agentId: string;
|
|
15
|
-
projectId: string;
|
|
16
|
-
tenantId: string;
|
|
17
17
|
headers: Record<string, string> | null;
|
|
18
18
|
subAgentId: string;
|
|
19
19
|
targetAgentId: string;
|
|
@@ -43,12 +43,12 @@ declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =
|
|
|
43
43
|
declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
44
44
|
scopes: SubAgentScopeConfig;
|
|
45
45
|
}) => Promise<{
|
|
46
|
+
tenantId: string;
|
|
47
|
+
projectId: string;
|
|
46
48
|
id: string;
|
|
47
49
|
createdAt: string;
|
|
48
50
|
updatedAt: string;
|
|
49
51
|
agentId: string;
|
|
50
|
-
projectId: string;
|
|
51
|
-
tenantId: string;
|
|
52
52
|
headers: Record<string, string> | null;
|
|
53
53
|
subAgentId: string;
|
|
54
54
|
targetAgentId: string;
|
|
@@ -56,12 +56,12 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
|
|
|
56
56
|
declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
57
57
|
scopes: AgentScopeConfig;
|
|
58
58
|
}) => Promise<{
|
|
59
|
+
tenantId: string;
|
|
60
|
+
projectId: string;
|
|
59
61
|
id: string;
|
|
60
62
|
createdAt: string;
|
|
61
63
|
updatedAt: string;
|
|
62
64
|
agentId: string;
|
|
63
|
-
projectId: string;
|
|
64
|
-
tenantId: string;
|
|
65
65
|
headers: Record<string, string> | null;
|
|
66
66
|
subAgentId: string;
|
|
67
67
|
targetAgentId: string;
|
|
@@ -209,12 +209,12 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
209
209
|
headers?: Record<string, string> | null;
|
|
210
210
|
};
|
|
211
211
|
}) => Promise<{
|
|
212
|
+
tenantId: string;
|
|
213
|
+
projectId: string;
|
|
212
214
|
id: string;
|
|
213
215
|
createdAt: string;
|
|
214
216
|
updatedAt: string;
|
|
215
217
|
agentId: string;
|
|
216
|
-
projectId: string;
|
|
217
|
-
tenantId: string;
|
|
218
218
|
headers: Record<string, string> | null;
|
|
219
219
|
subAgentId: string;
|
|
220
220
|
targetAgentId: string;
|
|
@@ -226,12 +226,12 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
|
|
|
226
226
|
scopes: SubAgentScopeConfig;
|
|
227
227
|
targetAgentId: string;
|
|
228
228
|
}) => Promise<{
|
|
229
|
+
tenantId: string;
|
|
230
|
+
projectId: string;
|
|
229
231
|
id: string;
|
|
230
232
|
createdAt: string;
|
|
231
233
|
updatedAt: string;
|
|
232
234
|
agentId: string;
|
|
233
|
-
projectId: string;
|
|
234
|
-
tenantId: string;
|
|
235
235
|
headers: Record<string, string> | null;
|
|
236
236
|
subAgentId: string;
|
|
237
237
|
targetAgentId: string;
|
|
@@ -247,12 +247,12 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
247
247
|
headers?: Record<string, string> | null;
|
|
248
248
|
};
|
|
249
249
|
}) => Promise<{
|
|
250
|
+
tenantId: string;
|
|
251
|
+
projectId: string;
|
|
250
252
|
id: string;
|
|
251
253
|
createdAt: string;
|
|
252
254
|
updatedAt: string;
|
|
253
255
|
agentId: string;
|
|
254
|
-
projectId: string;
|
|
255
|
-
tenantId: string;
|
|
256
256
|
headers: Record<string, string> | null;
|
|
257
257
|
subAgentId: string;
|
|
258
258
|
targetAgentId: string;
|
|
@@ -8,14 +8,16 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
8
8
|
scopes: AgentScopeConfig;
|
|
9
9
|
subAgentId: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
-
id: string;
|
|
12
|
-
createdAt: string;
|
|
13
11
|
name: string;
|
|
14
|
-
updatedAt: string;
|
|
15
|
-
agentId: string;
|
|
16
|
-
projectId: string;
|
|
17
|
-
tenantId: string;
|
|
18
12
|
description: string | null;
|
|
13
|
+
tenantId: string;
|
|
14
|
+
projectId: string;
|
|
15
|
+
stopWhen: {
|
|
16
|
+
stepCountIs?: number | undefined;
|
|
17
|
+
} | null;
|
|
18
|
+
prompt: string | null;
|
|
19
|
+
id: string;
|
|
20
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
19
21
|
models: {
|
|
20
22
|
base?: {
|
|
21
23
|
model?: string | undefined;
|
|
@@ -30,23 +32,23 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
30
32
|
providerOptions?: Record<string, any> | undefined;
|
|
31
33
|
} | undefined;
|
|
32
34
|
} | null;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
} | null;
|
|
37
|
-
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
35
|
+
createdAt: string;
|
|
36
|
+
updatedAt: string;
|
|
37
|
+
agentId: string;
|
|
38
38
|
} | undefined>;
|
|
39
39
|
declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
40
40
|
scopes: AgentScopeConfig;
|
|
41
41
|
}) => Promise<{
|
|
42
|
-
id: string;
|
|
43
|
-
createdAt: string;
|
|
44
42
|
name: string;
|
|
45
|
-
updatedAt: string;
|
|
46
|
-
agentId: string;
|
|
47
|
-
projectId: string;
|
|
48
|
-
tenantId: string;
|
|
49
43
|
description: string | null;
|
|
44
|
+
tenantId: string;
|
|
45
|
+
projectId: string;
|
|
46
|
+
stopWhen: {
|
|
47
|
+
stepCountIs?: number | undefined;
|
|
48
|
+
} | null;
|
|
49
|
+
prompt: string | null;
|
|
50
|
+
id: string;
|
|
51
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
50
52
|
models: {
|
|
51
53
|
base?: {
|
|
52
54
|
model?: string | undefined;
|
|
@@ -61,11 +63,9 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
61
63
|
providerOptions?: Record<string, any> | undefined;
|
|
62
64
|
} | undefined;
|
|
63
65
|
} | null;
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
} | null;
|
|
68
|
-
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
66
|
+
createdAt: string;
|
|
67
|
+
updatedAt: string;
|
|
68
|
+
agentId: string;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
71
71
|
scopes: AgentScopeConfig;
|
|
@@ -108,14 +108,16 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
|
|
|
108
108
|
};
|
|
109
109
|
}>;
|
|
110
110
|
declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
111
|
-
id: string;
|
|
112
|
-
createdAt: string;
|
|
113
111
|
name: string;
|
|
114
|
-
updatedAt: string;
|
|
115
|
-
agentId: string;
|
|
116
|
-
projectId: string;
|
|
117
|
-
tenantId: string;
|
|
118
112
|
description: string | null;
|
|
113
|
+
tenantId: string;
|
|
114
|
+
projectId: string;
|
|
115
|
+
stopWhen: {
|
|
116
|
+
stepCountIs?: number | undefined;
|
|
117
|
+
} | null;
|
|
118
|
+
prompt: string | null;
|
|
119
|
+
id: string;
|
|
120
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
119
121
|
models: {
|
|
120
122
|
base?: {
|
|
121
123
|
model?: string | undefined;
|
|
@@ -130,11 +132,9 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
130
132
|
providerOptions?: Record<string, any> | undefined;
|
|
131
133
|
} | undefined;
|
|
132
134
|
} | null;
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
} | null;
|
|
137
|
-
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
135
|
+
createdAt: string;
|
|
136
|
+
updatedAt: string;
|
|
137
|
+
agentId: string;
|
|
138
138
|
}>;
|
|
139
139
|
declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
140
140
|
scopes: AgentScopeConfig;
|