@inkeep/agents-core 0.75.0 → 0.75.4
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 +227 -227
- package/dist/auth/auth-validation-schemas.d.ts +154 -154
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/client-exports.d.ts +2 -2
- package/dist/client-exports.js +2 -2
- package/dist/constants/index.d.ts +2 -2
- package/dist/constants/index.js +2 -2
- package/dist/constants/otel-attributes.d.ts +5 -3
- package/dist/constants/otel-attributes.js +5 -2
- package/dist/data-access/manage/agents.d.ts +41 -41
- 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 +16 -16
- package/dist/data-access/manage/skills.d.ts +11 -11
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgentRelations.d.ts +26 -26
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgents.d.ts +15 -15
- package/dist/data-access/manage/tools.d.ts +24 -24
- package/dist/data-access/manage/triggers.d.ts +7 -7
- package/dist/data-access/manage/webhookDestinations.js +18 -14
- package/dist/data-access/runtime/apiKeys.d.ts +16 -16
- package/dist/data-access/runtime/apps.d.ts +11 -11
- package/dist/data-access/runtime/conversations.d.ts +28 -28
- package/dist/data-access/runtime/events.d.ts +4 -4
- package/dist/data-access/runtime/feedback.d.ts +6 -6
- package/dist/data-access/runtime/messages.d.ts +24 -24
- package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
- package/dist/data-access/runtime/tasks.d.ts +6 -6
- package/dist/db/manage/manage-schema.d.ts +488 -488
- package/dist/db/runtime/runtime-schema.d.ts +449 -449
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/utils/error.d.ts +51 -51
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas/skills.d.ts +39 -39
- package/dist/validation/schemas.d.ts +2367 -2367
- package/dist/validation/schemas.js +1 -1
- package/package.json +1 -1
|
@@ -10,25 +10,25 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
10
10
|
id: string;
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
|
-
tenantId: string;
|
|
14
13
|
createdAt: string;
|
|
15
|
-
projectId: string;
|
|
16
|
-
agentId: string;
|
|
17
14
|
updatedAt: string;
|
|
18
15
|
headersSchema: unknown;
|
|
19
16
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
17
|
+
agentId: string;
|
|
18
|
+
projectId: string;
|
|
19
|
+
tenantId: string;
|
|
20
20
|
} | undefined>;
|
|
21
21
|
declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
|
|
22
22
|
scopes: AgentScopeConfig;
|
|
23
23
|
}) => Promise<{
|
|
24
24
|
id: string;
|
|
25
|
-
tenantId: string;
|
|
26
25
|
createdAt: string;
|
|
27
|
-
projectId: string;
|
|
28
|
-
agentId: string;
|
|
29
26
|
updatedAt: string;
|
|
30
27
|
headersSchema: unknown;
|
|
31
28
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
29
|
+
agentId: string;
|
|
30
|
+
projectId: string;
|
|
31
|
+
tenantId: string;
|
|
32
32
|
}[]>;
|
|
33
33
|
declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
34
34
|
scopes: AgentScopeConfig;
|
|
@@ -44,13 +44,13 @@ declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (
|
|
|
44
44
|
}>;
|
|
45
45
|
declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params: ContextConfigInsert) => Promise<{
|
|
46
46
|
id: string;
|
|
47
|
-
tenantId: string;
|
|
48
47
|
createdAt: string;
|
|
49
|
-
projectId: string;
|
|
50
|
-
agentId: string;
|
|
51
48
|
updatedAt: string;
|
|
52
49
|
headersSchema: unknown;
|
|
53
50
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
51
|
+
agentId: string;
|
|
52
|
+
projectId: string;
|
|
53
|
+
tenantId: string;
|
|
54
54
|
}>;
|
|
55
55
|
declare const updateContextConfig: (db: AgentsManageDatabaseClient) => (params: {
|
|
56
56
|
scopes: AgentScopeConfig;
|
|
@@ -84,13 +84,13 @@ declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params:
|
|
|
84
84
|
data: ContextConfigInsert;
|
|
85
85
|
}) => Promise<{
|
|
86
86
|
id: string;
|
|
87
|
-
tenantId: string;
|
|
88
87
|
createdAt: string;
|
|
89
|
-
projectId: string;
|
|
90
|
-
agentId: string;
|
|
91
88
|
updatedAt: string;
|
|
92
89
|
headersSchema: unknown;
|
|
93
90
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
91
|
+
agentId: string;
|
|
92
|
+
projectId: string;
|
|
93
|
+
tenantId: string;
|
|
94
94
|
}>;
|
|
95
95
|
//#endregion
|
|
96
96
|
export { countContextConfigs, createContextConfig, deleteContextConfig, getContextConfigById, hasContextConfig, listContextConfigs, listContextConfigsPaginated, updateContextConfig, upsertContextConfig };
|
|
@@ -66,10 +66,10 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
|
|
|
66
66
|
dataComponentId: string;
|
|
67
67
|
}) => Promise<{
|
|
68
68
|
id: string;
|
|
69
|
-
tenantId: string;
|
|
70
69
|
createdAt: string;
|
|
71
|
-
projectId: string;
|
|
72
70
|
agentId: string;
|
|
71
|
+
projectId: string;
|
|
72
|
+
tenantId: string;
|
|
73
73
|
subAgentId: string;
|
|
74
74
|
dataComponentId: string;
|
|
75
75
|
}>;
|
|
@@ -108,10 +108,10 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
|
|
|
108
108
|
dataComponentId: string;
|
|
109
109
|
}) => Promise<{
|
|
110
110
|
id: string;
|
|
111
|
-
tenantId: string;
|
|
112
111
|
createdAt: string;
|
|
113
|
-
projectId: string;
|
|
114
112
|
agentId: string;
|
|
113
|
+
projectId: string;
|
|
114
|
+
tenantId: string;
|
|
115
115
|
subAgentId: string;
|
|
116
116
|
dataComponentId: string;
|
|
117
117
|
} | null>;
|
|
@@ -54,13 +54,13 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
54
54
|
scopes: AgentScopeConfig;
|
|
55
55
|
}) => Promise<{
|
|
56
56
|
id: string;
|
|
57
|
-
tenantId: string;
|
|
58
|
-
createdAt: string;
|
|
59
57
|
name: string;
|
|
58
|
+
createdAt: string;
|
|
59
|
+
updatedAt: string;
|
|
60
60
|
description: string | null;
|
|
61
|
-
projectId: string;
|
|
62
61
|
agentId: string;
|
|
63
|
-
|
|
62
|
+
projectId: string;
|
|
63
|
+
tenantId: string;
|
|
64
64
|
functionId: string;
|
|
65
65
|
}>;
|
|
66
66
|
/**
|
|
@@ -96,13 +96,13 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
96
96
|
scopes: AgentScopeConfig;
|
|
97
97
|
}) => Promise<{
|
|
98
98
|
id: string;
|
|
99
|
-
tenantId: string;
|
|
100
|
-
createdAt: string;
|
|
101
99
|
name: string;
|
|
100
|
+
createdAt: string;
|
|
101
|
+
updatedAt: string;
|
|
102
102
|
description: string | null;
|
|
103
|
-
projectId: string;
|
|
104
103
|
agentId: string;
|
|
105
|
-
|
|
104
|
+
projectId: string;
|
|
105
|
+
tenantId: string;
|
|
106
106
|
functionId: string;
|
|
107
107
|
}>;
|
|
108
108
|
declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -158,16 +158,16 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
|
|
|
158
158
|
}> | null;
|
|
159
159
|
}) => Promise<{
|
|
160
160
|
id: string;
|
|
161
|
-
tenantId: string;
|
|
162
161
|
createdAt: string;
|
|
163
|
-
|
|
162
|
+
updatedAt: string;
|
|
164
163
|
agentId: string;
|
|
164
|
+
projectId: string;
|
|
165
|
+
tenantId: string;
|
|
165
166
|
subAgentId: string;
|
|
166
|
-
|
|
167
|
+
functionToolId: string;
|
|
167
168
|
toolPolicies: Record<string, {
|
|
168
169
|
needsApproval?: boolean;
|
|
169
170
|
}> | null;
|
|
170
|
-
functionToolId: string;
|
|
171
171
|
}>;
|
|
172
172
|
/**
|
|
173
173
|
* Update an agent-function tool relation
|
|
@@ -223,16 +223,16 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
|
|
|
223
223
|
}> | null;
|
|
224
224
|
}) => Promise<{
|
|
225
225
|
id: string;
|
|
226
|
-
tenantId: string;
|
|
227
226
|
createdAt: string;
|
|
228
|
-
|
|
227
|
+
updatedAt: string;
|
|
229
228
|
agentId: string;
|
|
229
|
+
projectId: string;
|
|
230
|
+
tenantId: string;
|
|
230
231
|
subAgentId: string;
|
|
231
|
-
|
|
232
|
+
functionToolId: string;
|
|
232
233
|
toolPolicies: Record<string, {
|
|
233
234
|
needsApproval?: boolean;
|
|
234
235
|
}> | null;
|
|
235
|
-
functionToolId: string;
|
|
236
236
|
}>;
|
|
237
237
|
//#endregion
|
|
238
238
|
export { addFunctionToolToSubAgent, associateFunctionToolWithSubAgent, createFunctionTool, deleteFunctionTool, getFunctionToolById, getFunctionToolsForSubAgent, getSubAgentsUsingFunctionTool, isFunctionToolAssociatedWithSubAgent, listFunctionTools, removeFunctionToolFromSubAgent, updateFunctionTool, updateSubAgentFunctionToolRelation, upsertFunctionTool, upsertSubAgentFunctionToolRelation };
|
|
@@ -16,14 +16,14 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
16
16
|
skillId: string;
|
|
17
17
|
}) => Promise<{
|
|
18
18
|
id: string;
|
|
19
|
-
tenantId: string;
|
|
20
|
-
createdAt: string;
|
|
21
19
|
name: string;
|
|
20
|
+
createdAt: string;
|
|
21
|
+
updatedAt: string;
|
|
22
22
|
metadata: Record<string, string> | null;
|
|
23
23
|
description: string;
|
|
24
|
-
content: string;
|
|
25
24
|
projectId: string;
|
|
26
|
-
|
|
25
|
+
tenantId: string;
|
|
26
|
+
content: string;
|
|
27
27
|
} | null>;
|
|
28
28
|
declare const getSkillByIdWithFiles: (db: AgentsManageDatabaseClient) => (params: {
|
|
29
29
|
scopes: ProjectScopeConfig;
|
|
@@ -111,14 +111,14 @@ interface WithTenantIdProjectId {
|
|
|
111
111
|
declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillApiInsert & WithTenantIdProjectId) => Promise<SkillRecordWithFiles>;
|
|
112
112
|
declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillApiInsert & WithTenantIdProjectId) => Promise<{
|
|
113
113
|
id: string;
|
|
114
|
-
tenantId: string;
|
|
115
|
-
createdAt: string;
|
|
116
114
|
name: string;
|
|
115
|
+
createdAt: string;
|
|
116
|
+
updatedAt: string;
|
|
117
117
|
metadata: Record<string, string> | null;
|
|
118
118
|
description: string;
|
|
119
|
-
content: string;
|
|
120
119
|
projectId: string;
|
|
121
|
-
|
|
120
|
+
tenantId: string;
|
|
121
|
+
content: string;
|
|
122
122
|
}>;
|
|
123
123
|
declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
|
|
124
124
|
scopes: ProjectScopeConfig;
|
|
@@ -140,12 +140,12 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
|
|
|
140
140
|
alwaysLoaded?: boolean;
|
|
141
141
|
}) => Promise<{
|
|
142
142
|
id: string;
|
|
143
|
-
tenantId: string;
|
|
144
143
|
createdAt: string;
|
|
145
|
-
|
|
144
|
+
updatedAt: string;
|
|
146
145
|
agentId: string;
|
|
146
|
+
projectId: string;
|
|
147
|
+
tenantId: string;
|
|
147
148
|
subAgentId: string;
|
|
148
|
-
updatedAt: string;
|
|
149
149
|
index: number;
|
|
150
150
|
alwaysLoaded: boolean;
|
|
151
151
|
skillId: string;
|
|
@@ -10,13 +10,13 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
|
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
|
-
tenantId: string;
|
|
14
13
|
createdAt: string;
|
|
15
|
-
projectId: string;
|
|
16
|
-
agentId: string;
|
|
17
|
-
subAgentId: string;
|
|
18
14
|
updatedAt: string;
|
|
19
15
|
headers: Record<string, string> | null;
|
|
16
|
+
agentId: string;
|
|
17
|
+
projectId: string;
|
|
18
|
+
tenantId: string;
|
|
19
|
+
subAgentId: string;
|
|
20
20
|
externalAgentId: string;
|
|
21
21
|
} | undefined>;
|
|
22
22
|
declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -45,26 +45,26 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
|
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
47
|
id: string;
|
|
48
|
-
tenantId: string;
|
|
49
48
|
createdAt: string;
|
|
50
|
-
projectId: string;
|
|
51
|
-
agentId: string;
|
|
52
|
-
subAgentId: string;
|
|
53
49
|
updatedAt: string;
|
|
54
50
|
headers: Record<string, string> | null;
|
|
51
|
+
agentId: string;
|
|
52
|
+
projectId: string;
|
|
53
|
+
tenantId: string;
|
|
54
|
+
subAgentId: string;
|
|
55
55
|
externalAgentId: string;
|
|
56
56
|
}[]>;
|
|
57
57
|
declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
60
|
id: string;
|
|
61
|
-
tenantId: string;
|
|
62
61
|
createdAt: string;
|
|
63
|
-
projectId: string;
|
|
64
|
-
agentId: string;
|
|
65
|
-
subAgentId: string;
|
|
66
62
|
updatedAt: string;
|
|
67
63
|
headers: Record<string, string> | null;
|
|
64
|
+
agentId: string;
|
|
65
|
+
projectId: string;
|
|
66
|
+
tenantId: string;
|
|
67
|
+
subAgentId: string;
|
|
68
68
|
externalAgentId: string;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -187,13 +187,13 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
187
187
|
};
|
|
188
188
|
}) => Promise<{
|
|
189
189
|
id: string;
|
|
190
|
-
tenantId: string;
|
|
191
190
|
createdAt: string;
|
|
192
|
-
projectId: string;
|
|
193
|
-
agentId: string;
|
|
194
|
-
subAgentId: string;
|
|
195
191
|
updatedAt: string;
|
|
196
192
|
headers: Record<string, string> | null;
|
|
193
|
+
agentId: string;
|
|
194
|
+
projectId: string;
|
|
195
|
+
tenantId: string;
|
|
196
|
+
subAgentId: string;
|
|
197
197
|
externalAgentId: string;
|
|
198
198
|
}>;
|
|
199
199
|
/**
|
|
@@ -204,13 +204,13 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
|
|
|
204
204
|
externalAgentId: string;
|
|
205
205
|
}) => Promise<{
|
|
206
206
|
id: string;
|
|
207
|
-
tenantId: string;
|
|
208
207
|
createdAt: string;
|
|
209
|
-
projectId: string;
|
|
210
|
-
agentId: string;
|
|
211
|
-
subAgentId: string;
|
|
212
208
|
updatedAt: string;
|
|
213
209
|
headers: Record<string, string> | null;
|
|
210
|
+
agentId: string;
|
|
211
|
+
projectId: string;
|
|
212
|
+
tenantId: string;
|
|
213
|
+
subAgentId: string;
|
|
214
214
|
externalAgentId: string;
|
|
215
215
|
} | undefined>;
|
|
216
216
|
/**
|
|
@@ -225,13 +225,13 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
225
225
|
};
|
|
226
226
|
}) => Promise<{
|
|
227
227
|
id: string;
|
|
228
|
-
tenantId: string;
|
|
229
228
|
createdAt: string;
|
|
230
|
-
projectId: string;
|
|
231
|
-
agentId: string;
|
|
232
|
-
subAgentId: string;
|
|
233
229
|
updatedAt: string;
|
|
234
230
|
headers: Record<string, string> | null;
|
|
231
|
+
agentId: string;
|
|
232
|
+
projectId: string;
|
|
233
|
+
tenantId: string;
|
|
234
|
+
subAgentId: string;
|
|
235
235
|
externalAgentId: string;
|
|
236
236
|
}>;
|
|
237
237
|
declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -10,11 +10,11 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
|
-
tenantId: string;
|
|
14
13
|
createdAt: string;
|
|
15
|
-
projectId: string;
|
|
16
|
-
agentId: string;
|
|
17
14
|
updatedAt: string;
|
|
15
|
+
agentId: string;
|
|
16
|
+
projectId: string;
|
|
17
|
+
tenantId: string;
|
|
18
18
|
sourceSubAgentId: string;
|
|
19
19
|
targetSubAgentId: string | null;
|
|
20
20
|
relationType: string | null;
|
|
@@ -45,11 +45,11 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
47
|
id: string;
|
|
48
|
-
tenantId: string;
|
|
49
48
|
createdAt: string;
|
|
50
|
-
projectId: string;
|
|
51
|
-
agentId: string;
|
|
52
49
|
updatedAt: string;
|
|
50
|
+
agentId: string;
|
|
51
|
+
projectId: string;
|
|
52
|
+
tenantId: string;
|
|
53
53
|
sourceSubAgentId: string;
|
|
54
54
|
targetSubAgentId: string | null;
|
|
55
55
|
relationType: string | null;
|
|
@@ -58,11 +58,11 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
|
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
60
|
id: string;
|
|
61
|
-
tenantId: string;
|
|
62
61
|
createdAt: string;
|
|
63
|
-
projectId: string;
|
|
64
|
-
agentId: string;
|
|
65
62
|
updatedAt: string;
|
|
63
|
+
agentId: string;
|
|
64
|
+
projectId: string;
|
|
65
|
+
tenantId: string;
|
|
66
66
|
sourceSubAgentId: string;
|
|
67
67
|
targetSubAgentId: string | null;
|
|
68
68
|
relationType: string | null;
|
|
@@ -127,11 +127,11 @@ declare const getRelatedAgentsForAgent: (db: AgentsManageDatabaseClient) => (par
|
|
|
127
127
|
}>;
|
|
128
128
|
declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
129
129
|
id: string;
|
|
130
|
-
tenantId: string;
|
|
131
130
|
createdAt: string;
|
|
132
|
-
projectId: string;
|
|
133
|
-
agentId: string;
|
|
134
131
|
updatedAt: string;
|
|
132
|
+
agentId: string;
|
|
133
|
+
projectId: string;
|
|
134
|
+
tenantId: string;
|
|
135
135
|
sourceSubAgentId: string;
|
|
136
136
|
targetSubAgentId: string | null;
|
|
137
137
|
relationType: string | null;
|
|
@@ -146,11 +146,11 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
146
146
|
relationType: string;
|
|
147
147
|
}) => Promise<{
|
|
148
148
|
id: string;
|
|
149
|
-
tenantId: string;
|
|
150
149
|
createdAt: string;
|
|
151
|
-
projectId: string;
|
|
152
|
-
agentId: string;
|
|
153
150
|
updatedAt: string;
|
|
151
|
+
agentId: string;
|
|
152
|
+
projectId: string;
|
|
153
|
+
tenantId: string;
|
|
154
154
|
sourceSubAgentId: string;
|
|
155
155
|
targetSubAgentId: string | null;
|
|
156
156
|
relationType: string | null;
|
|
@@ -160,11 +160,11 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
160
160
|
*/
|
|
161
161
|
declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
162
162
|
id: string;
|
|
163
|
-
tenantId: string;
|
|
164
163
|
createdAt: string;
|
|
165
|
-
projectId: string;
|
|
166
|
-
agentId: string;
|
|
167
164
|
updatedAt: string;
|
|
165
|
+
agentId: string;
|
|
166
|
+
projectId: string;
|
|
167
|
+
tenantId: string;
|
|
168
168
|
sourceSubAgentId: string;
|
|
169
169
|
targetSubAgentId: string | null;
|
|
170
170
|
relationType: string | null;
|
|
@@ -205,14 +205,14 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
205
205
|
};
|
|
206
206
|
}) => Promise<{
|
|
207
207
|
id: string;
|
|
208
|
-
tenantId: string;
|
|
209
208
|
createdAt: string;
|
|
210
|
-
|
|
209
|
+
updatedAt: string;
|
|
210
|
+
headers: Record<string, string> | null;
|
|
211
211
|
agentId: string;
|
|
212
|
+
projectId: string;
|
|
213
|
+
tenantId: string;
|
|
212
214
|
subAgentId: string;
|
|
213
215
|
toolId: string;
|
|
214
|
-
updatedAt: string;
|
|
215
|
-
headers: Record<string, string> | null;
|
|
216
216
|
toolPolicies: Record<string, {
|
|
217
217
|
needsApproval?: boolean;
|
|
218
218
|
}> | null;
|
|
@@ -249,14 +249,14 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
|
|
|
249
249
|
relationId: string;
|
|
250
250
|
}) => Promise<{
|
|
251
251
|
id: string;
|
|
252
|
-
tenantId: string;
|
|
253
252
|
createdAt: string;
|
|
254
|
-
|
|
253
|
+
updatedAt: string;
|
|
254
|
+
headers: Record<string, string> | null;
|
|
255
255
|
agentId: string;
|
|
256
|
+
projectId: string;
|
|
257
|
+
tenantId: string;
|
|
256
258
|
subAgentId: string;
|
|
257
259
|
toolId: string;
|
|
258
|
-
updatedAt: string;
|
|
259
|
-
headers: Record<string, string> | null;
|
|
260
260
|
toolPolicies: Record<string, {
|
|
261
261
|
needsApproval?: boolean;
|
|
262
262
|
}> | null;
|
|
@@ -10,13 +10,13 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
|
-
tenantId: string;
|
|
14
13
|
createdAt: string;
|
|
15
|
-
projectId: string;
|
|
16
|
-
agentId: string;
|
|
17
|
-
subAgentId: string;
|
|
18
14
|
updatedAt: string;
|
|
19
15
|
headers: Record<string, string> | null;
|
|
16
|
+
agentId: string;
|
|
17
|
+
projectId: string;
|
|
18
|
+
tenantId: string;
|
|
19
|
+
subAgentId: string;
|
|
20
20
|
targetAgentId: string;
|
|
21
21
|
} | undefined>;
|
|
22
22
|
declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -45,26 +45,26 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
|
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
47
|
id: string;
|
|
48
|
-
tenantId: string;
|
|
49
48
|
createdAt: string;
|
|
50
|
-
projectId: string;
|
|
51
|
-
agentId: string;
|
|
52
|
-
subAgentId: string;
|
|
53
49
|
updatedAt: string;
|
|
54
50
|
headers: Record<string, string> | null;
|
|
51
|
+
agentId: string;
|
|
52
|
+
projectId: string;
|
|
53
|
+
tenantId: string;
|
|
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
60
|
id: string;
|
|
61
|
-
tenantId: string;
|
|
62
61
|
createdAt: string;
|
|
63
|
-
projectId: string;
|
|
64
|
-
agentId: string;
|
|
65
|
-
subAgentId: string;
|
|
66
62
|
updatedAt: string;
|
|
67
63
|
headers: Record<string, string> | null;
|
|
64
|
+
agentId: string;
|
|
65
|
+
projectId: string;
|
|
66
|
+
tenantId: string;
|
|
67
|
+
subAgentId: string;
|
|
68
68
|
targetAgentId: string;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -223,13 +223,13 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
223
223
|
};
|
|
224
224
|
}) => Promise<{
|
|
225
225
|
id: string;
|
|
226
|
-
tenantId: string;
|
|
227
226
|
createdAt: string;
|
|
228
|
-
projectId: string;
|
|
229
|
-
agentId: string;
|
|
230
|
-
subAgentId: string;
|
|
231
227
|
updatedAt: string;
|
|
232
228
|
headers: Record<string, string> | null;
|
|
229
|
+
agentId: string;
|
|
230
|
+
projectId: string;
|
|
231
|
+
tenantId: string;
|
|
232
|
+
subAgentId: string;
|
|
233
233
|
targetAgentId: string;
|
|
234
234
|
}>;
|
|
235
235
|
/**
|
|
@@ -240,13 +240,13 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
|
|
|
240
240
|
targetAgentId: string;
|
|
241
241
|
}) => Promise<{
|
|
242
242
|
id: string;
|
|
243
|
-
tenantId: string;
|
|
244
243
|
createdAt: string;
|
|
245
|
-
projectId: string;
|
|
246
|
-
agentId: string;
|
|
247
|
-
subAgentId: string;
|
|
248
244
|
updatedAt: string;
|
|
249
245
|
headers: Record<string, string> | null;
|
|
246
|
+
agentId: string;
|
|
247
|
+
projectId: string;
|
|
248
|
+
tenantId: string;
|
|
249
|
+
subAgentId: string;
|
|
250
250
|
targetAgentId: string;
|
|
251
251
|
} | undefined>;
|
|
252
252
|
/**
|
|
@@ -261,13 +261,13 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
261
261
|
};
|
|
262
262
|
}) => Promise<{
|
|
263
263
|
id: string;
|
|
264
|
-
tenantId: string;
|
|
265
264
|
createdAt: string;
|
|
266
|
-
projectId: string;
|
|
267
|
-
agentId: string;
|
|
268
|
-
subAgentId: string;
|
|
269
265
|
updatedAt: string;
|
|
270
266
|
headers: Record<string, string> | null;
|
|
267
|
+
agentId: string;
|
|
268
|
+
projectId: string;
|
|
269
|
+
tenantId: string;
|
|
270
|
+
subAgentId: string;
|
|
271
271
|
targetAgentId: string;
|
|
272
272
|
}>;
|
|
273
273
|
declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -10,12 +10,14 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
10
10
|
subAgentId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
|
-
tenantId: string;
|
|
14
|
-
createdAt: string;
|
|
15
13
|
name: string;
|
|
14
|
+
createdAt: string;
|
|
15
|
+
updatedAt: string;
|
|
16
16
|
description: string | null;
|
|
17
|
-
|
|
17
|
+
prompt: string | null;
|
|
18
18
|
agentId: string;
|
|
19
|
+
projectId: string;
|
|
20
|
+
tenantId: string;
|
|
19
21
|
models: {
|
|
20
22
|
base?: {
|
|
21
23
|
model?: string | undefined;
|
|
@@ -39,8 +41,6 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
39
41
|
stopWhen: {
|
|
40
42
|
stepCountIs?: number | undefined;
|
|
41
43
|
} | null;
|
|
42
|
-
updatedAt: string;
|
|
43
|
-
prompt: string | null;
|
|
44
44
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
45
45
|
outputContract: {
|
|
46
46
|
[x: string]: unknown;
|
|
@@ -56,12 +56,14 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
56
56
|
scopes: AgentScopeConfig;
|
|
57
57
|
}) => Promise<{
|
|
58
58
|
id: string;
|
|
59
|
-
tenantId: string;
|
|
60
|
-
createdAt: string;
|
|
61
59
|
name: string;
|
|
60
|
+
createdAt: string;
|
|
61
|
+
updatedAt: string;
|
|
62
62
|
description: string | null;
|
|
63
|
-
|
|
63
|
+
prompt: string | null;
|
|
64
64
|
agentId: string;
|
|
65
|
+
projectId: string;
|
|
66
|
+
tenantId: string;
|
|
65
67
|
models: {
|
|
66
68
|
base?: {
|
|
67
69
|
model?: string | undefined;
|
|
@@ -85,8 +87,6 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
85
87
|
stopWhen: {
|
|
86
88
|
stepCountIs?: number | undefined;
|
|
87
89
|
} | null;
|
|
88
|
-
updatedAt: string;
|
|
89
|
-
prompt: string | null;
|
|
90
90
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
91
91
|
outputContract: {
|
|
92
92
|
[x: string]: unknown;
|
|
@@ -155,12 +155,14 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
|
|
|
155
155
|
}>;
|
|
156
156
|
declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
157
157
|
id: string;
|
|
158
|
-
tenantId: string;
|
|
159
|
-
createdAt: string;
|
|
160
158
|
name: string;
|
|
159
|
+
createdAt: string;
|
|
160
|
+
updatedAt: string;
|
|
161
161
|
description: string | null;
|
|
162
|
-
|
|
162
|
+
prompt: string | null;
|
|
163
163
|
agentId: string;
|
|
164
|
+
projectId: string;
|
|
165
|
+
tenantId: string;
|
|
164
166
|
models: {
|
|
165
167
|
base?: {
|
|
166
168
|
model?: string | undefined;
|
|
@@ -184,8 +186,6 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
184
186
|
stopWhen: {
|
|
185
187
|
stepCountIs?: number | undefined;
|
|
186
188
|
} | null;
|
|
187
|
-
updatedAt: string;
|
|
188
|
-
prompt: string | null;
|
|
189
189
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
190
190
|
outputContract: {
|
|
191
191
|
[x: string]: unknown;
|