@inkeep/agents-core 0.62.2 → 0.63.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/auth/auth-config-utils.js +1 -1
- package/dist/auth/auth.d.ts +6 -6
- package/dist/auth/auth.js +1 -1
- 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 +4 -7
- package/dist/data-access/index.js +4 -7
- package/dist/data-access/manage/agentFull.js +0 -116
- package/dist/data-access/manage/agents.d.ts +41 -41
- package/dist/data-access/manage/agents.js +0 -30
- package/dist/data-access/manage/artifactComponents.d.ts +10 -10
- package/dist/data-access/manage/audit-queries.d.ts +1 -14
- package/dist/data-access/manage/audit-queries.js +2 -16
- 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 +14 -14
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgentRelations.d.ts +28 -28
- 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 +30 -30
- package/dist/data-access/manage/triggerCleanup.js +18 -7
- package/dist/data-access/manage/triggers.d.ts +2 -2
- 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/cascade-delete.d.ts +2 -0
- package/dist/data-access/runtime/cascade-delete.js +13 -6
- package/dist/data-access/runtime/conversations.d.ts +24 -24
- package/dist/data-access/runtime/messages.d.ts +18 -18
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +2 -1
- package/dist/data-access/runtime/scheduledTriggers.d.ts +89 -0
- package/dist/data-access/runtime/scheduledTriggers.js +91 -0
- package/dist/data-access/runtime/schedulerState.d.ts +11 -0
- package/dist/data-access/runtime/schedulerState.js +30 -0
- package/dist/data-access/runtime/tasks.d.ts +6 -6
- package/dist/data-reconciliation/index.d.ts +2 -2
- package/dist/data-reconciliation/types.d.ts +1 -28
- package/dist/db/manage/manage-schema.d.ts +433 -787
- package/dist/db/manage/manage-schema.js +2 -4
- package/dist/db/runtime/runtime-schema.d.ts +807 -346
- package/dist/db/runtime/runtime-schema.js +38 -5
- package/dist/index.d.ts +11 -12
- package/dist/index.js +8 -10
- package/dist/types/entities.d.ts +12 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/utils/compute-next-run-at.d.ts +9 -0
- package/dist/utils/compute-next-run-at.js +18 -0
- package/dist/utils/error.d.ts +51 -51
- package/dist/utils/index.d.ts +2 -1
- package/dist/utils/index.js +2 -1
- package/dist/validation/index.d.ts +2 -2
- package/dist/validation/index.js +2 -2
- package/dist/validation/schemas.d.ts +1062 -2042
- package/dist/validation/schemas.js +16 -32
- package/drizzle/runtime/0028_thick_squirrel_girl.sql +36 -0
- package/drizzle/runtime/meta/0028_snapshot.json +4661 -0
- package/drizzle/runtime/meta/_journal.json +7 -0
- package/package.json +2 -1
- package/dist/data-access/manage/scheduledTriggers.d.ts +0 -91
- package/dist/data-access/manage/scheduledTriggers.js +0 -87
- package/dist/data-access/manage/scheduledWorkflows.d.ts +0 -29
- package/dist/data-access/manage/scheduledWorkflows.js +0 -33
|
@@ -9,26 +9,26 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
9
9
|
scopes: AgentScopeConfig;
|
|
10
10
|
id: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
+
tenantId: string;
|
|
13
|
+
projectId: string;
|
|
14
|
+
agentId: string;
|
|
12
15
|
id: string;
|
|
13
16
|
createdAt: string;
|
|
14
17
|
updatedAt: string;
|
|
15
|
-
tenantId: string;
|
|
16
|
-
projectId: string;
|
|
17
18
|
headersSchema: unknown;
|
|
18
19
|
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
|
+
tenantId: string;
|
|
25
|
+
projectId: string;
|
|
26
|
+
agentId: string;
|
|
24
27
|
id: string;
|
|
25
28
|
createdAt: string;
|
|
26
29
|
updatedAt: string;
|
|
27
|
-
tenantId: string;
|
|
28
|
-
projectId: string;
|
|
29
30
|
headersSchema: unknown;
|
|
30
31
|
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
|
+
tenantId: string;
|
|
47
|
+
projectId: string;
|
|
48
|
+
agentId: string;
|
|
46
49
|
id: string;
|
|
47
50
|
createdAt: string;
|
|
48
51
|
updatedAt: string;
|
|
49
|
-
tenantId: string;
|
|
50
|
-
projectId: string;
|
|
51
52
|
headersSchema: unknown;
|
|
52
53
|
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
|
+
tenantId: string;
|
|
87
|
+
projectId: string;
|
|
88
|
+
agentId: string;
|
|
86
89
|
id: string;
|
|
87
90
|
createdAt: string;
|
|
88
91
|
updatedAt: string;
|
|
89
|
-
tenantId: string;
|
|
90
|
-
projectId: string;
|
|
91
92
|
headersSchema: unknown;
|
|
92
93
|
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,12 +65,12 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
|
|
|
65
65
|
scopes: SubAgentScopeConfig;
|
|
66
66
|
dataComponentId: string;
|
|
67
67
|
}) => Promise<{
|
|
68
|
-
id: string;
|
|
69
|
-
createdAt: string;
|
|
70
68
|
tenantId: string;
|
|
71
69
|
projectId: string;
|
|
72
70
|
agentId: string;
|
|
73
71
|
subAgentId: string;
|
|
72
|
+
id: string;
|
|
73
|
+
createdAt: string;
|
|
74
74
|
dataComponentId: string;
|
|
75
75
|
}>;
|
|
76
76
|
/**
|
|
@@ -107,12 +107,12 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
|
|
|
107
107
|
scopes: SubAgentScopeConfig;
|
|
108
108
|
dataComponentId: string;
|
|
109
109
|
}) => Promise<{
|
|
110
|
-
id: string;
|
|
111
|
-
createdAt: string;
|
|
112
110
|
tenantId: string;
|
|
113
111
|
projectId: string;
|
|
114
112
|
agentId: string;
|
|
115
113
|
subAgentId: string;
|
|
114
|
+
id: string;
|
|
115
|
+
createdAt: string;
|
|
116
116
|
dataComponentId: string;
|
|
117
117
|
} | null>;
|
|
118
118
|
/**
|
|
@@ -53,14 +53,14 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
53
53
|
data: FunctionToolApiInsert;
|
|
54
54
|
scopes: AgentScopeConfig;
|
|
55
55
|
}) => Promise<{
|
|
56
|
-
id: string;
|
|
57
|
-
name: string;
|
|
58
|
-
createdAt: string;
|
|
59
|
-
updatedAt: string;
|
|
60
56
|
description: string | null;
|
|
61
57
|
tenantId: string;
|
|
62
58
|
projectId: string;
|
|
63
59
|
agentId: string;
|
|
60
|
+
id: string;
|
|
61
|
+
name: 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
|
-
id: string;
|
|
99
|
-
name: string;
|
|
100
|
-
createdAt: string;
|
|
101
|
-
updatedAt: string;
|
|
102
98
|
description: string | null;
|
|
103
99
|
tenantId: string;
|
|
104
100
|
projectId: string;
|
|
105
101
|
agentId: string;
|
|
102
|
+
id: string;
|
|
103
|
+
name: string;
|
|
104
|
+
createdAt: string;
|
|
105
|
+
updatedAt: string;
|
|
106
106
|
functionId: string;
|
|
107
107
|
}>;
|
|
108
108
|
declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -157,17 +157,17 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
|
|
|
157
157
|
needsApproval?: boolean;
|
|
158
158
|
}> | null;
|
|
159
159
|
}) => Promise<{
|
|
160
|
-
id: string;
|
|
161
|
-
createdAt: string;
|
|
162
|
-
updatedAt: string;
|
|
163
160
|
tenantId: string;
|
|
164
161
|
projectId: string;
|
|
165
162
|
agentId: string;
|
|
166
163
|
subAgentId: string;
|
|
167
|
-
|
|
164
|
+
id: string;
|
|
165
|
+
createdAt: string;
|
|
166
|
+
updatedAt: string;
|
|
168
167
|
toolPolicies: Record<string, {
|
|
169
168
|
needsApproval?: boolean;
|
|
170
169
|
}> | null;
|
|
170
|
+
functionToolId: string;
|
|
171
171
|
}>;
|
|
172
172
|
/**
|
|
173
173
|
* Update an agent-function tool relation
|
|
@@ -222,17 +222,17 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
|
|
|
222
222
|
needsApproval?: boolean;
|
|
223
223
|
}> | null;
|
|
224
224
|
}) => Promise<{
|
|
225
|
-
id: string;
|
|
226
|
-
createdAt: string;
|
|
227
|
-
updatedAt: string;
|
|
228
225
|
tenantId: string;
|
|
229
226
|
projectId: string;
|
|
230
227
|
agentId: string;
|
|
231
228
|
subAgentId: string;
|
|
232
|
-
|
|
229
|
+
id: string;
|
|
230
|
+
createdAt: string;
|
|
231
|
+
updatedAt: string;
|
|
233
232
|
toolPolicies: Record<string, {
|
|
234
233
|
needsApproval?: boolean;
|
|
235
234
|
}> | 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 };
|
|
@@ -8,15 +8,15 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
8
8
|
scopes: ProjectScopeConfig;
|
|
9
9
|
skillId: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
+
description: string;
|
|
12
|
+
tenantId: string;
|
|
13
|
+
projectId: string;
|
|
11
14
|
id: string;
|
|
12
15
|
name: string;
|
|
13
16
|
createdAt: string;
|
|
14
17
|
updatedAt: string;
|
|
15
|
-
metadata: Record<string, string> | null;
|
|
16
|
-
description: string;
|
|
17
18
|
content: string;
|
|
18
|
-
|
|
19
|
-
projectId: string;
|
|
19
|
+
metadata: Record<string, string> | null;
|
|
20
20
|
} | null>;
|
|
21
21
|
declare const listSkills: (db: AgentsManageDatabaseClient) => (params: {
|
|
22
22
|
scopes: ProjectScopeConfig;
|
|
@@ -41,26 +41,26 @@ declare const listSkills: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
41
41
|
};
|
|
42
42
|
}>;
|
|
43
43
|
declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
|
|
44
|
+
description: string;
|
|
45
|
+
tenantId: string;
|
|
46
|
+
projectId: string;
|
|
44
47
|
id: string;
|
|
45
48
|
name: string;
|
|
46
49
|
createdAt: string;
|
|
47
50
|
updatedAt: string;
|
|
51
|
+
content: string;
|
|
48
52
|
metadata: Record<string, string> | null;
|
|
53
|
+
}>;
|
|
54
|
+
declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
|
|
49
55
|
description: string;
|
|
50
|
-
content: string;
|
|
51
56
|
tenantId: string;
|
|
52
57
|
projectId: string;
|
|
53
|
-
}>;
|
|
54
|
-
declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
|
|
55
58
|
id: string;
|
|
56
59
|
name: string;
|
|
57
60
|
createdAt: string;
|
|
58
61
|
updatedAt: string;
|
|
59
|
-
metadata: Record<string, string> | null;
|
|
60
|
-
description: string;
|
|
61
62
|
content: string;
|
|
62
|
-
|
|
63
|
-
projectId: string;
|
|
63
|
+
metadata: Record<string, string> | null;
|
|
64
64
|
}>;
|
|
65
65
|
declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
|
|
66
66
|
scopes: ProjectScopeConfig;
|
|
@@ -91,13 +91,13 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
|
|
|
91
91
|
index: number;
|
|
92
92
|
alwaysLoaded?: boolean;
|
|
93
93
|
}) => Promise<{
|
|
94
|
-
id: string;
|
|
95
|
-
createdAt: string;
|
|
96
|
-
updatedAt: string;
|
|
97
94
|
tenantId: string;
|
|
98
95
|
projectId: string;
|
|
99
96
|
agentId: string;
|
|
100
97
|
subAgentId: string;
|
|
98
|
+
id: string;
|
|
99
|
+
createdAt: string;
|
|
100
|
+
updatedAt: string;
|
|
101
101
|
skillId: string;
|
|
102
102
|
index: number;
|
|
103
103
|
alwaysLoaded: boolean;
|
|
@@ -9,14 +9,14 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
|
|
|
9
9
|
scopes: SubAgentScopeConfig;
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
id: string;
|
|
13
|
-
createdAt: string;
|
|
14
|
-
updatedAt: string;
|
|
15
|
-
headers: Record<string, string> | null;
|
|
16
12
|
tenantId: string;
|
|
17
13
|
projectId: string;
|
|
18
14
|
agentId: string;
|
|
19
15
|
subAgentId: string;
|
|
16
|
+
id: string;
|
|
17
|
+
createdAt: string;
|
|
18
|
+
updatedAt: string;
|
|
19
|
+
headers: Record<string, string> | null;
|
|
20
20
|
externalAgentId: string;
|
|
21
21
|
} | undefined>;
|
|
22
22
|
declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -44,27 +44,27 @@ declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClien
|
|
|
44
44
|
declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
|
-
id: string;
|
|
48
|
-
createdAt: string;
|
|
49
|
-
updatedAt: string;
|
|
50
|
-
headers: Record<string, string> | null;
|
|
51
47
|
tenantId: string;
|
|
52
48
|
projectId: string;
|
|
53
49
|
agentId: string;
|
|
54
50
|
subAgentId: string;
|
|
51
|
+
id: string;
|
|
52
|
+
createdAt: string;
|
|
53
|
+
updatedAt: string;
|
|
54
|
+
headers: Record<string, string> | null;
|
|
55
55
|
externalAgentId: string;
|
|
56
56
|
}[]>;
|
|
57
57
|
declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
|
-
id: string;
|
|
61
|
-
createdAt: string;
|
|
62
|
-
updatedAt: string;
|
|
63
|
-
headers: Record<string, string> | null;
|
|
64
60
|
tenantId: string;
|
|
65
61
|
projectId: string;
|
|
66
62
|
agentId: string;
|
|
67
63
|
subAgentId: string;
|
|
64
|
+
id: string;
|
|
65
|
+
createdAt: string;
|
|
66
|
+
updatedAt: string;
|
|
67
|
+
headers: Record<string, string> | null;
|
|
68
68
|
externalAgentId: string;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -180,14 +180,14 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
180
180
|
headers?: Record<string, string> | null;
|
|
181
181
|
};
|
|
182
182
|
}) => Promise<{
|
|
183
|
-
id: string;
|
|
184
|
-
createdAt: string;
|
|
185
|
-
updatedAt: string;
|
|
186
|
-
headers: Record<string, string> | null;
|
|
187
183
|
tenantId: string;
|
|
188
184
|
projectId: string;
|
|
189
185
|
agentId: string;
|
|
190
186
|
subAgentId: string;
|
|
187
|
+
id: string;
|
|
188
|
+
createdAt: string;
|
|
189
|
+
updatedAt: string;
|
|
190
|
+
headers: Record<string, string> | null;
|
|
191
191
|
externalAgentId: string;
|
|
192
192
|
}>;
|
|
193
193
|
/**
|
|
@@ -197,14 +197,14 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
|
|
|
197
197
|
scopes: SubAgentScopeConfig;
|
|
198
198
|
externalAgentId: string;
|
|
199
199
|
}) => Promise<{
|
|
200
|
-
id: string;
|
|
201
|
-
createdAt: string;
|
|
202
|
-
updatedAt: string;
|
|
203
|
-
headers: Record<string, string> | null;
|
|
204
200
|
tenantId: string;
|
|
205
201
|
projectId: string;
|
|
206
202
|
agentId: string;
|
|
207
203
|
subAgentId: string;
|
|
204
|
+
id: string;
|
|
205
|
+
createdAt: string;
|
|
206
|
+
updatedAt: string;
|
|
207
|
+
headers: Record<string, string> | null;
|
|
208
208
|
externalAgentId: string;
|
|
209
209
|
} | undefined>;
|
|
210
210
|
/**
|
|
@@ -218,14 +218,14 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
218
218
|
headers?: Record<string, string> | null;
|
|
219
219
|
};
|
|
220
220
|
}) => Promise<{
|
|
221
|
-
id: string;
|
|
222
|
-
createdAt: string;
|
|
223
|
-
updatedAt: string;
|
|
224
|
-
headers: Record<string, string> | null;
|
|
225
221
|
tenantId: string;
|
|
226
222
|
projectId: string;
|
|
227
223
|
agentId: string;
|
|
228
224
|
subAgentId: string;
|
|
225
|
+
id: string;
|
|
226
|
+
createdAt: string;
|
|
227
|
+
updatedAt: string;
|
|
228
|
+
headers: Record<string, string> | null;
|
|
229
229
|
externalAgentId: string;
|
|
230
230
|
}>;
|
|
231
231
|
declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -9,12 +9,12 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
9
9
|
scopes: AgentScopeConfig;
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
id: string;
|
|
13
|
-
createdAt: string;
|
|
14
|
-
updatedAt: string;
|
|
15
12
|
tenantId: string;
|
|
16
13
|
projectId: string;
|
|
17
14
|
agentId: string;
|
|
15
|
+
id: string;
|
|
16
|
+
createdAt: string;
|
|
17
|
+
updatedAt: string;
|
|
18
18
|
sourceSubAgentId: string;
|
|
19
19
|
targetSubAgentId: string | null;
|
|
20
20
|
relationType: string | null;
|
|
@@ -44,12 +44,12 @@ declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
44
44
|
declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
|
-
id: string;
|
|
48
|
-
createdAt: string;
|
|
49
|
-
updatedAt: string;
|
|
50
47
|
tenantId: string;
|
|
51
48
|
projectId: string;
|
|
52
49
|
agentId: string;
|
|
50
|
+
id: string;
|
|
51
|
+
createdAt: string;
|
|
52
|
+
updatedAt: string;
|
|
53
53
|
sourceSubAgentId: string;
|
|
54
54
|
targetSubAgentId: string | null;
|
|
55
55
|
relationType: string | null;
|
|
@@ -57,12 +57,12 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
57
57
|
declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
|
-
id: string;
|
|
61
|
-
createdAt: string;
|
|
62
|
-
updatedAt: string;
|
|
63
60
|
tenantId: string;
|
|
64
61
|
projectId: string;
|
|
65
62
|
agentId: string;
|
|
63
|
+
id: string;
|
|
64
|
+
createdAt: string;
|
|
65
|
+
updatedAt: string;
|
|
66
66
|
sourceSubAgentId: string;
|
|
67
67
|
targetSubAgentId: string | null;
|
|
68
68
|
relationType: string | null;
|
|
@@ -126,12 +126,12 @@ declare const getRelatedAgentsForAgent: (db: AgentsManageDatabaseClient) => (par
|
|
|
126
126
|
}[];
|
|
127
127
|
}>;
|
|
128
128
|
declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
129
|
-
id: string;
|
|
130
|
-
createdAt: string;
|
|
131
|
-
updatedAt: string;
|
|
132
129
|
tenantId: string;
|
|
133
130
|
projectId: string;
|
|
134
131
|
agentId: string;
|
|
132
|
+
id: string;
|
|
133
|
+
createdAt: string;
|
|
134
|
+
updatedAt: string;
|
|
135
135
|
sourceSubAgentId: string;
|
|
136
136
|
targetSubAgentId: string | null;
|
|
137
137
|
relationType: string | null;
|
|
@@ -145,12 +145,12 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
145
145
|
targetSubAgentId?: string;
|
|
146
146
|
relationType: string;
|
|
147
147
|
}) => Promise<{
|
|
148
|
-
id: string;
|
|
149
|
-
createdAt: string;
|
|
150
|
-
updatedAt: string;
|
|
151
148
|
tenantId: string;
|
|
152
149
|
projectId: string;
|
|
153
150
|
agentId: string;
|
|
151
|
+
id: string;
|
|
152
|
+
createdAt: string;
|
|
153
|
+
updatedAt: string;
|
|
154
154
|
sourceSubAgentId: string;
|
|
155
155
|
targetSubAgentId: string | null;
|
|
156
156
|
relationType: string | null;
|
|
@@ -159,12 +159,12 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
159
159
|
* Upsert agent relation (create if it doesn't exist, no-op if it does)
|
|
160
160
|
*/
|
|
161
161
|
declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
162
|
-
id: string;
|
|
163
|
-
createdAt: string;
|
|
164
|
-
updatedAt: string;
|
|
165
162
|
tenantId: string;
|
|
166
163
|
projectId: string;
|
|
167
164
|
agentId: string;
|
|
165
|
+
id: string;
|
|
166
|
+
createdAt: string;
|
|
167
|
+
updatedAt: string;
|
|
168
168
|
sourceSubAgentId: string;
|
|
169
169
|
targetSubAgentId: string | null;
|
|
170
170
|
relationType: string | null;
|
|
@@ -204,19 +204,19 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
204
204
|
}> | null;
|
|
205
205
|
};
|
|
206
206
|
}) => Promise<{
|
|
207
|
-
id: string;
|
|
208
|
-
createdAt: string;
|
|
209
|
-
updatedAt: string;
|
|
210
|
-
headers: Record<string, string> | null;
|
|
211
207
|
tenantId: string;
|
|
212
208
|
projectId: string;
|
|
213
209
|
agentId: string;
|
|
214
210
|
subAgentId: string;
|
|
215
211
|
toolId: string;
|
|
212
|
+
id: string;
|
|
213
|
+
createdAt: string;
|
|
214
|
+
updatedAt: string;
|
|
215
|
+
headers: Record<string, string> | null;
|
|
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;
|
|
@@ -248,19 +248,19 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
|
|
|
248
248
|
scopes: SubAgentScopeConfig;
|
|
249
249
|
relationId: string;
|
|
250
250
|
}) => Promise<{
|
|
251
|
-
id: string;
|
|
252
|
-
createdAt: string;
|
|
253
|
-
updatedAt: string;
|
|
254
|
-
headers: Record<string, string> | null;
|
|
255
251
|
tenantId: string;
|
|
256
252
|
projectId: string;
|
|
257
253
|
agentId: string;
|
|
258
254
|
subAgentId: string;
|
|
259
255
|
toolId: string;
|
|
256
|
+
id: string;
|
|
257
|
+
createdAt: string;
|
|
258
|
+
updatedAt: string;
|
|
259
|
+
headers: Record<string, string> | null;
|
|
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;
|
|
@@ -9,14 +9,14 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
9
9
|
scopes: SubAgentScopeConfig;
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
id: string;
|
|
13
|
-
createdAt: string;
|
|
14
|
-
updatedAt: string;
|
|
15
|
-
headers: Record<string, string> | null;
|
|
16
12
|
tenantId: string;
|
|
17
13
|
projectId: string;
|
|
18
14
|
agentId: string;
|
|
19
15
|
subAgentId: string;
|
|
16
|
+
id: string;
|
|
17
|
+
createdAt: string;
|
|
18
|
+
updatedAt: string;
|
|
19
|
+
headers: Record<string, string> | null;
|
|
20
20
|
targetAgentId: string;
|
|
21
21
|
} | undefined>;
|
|
22
22
|
declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -44,27 +44,27 @@ declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =
|
|
|
44
44
|
declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
|
-
id: string;
|
|
48
|
-
createdAt: string;
|
|
49
|
-
updatedAt: string;
|
|
50
|
-
headers: Record<string, string> | null;
|
|
51
47
|
tenantId: string;
|
|
52
48
|
projectId: string;
|
|
53
49
|
agentId: string;
|
|
54
50
|
subAgentId: string;
|
|
51
|
+
id: string;
|
|
52
|
+
createdAt: string;
|
|
53
|
+
updatedAt: string;
|
|
54
|
+
headers: Record<string, string> | null;
|
|
55
55
|
targetAgentId: string;
|
|
56
56
|
}[]>;
|
|
57
57
|
declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
|
-
id: string;
|
|
61
|
-
createdAt: string;
|
|
62
|
-
updatedAt: string;
|
|
63
|
-
headers: Record<string, string> | null;
|
|
64
60
|
tenantId: string;
|
|
65
61
|
projectId: string;
|
|
66
62
|
agentId: string;
|
|
67
63
|
subAgentId: string;
|
|
64
|
+
id: string;
|
|
65
|
+
createdAt: string;
|
|
66
|
+
updatedAt: string;
|
|
67
|
+
headers: Record<string, string> | null;
|
|
68
68
|
targetAgentId: string;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -210,14 +210,14 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
210
210
|
headers?: Record<string, string> | null;
|
|
211
211
|
};
|
|
212
212
|
}) => Promise<{
|
|
213
|
-
id: string;
|
|
214
|
-
createdAt: string;
|
|
215
|
-
updatedAt: string;
|
|
216
|
-
headers: Record<string, string> | null;
|
|
217
213
|
tenantId: string;
|
|
218
214
|
projectId: string;
|
|
219
215
|
agentId: string;
|
|
220
216
|
subAgentId: string;
|
|
217
|
+
id: string;
|
|
218
|
+
createdAt: string;
|
|
219
|
+
updatedAt: string;
|
|
220
|
+
headers: Record<string, string> | null;
|
|
221
221
|
targetAgentId: string;
|
|
222
222
|
}>;
|
|
223
223
|
/**
|
|
@@ -227,14 +227,14 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
|
|
|
227
227
|
scopes: SubAgentScopeConfig;
|
|
228
228
|
targetAgentId: string;
|
|
229
229
|
}) => Promise<{
|
|
230
|
-
id: string;
|
|
231
|
-
createdAt: string;
|
|
232
|
-
updatedAt: string;
|
|
233
|
-
headers: Record<string, string> | null;
|
|
234
230
|
tenantId: string;
|
|
235
231
|
projectId: string;
|
|
236
232
|
agentId: string;
|
|
237
233
|
subAgentId: string;
|
|
234
|
+
id: string;
|
|
235
|
+
createdAt: string;
|
|
236
|
+
updatedAt: string;
|
|
237
|
+
headers: Record<string, string> | null;
|
|
238
238
|
targetAgentId: string;
|
|
239
239
|
} | undefined>;
|
|
240
240
|
/**
|
|
@@ -248,14 +248,14 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
248
248
|
headers?: Record<string, string> | null;
|
|
249
249
|
};
|
|
250
250
|
}) => Promise<{
|
|
251
|
-
id: string;
|
|
252
|
-
createdAt: string;
|
|
253
|
-
updatedAt: string;
|
|
254
|
-
headers: Record<string, string> | null;
|
|
255
251
|
tenantId: string;
|
|
256
252
|
projectId: string;
|
|
257
253
|
agentId: string;
|
|
258
254
|
subAgentId: string;
|
|
255
|
+
id: string;
|
|
256
|
+
createdAt: string;
|
|
257
|
+
updatedAt: string;
|
|
258
|
+
headers: Record<string, string> | null;
|
|
259
259
|
targetAgentId: string;
|
|
260
260
|
}>;
|
|
261
261
|
declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -9,14 +9,12 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
9
9
|
scopes: AgentScopeConfig;
|
|
10
10
|
subAgentId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
id: string;
|
|
13
|
-
name: string;
|
|
14
|
-
createdAt: string;
|
|
15
|
-
updatedAt: string;
|
|
16
12
|
description: string | null;
|
|
17
13
|
tenantId: string;
|
|
18
14
|
projectId: string;
|
|
19
15
|
agentId: string;
|
|
16
|
+
id: string;
|
|
17
|
+
name: string;
|
|
20
18
|
models: {
|
|
21
19
|
base?: {
|
|
22
20
|
model?: string | undefined;
|
|
@@ -31,23 +29,23 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
31
29
|
providerOptions?: Record<string, unknown> | undefined;
|
|
32
30
|
} | undefined;
|
|
33
31
|
} | null;
|
|
34
|
-
prompt: string | null;
|
|
35
32
|
stopWhen: {
|
|
36
33
|
stepCountIs?: number | undefined;
|
|
37
34
|
} | null;
|
|
35
|
+
createdAt: string;
|
|
36
|
+
updatedAt: string;
|
|
37
|
+
prompt: string | null;
|
|
38
38
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
39
39
|
} | undefined>;
|
|
40
40
|
declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
41
41
|
scopes: AgentScopeConfig;
|
|
42
42
|
}) => Promise<{
|
|
43
|
-
id: string;
|
|
44
|
-
name: string;
|
|
45
|
-
createdAt: string;
|
|
46
|
-
updatedAt: string;
|
|
47
43
|
description: string | null;
|
|
48
44
|
tenantId: string;
|
|
49
45
|
projectId: string;
|
|
50
46
|
agentId: string;
|
|
47
|
+
id: string;
|
|
48
|
+
name: string;
|
|
51
49
|
models: {
|
|
52
50
|
base?: {
|
|
53
51
|
model?: string | undefined;
|
|
@@ -62,10 +60,12 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
62
60
|
providerOptions?: Record<string, unknown> | undefined;
|
|
63
61
|
} | undefined;
|
|
64
62
|
} | null;
|
|
65
|
-
prompt: string | null;
|
|
66
63
|
stopWhen: {
|
|
67
64
|
stepCountIs?: number | undefined;
|
|
68
65
|
} | null;
|
|
66
|
+
createdAt: string;
|
|
67
|
+
updatedAt: string;
|
|
68
|
+
prompt: string | null;
|
|
69
69
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
70
70
|
}[]>;
|
|
71
71
|
declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -109,14 +109,12 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
|
|
|
109
109
|
};
|
|
110
110
|
}>;
|
|
111
111
|
declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
112
|
-
id: string;
|
|
113
|
-
name: string;
|
|
114
|
-
createdAt: string;
|
|
115
|
-
updatedAt: string;
|
|
116
112
|
description: string | null;
|
|
117
113
|
tenantId: string;
|
|
118
114
|
projectId: string;
|
|
119
115
|
agentId: string;
|
|
116
|
+
id: string;
|
|
117
|
+
name: string;
|
|
120
118
|
models: {
|
|
121
119
|
base?: {
|
|
122
120
|
model?: string | undefined;
|
|
@@ -131,10 +129,12 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
131
129
|
providerOptions?: Record<string, unknown> | undefined;
|
|
132
130
|
} | undefined;
|
|
133
131
|
} | null;
|
|
134
|
-
prompt: string | null;
|
|
135
132
|
stopWhen: {
|
|
136
133
|
stepCountIs?: number | undefined;
|
|
137
134
|
} | null;
|
|
135
|
+
createdAt: string;
|
|
136
|
+
updatedAt: string;
|
|
137
|
+
prompt: string | null;
|
|
138
138
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
139
139
|
}>;
|
|
140
140
|
declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|