@inkeep/agents-core 0.56.1 → 0.57.0
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 +85 -85
- package/dist/auth/auth-validation-schemas.d.ts +152 -152
- package/dist/auth/auth.d.ts +9 -9
- package/dist/auth/auth.js +6 -0
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/client-exports.d.ts +4 -4
- package/dist/client-exports.js +2 -2
- package/dist/data-access/index.d.ts +2 -1
- package/dist/data-access/index.js +2 -1
- package/dist/data-access/manage/agents.d.ts +31 -31
- package/dist/data-access/manage/artifactComponents.d.ts +8 -8
- 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 +8 -8
- package/dist/data-access/manage/skills.d.ts +14 -14
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +6 -6
- package/dist/data-access/manage/subAgentRelations.d.ts +8 -8
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +6 -6
- package/dist/data-access/manage/subAgents.d.ts +21 -21
- package/dist/data-access/manage/tools.d.ts +12 -12
- 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/conversations.d.ts +31 -31
- package/dist/data-access/runtime/messages.d.ts +21 -21
- package/dist/data-access/runtime/tasks.d.ts +9 -9
- package/dist/data-access/runtime/userProfiles.d.ts +14 -0
- package/dist/data-access/runtime/userProfiles.js +45 -0
- package/dist/db/manage/manage-schema.d.ts +453 -453
- package/dist/db/runtime/runtime-schema.d.ts +416 -302
- package/dist/db/runtime/runtime-schema.js +14 -1
- package/dist/index.d.ts +5 -4
- package/dist/index.js +4 -3
- package/dist/types/entities.d.ts +7 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/utils/error.d.ts +51 -51
- package/dist/utils/model-factory.d.ts +10 -2
- package/dist/utils/model-factory.js +21 -13
- package/dist/validation/dolt-schemas.d.ts +1 -1
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/index.d.ts +2 -2
- package/dist/validation/index.js +2 -2
- package/dist/validation/schemas.d.ts +2218 -1973
- package/dist/validation/schemas.js +16 -2
- package/drizzle/runtime/0019_easy_bedlam.sql +24 -0
- package/drizzle/runtime/meta/0019_snapshot.json +4003 -0
- package/drizzle/runtime/meta/_journal.json +7 -0
- package/package.json +1 -1
|
@@ -10,14 +10,10 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
10
10
|
scopes: AgentScopeConfig;
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
|
-
|
|
13
|
+
tenantId: string;
|
|
14
14
|
createdAt: string;
|
|
15
|
-
|
|
15
|
+
name: string;
|
|
16
16
|
description: string | null;
|
|
17
|
-
defaultSubAgentId: string | null;
|
|
18
|
-
tenantId: string;
|
|
19
|
-
projectId: string;
|
|
20
|
-
prompt: string | null;
|
|
21
17
|
models: {
|
|
22
18
|
base?: {
|
|
23
19
|
model?: string | undefined;
|
|
@@ -35,7 +31,11 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
35
31
|
stopWhen: {
|
|
36
32
|
transferCountIs?: number | undefined;
|
|
37
33
|
} | null;
|
|
34
|
+
updatedAt: string;
|
|
35
|
+
projectId: string;
|
|
36
|
+
defaultSubAgentId: string | null;
|
|
38
37
|
contextConfigId: string | null;
|
|
38
|
+
prompt: string | null;
|
|
39
39
|
statusUpdates: {
|
|
40
40
|
enabled?: boolean | undefined;
|
|
41
41
|
numEvents?: number | undefined;
|
|
@@ -56,14 +56,10 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
56
56
|
scopes: AgentScopeConfig;
|
|
57
57
|
}) => Promise<{
|
|
58
58
|
id: string;
|
|
59
|
-
|
|
59
|
+
tenantId: string;
|
|
60
60
|
createdAt: string;
|
|
61
|
-
|
|
61
|
+
name: string;
|
|
62
62
|
description: string | null;
|
|
63
|
-
defaultSubAgentId: string | null;
|
|
64
|
-
tenantId: string;
|
|
65
|
-
projectId: string;
|
|
66
|
-
prompt: string | null;
|
|
67
63
|
models: {
|
|
68
64
|
base?: {
|
|
69
65
|
model?: string | undefined;
|
|
@@ -81,7 +77,11 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
81
77
|
stopWhen: {
|
|
82
78
|
transferCountIs?: number | undefined;
|
|
83
79
|
} | null;
|
|
80
|
+
updatedAt: string;
|
|
81
|
+
projectId: string;
|
|
82
|
+
defaultSubAgentId: string | null;
|
|
84
83
|
contextConfigId: string | null;
|
|
84
|
+
prompt: string | null;
|
|
85
85
|
statusUpdates: {
|
|
86
86
|
enabled?: boolean | undefined;
|
|
87
87
|
numEvents?: number | undefined;
|
|
@@ -99,15 +99,10 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
99
99
|
} | null;
|
|
100
100
|
defaultSubAgent: {
|
|
101
101
|
id: string;
|
|
102
|
-
|
|
102
|
+
tenantId: string;
|
|
103
103
|
createdAt: string;
|
|
104
|
-
|
|
104
|
+
name: string;
|
|
105
105
|
description: string | null;
|
|
106
|
-
tenantId: string;
|
|
107
|
-
projectId: string;
|
|
108
|
-
agentId: string;
|
|
109
|
-
prompt: string | null;
|
|
110
|
-
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
111
106
|
models: {
|
|
112
107
|
base?: {
|
|
113
108
|
model?: string | undefined;
|
|
@@ -125,20 +120,21 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
125
120
|
stopWhen: {
|
|
126
121
|
stepCountIs?: number | undefined;
|
|
127
122
|
} | null;
|
|
123
|
+
updatedAt: string;
|
|
124
|
+
projectId: string;
|
|
125
|
+
prompt: string | null;
|
|
126
|
+
agentId: string;
|
|
127
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
128
128
|
} | null;
|
|
129
129
|
} | null>;
|
|
130
130
|
declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
131
131
|
scopes: ProjectScopeConfig;
|
|
132
132
|
}) => Promise<{
|
|
133
133
|
id: string;
|
|
134
|
-
|
|
134
|
+
tenantId: string;
|
|
135
135
|
createdAt: string;
|
|
136
|
-
|
|
136
|
+
name: string;
|
|
137
137
|
description: string | null;
|
|
138
|
-
defaultSubAgentId: string | null;
|
|
139
|
-
tenantId: string;
|
|
140
|
-
projectId: string;
|
|
141
|
-
prompt: string | null;
|
|
142
138
|
models: {
|
|
143
139
|
base?: {
|
|
144
140
|
model?: string | undefined;
|
|
@@ -156,7 +152,11 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
156
152
|
stopWhen: {
|
|
157
153
|
transferCountIs?: number | undefined;
|
|
158
154
|
} | null;
|
|
155
|
+
updatedAt: string;
|
|
156
|
+
projectId: string;
|
|
157
|
+
defaultSubAgentId: string | null;
|
|
159
158
|
contextConfigId: string | null;
|
|
159
|
+
prompt: string | null;
|
|
160
160
|
statusUpdates: {
|
|
161
161
|
enabled?: boolean | undefined;
|
|
162
162
|
numEvents?: number | undefined;
|
|
@@ -247,14 +247,10 @@ declare function listAgentsAcrossProjectMainBranches(db: AgentsManageDatabaseCli
|
|
|
247
247
|
}): Promise<AvailableAgentInfo[]>;
|
|
248
248
|
declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
|
|
249
249
|
id: string;
|
|
250
|
-
|
|
250
|
+
tenantId: string;
|
|
251
251
|
createdAt: string;
|
|
252
|
-
|
|
252
|
+
name: string;
|
|
253
253
|
description: string | null;
|
|
254
|
-
defaultSubAgentId: string | null;
|
|
255
|
-
tenantId: string;
|
|
256
|
-
projectId: string;
|
|
257
|
-
prompt: string | null;
|
|
258
254
|
models: {
|
|
259
255
|
base?: {
|
|
260
256
|
model?: string | undefined;
|
|
@@ -272,7 +268,11 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
272
268
|
stopWhen: {
|
|
273
269
|
transferCountIs?: number | undefined;
|
|
274
270
|
} | null;
|
|
271
|
+
updatedAt: string;
|
|
272
|
+
projectId: string;
|
|
273
|
+
defaultSubAgentId: string | null;
|
|
275
274
|
contextConfigId: string | null;
|
|
275
|
+
prompt: string | null;
|
|
276
276
|
statusUpdates: {
|
|
277
277
|
enabled?: boolean | undefined;
|
|
278
278
|
numEvents?: number | undefined;
|
|
@@ -10,11 +10,11 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
|
|
|
10
10
|
id: string;
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
|
-
|
|
13
|
+
tenantId: string;
|
|
14
14
|
createdAt: string;
|
|
15
|
-
|
|
15
|
+
name: string;
|
|
16
16
|
description: string | null;
|
|
17
|
-
|
|
17
|
+
updatedAt: string;
|
|
18
18
|
projectId: string;
|
|
19
19
|
props: {
|
|
20
20
|
[x: string]: unknown;
|
|
@@ -66,11 +66,11 @@ declare const listArtifactComponentsPaginated: (db: AgentsManageDatabaseClient)
|
|
|
66
66
|
}>;
|
|
67
67
|
declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
|
|
68
68
|
id: string;
|
|
69
|
-
|
|
69
|
+
tenantId: string;
|
|
70
70
|
createdAt: string;
|
|
71
|
-
|
|
71
|
+
name: string;
|
|
72
72
|
description: string | null;
|
|
73
|
-
|
|
73
|
+
updatedAt: string;
|
|
74
74
|
projectId: string;
|
|
75
75
|
props: {
|
|
76
76
|
[x: string]: unknown;
|
|
@@ -142,8 +142,8 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
|
|
|
142
142
|
artifactComponentId: string;
|
|
143
143
|
}) => Promise<{
|
|
144
144
|
id: string;
|
|
145
|
-
createdAt: string;
|
|
146
145
|
tenantId: string;
|
|
146
|
+
createdAt: string;
|
|
147
147
|
projectId: string;
|
|
148
148
|
agentId: string;
|
|
149
149
|
subAgentId: string;
|
|
@@ -185,8 +185,8 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
|
|
|
185
185
|
artifactComponentId: string;
|
|
186
186
|
}) => Promise<{
|
|
187
187
|
id: string;
|
|
188
|
-
createdAt: string;
|
|
189
188
|
tenantId: string;
|
|
189
|
+
createdAt: string;
|
|
190
190
|
projectId: string;
|
|
191
191
|
agentId: string;
|
|
192
192
|
subAgentId: string;
|
|
@@ -10,9 +10,9 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
10
10
|
id: string;
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
|
+
tenantId: string;
|
|
13
14
|
createdAt: string;
|
|
14
15
|
updatedAt: string;
|
|
15
|
-
tenantId: string;
|
|
16
16
|
projectId: string;
|
|
17
17
|
agentId: string;
|
|
18
18
|
headersSchema: unknown;
|
|
@@ -22,9 +22,9 @@ declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
22
22
|
scopes: AgentScopeConfig;
|
|
23
23
|
}) => Promise<{
|
|
24
24
|
id: string;
|
|
25
|
+
tenantId: string;
|
|
25
26
|
createdAt: string;
|
|
26
27
|
updatedAt: string;
|
|
27
|
-
tenantId: string;
|
|
28
28
|
projectId: string;
|
|
29
29
|
agentId: string;
|
|
30
30
|
headersSchema: unknown;
|
|
@@ -44,9 +44,9 @@ declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (
|
|
|
44
44
|
}>;
|
|
45
45
|
declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params: ContextConfigInsert) => Promise<{
|
|
46
46
|
id: string;
|
|
47
|
+
tenantId: string;
|
|
47
48
|
createdAt: string;
|
|
48
49
|
updatedAt: string;
|
|
49
|
-
tenantId: string;
|
|
50
50
|
projectId: string;
|
|
51
51
|
agentId: string;
|
|
52
52
|
headersSchema: unknown;
|
|
@@ -84,9 +84,9 @@ declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params:
|
|
|
84
84
|
data: ContextConfigInsert;
|
|
85
85
|
}) => Promise<{
|
|
86
86
|
id: string;
|
|
87
|
+
tenantId: string;
|
|
87
88
|
createdAt: string;
|
|
88
89
|
updatedAt: string;
|
|
89
|
-
tenantId: string;
|
|
90
90
|
projectId: string;
|
|
91
91
|
agentId: string;
|
|
92
92
|
headersSchema: unknown;
|
|
@@ -66,8 +66,8 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
|
|
|
66
66
|
dataComponentId: string;
|
|
67
67
|
}) => Promise<{
|
|
68
68
|
id: string;
|
|
69
|
-
createdAt: string;
|
|
70
69
|
tenantId: string;
|
|
70
|
+
createdAt: string;
|
|
71
71
|
projectId: string;
|
|
72
72
|
agentId: string;
|
|
73
73
|
subAgentId: string;
|
|
@@ -108,8 +108,8 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
|
|
|
108
108
|
dataComponentId: string;
|
|
109
109
|
}) => Promise<{
|
|
110
110
|
id: string;
|
|
111
|
-
createdAt: string;
|
|
112
111
|
tenantId: string;
|
|
112
|
+
createdAt: string;
|
|
113
113
|
projectId: string;
|
|
114
114
|
agentId: string;
|
|
115
115
|
subAgentId: string;
|
|
@@ -54,11 +54,11 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
54
54
|
scopes: AgentScopeConfig;
|
|
55
55
|
}) => Promise<{
|
|
56
56
|
id: string;
|
|
57
|
-
|
|
57
|
+
tenantId: string;
|
|
58
58
|
createdAt: string;
|
|
59
|
-
|
|
59
|
+
name: string;
|
|
60
60
|
description: string | null;
|
|
61
|
-
|
|
61
|
+
updatedAt: string;
|
|
62
62
|
projectId: string;
|
|
63
63
|
agentId: string;
|
|
64
64
|
functionId: string;
|
|
@@ -96,11 +96,11 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
96
96
|
scopes: AgentScopeConfig;
|
|
97
97
|
}) => Promise<{
|
|
98
98
|
id: string;
|
|
99
|
-
|
|
99
|
+
tenantId: string;
|
|
100
100
|
createdAt: string;
|
|
101
|
-
|
|
101
|
+
name: string;
|
|
102
102
|
description: string | null;
|
|
103
|
-
|
|
103
|
+
updatedAt: string;
|
|
104
104
|
projectId: string;
|
|
105
105
|
agentId: string;
|
|
106
106
|
functionId: string;
|
|
@@ -162,9 +162,9 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
|
|
|
162
162
|
}> | null;
|
|
163
163
|
}) => Promise<{
|
|
164
164
|
id: string;
|
|
165
|
+
tenantId: string;
|
|
165
166
|
createdAt: string;
|
|
166
167
|
updatedAt: string;
|
|
167
|
-
tenantId: string;
|
|
168
168
|
projectId: string;
|
|
169
169
|
agentId: string;
|
|
170
170
|
toolPolicies: Record<string, {
|
|
@@ -227,9 +227,9 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
|
|
|
227
227
|
}> | null;
|
|
228
228
|
}) => Promise<{
|
|
229
229
|
id: string;
|
|
230
|
+
tenantId: string;
|
|
230
231
|
createdAt: string;
|
|
231
232
|
updatedAt: string;
|
|
232
|
-
tenantId: string;
|
|
233
233
|
projectId: string;
|
|
234
234
|
agentId: string;
|
|
235
235
|
toolPolicies: Record<string, {
|
|
@@ -9,14 +9,14 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
9
9
|
skillId: string;
|
|
10
10
|
}) => Promise<{
|
|
11
11
|
id: string;
|
|
12
|
-
|
|
12
|
+
tenantId: string;
|
|
13
13
|
createdAt: string;
|
|
14
|
-
|
|
14
|
+
name: string;
|
|
15
15
|
metadata: Record<string, string> | null;
|
|
16
16
|
description: string;
|
|
17
|
-
tenantId: string;
|
|
18
|
-
projectId: string;
|
|
19
17
|
content: string;
|
|
18
|
+
updatedAt: string;
|
|
19
|
+
projectId: string;
|
|
20
20
|
} | null>;
|
|
21
21
|
declare const listSkills: (db: AgentsManageDatabaseClient) => (params: {
|
|
22
22
|
scopes: ProjectScopeConfig;
|
|
@@ -42,25 +42,25 @@ declare const listSkills: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
42
42
|
}>;
|
|
43
43
|
declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
|
|
44
44
|
id: string;
|
|
45
|
-
|
|
45
|
+
tenantId: string;
|
|
46
46
|
createdAt: string;
|
|
47
|
-
|
|
47
|
+
name: string;
|
|
48
48
|
metadata: Record<string, string> | null;
|
|
49
49
|
description: string;
|
|
50
|
-
tenantId: string;
|
|
51
|
-
projectId: string;
|
|
52
50
|
content: string;
|
|
51
|
+
updatedAt: string;
|
|
52
|
+
projectId: string;
|
|
53
53
|
}>;
|
|
54
54
|
declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
|
|
55
55
|
id: string;
|
|
56
|
-
|
|
56
|
+
tenantId: string;
|
|
57
57
|
createdAt: string;
|
|
58
|
-
|
|
58
|
+
name: string;
|
|
59
59
|
metadata: Record<string, string> | null;
|
|
60
60
|
description: string;
|
|
61
|
-
tenantId: string;
|
|
62
|
-
projectId: string;
|
|
63
61
|
content: string;
|
|
62
|
+
updatedAt: string;
|
|
63
|
+
projectId: string;
|
|
64
64
|
}>;
|
|
65
65
|
declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
|
|
66
66
|
scopes: ProjectScopeConfig;
|
|
@@ -92,14 +92,14 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
|
|
|
92
92
|
alwaysLoaded?: boolean;
|
|
93
93
|
}) => Promise<{
|
|
94
94
|
id: string;
|
|
95
|
+
tenantId: string;
|
|
95
96
|
createdAt: string;
|
|
96
97
|
updatedAt: string;
|
|
97
|
-
tenantId: string;
|
|
98
98
|
projectId: string;
|
|
99
99
|
agentId: string;
|
|
100
|
+
subAgentId: string;
|
|
100
101
|
index: number;
|
|
101
102
|
alwaysLoaded: boolean;
|
|
102
|
-
subAgentId: string;
|
|
103
103
|
skillId: string;
|
|
104
104
|
}>;
|
|
105
105
|
declare const deleteSubAgentSkill: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -10,9 +10,9 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
|
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
|
+
tenantId: string;
|
|
13
14
|
createdAt: string;
|
|
14
15
|
updatedAt: string;
|
|
15
|
-
tenantId: string;
|
|
16
16
|
projectId: string;
|
|
17
17
|
agentId: string;
|
|
18
18
|
headers: Record<string, string> | null;
|
|
@@ -45,9 +45,9 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
|
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
47
|
id: string;
|
|
48
|
+
tenantId: string;
|
|
48
49
|
createdAt: string;
|
|
49
50
|
updatedAt: string;
|
|
50
|
-
tenantId: string;
|
|
51
51
|
projectId: string;
|
|
52
52
|
agentId: string;
|
|
53
53
|
headers: Record<string, string> | null;
|
|
@@ -58,9 +58,9 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
|
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
60
|
id: string;
|
|
61
|
+
tenantId: string;
|
|
61
62
|
createdAt: string;
|
|
62
63
|
updatedAt: string;
|
|
63
|
-
tenantId: string;
|
|
64
64
|
projectId: string;
|
|
65
65
|
agentId: string;
|
|
66
66
|
headers: Record<string, string> | null;
|
|
@@ -181,9 +181,9 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
181
181
|
};
|
|
182
182
|
}) => Promise<{
|
|
183
183
|
id: string;
|
|
184
|
+
tenantId: string;
|
|
184
185
|
createdAt: string;
|
|
185
186
|
updatedAt: string;
|
|
186
|
-
tenantId: string;
|
|
187
187
|
projectId: string;
|
|
188
188
|
agentId: string;
|
|
189
189
|
headers: Record<string, string> | null;
|
|
@@ -198,9 +198,9 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
|
|
|
198
198
|
externalAgentId: string;
|
|
199
199
|
}) => Promise<{
|
|
200
200
|
id: string;
|
|
201
|
+
tenantId: string;
|
|
201
202
|
createdAt: string;
|
|
202
203
|
updatedAt: string;
|
|
203
|
-
tenantId: string;
|
|
204
204
|
projectId: string;
|
|
205
205
|
agentId: string;
|
|
206
206
|
headers: Record<string, string> | null;
|
|
@@ -219,9 +219,9 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
219
219
|
};
|
|
220
220
|
}) => Promise<{
|
|
221
221
|
id: string;
|
|
222
|
+
tenantId: string;
|
|
222
223
|
createdAt: string;
|
|
223
224
|
updatedAt: string;
|
|
224
|
-
tenantId: string;
|
|
225
225
|
projectId: string;
|
|
226
226
|
agentId: string;
|
|
227
227
|
headers: Record<string, string> | null;
|
|
@@ -10,9 +10,9 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
|
+
tenantId: string;
|
|
13
14
|
createdAt: string;
|
|
14
15
|
updatedAt: string;
|
|
15
|
-
tenantId: string;
|
|
16
16
|
projectId: string;
|
|
17
17
|
agentId: string;
|
|
18
18
|
sourceSubAgentId: string;
|
|
@@ -45,9 +45,9 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
47
|
id: string;
|
|
48
|
+
tenantId: string;
|
|
48
49
|
createdAt: string;
|
|
49
50
|
updatedAt: string;
|
|
50
|
-
tenantId: string;
|
|
51
51
|
projectId: string;
|
|
52
52
|
agentId: string;
|
|
53
53
|
sourceSubAgentId: string;
|
|
@@ -58,9 +58,9 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
|
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
60
|
id: string;
|
|
61
|
+
tenantId: string;
|
|
61
62
|
createdAt: string;
|
|
62
63
|
updatedAt: string;
|
|
63
|
-
tenantId: string;
|
|
64
64
|
projectId: string;
|
|
65
65
|
agentId: string;
|
|
66
66
|
sourceSubAgentId: string;
|
|
@@ -127,9 +127,9 @@ 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;
|
|
130
131
|
createdAt: string;
|
|
131
132
|
updatedAt: string;
|
|
132
|
-
tenantId: string;
|
|
133
133
|
projectId: string;
|
|
134
134
|
agentId: string;
|
|
135
135
|
sourceSubAgentId: string;
|
|
@@ -146,9 +146,9 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
146
146
|
relationType: string;
|
|
147
147
|
}) => Promise<{
|
|
148
148
|
id: string;
|
|
149
|
+
tenantId: string;
|
|
149
150
|
createdAt: string;
|
|
150
151
|
updatedAt: string;
|
|
151
|
-
tenantId: string;
|
|
152
152
|
projectId: string;
|
|
153
153
|
agentId: string;
|
|
154
154
|
sourceSubAgentId: string;
|
|
@@ -160,9 +160,9 @@ 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;
|
|
163
164
|
createdAt: string;
|
|
164
165
|
updatedAt: string;
|
|
165
|
-
tenantId: string;
|
|
166
166
|
projectId: string;
|
|
167
167
|
agentId: string;
|
|
168
168
|
sourceSubAgentId: string;
|
|
@@ -205,9 +205,9 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
205
205
|
};
|
|
206
206
|
}) => Promise<{
|
|
207
207
|
id: string;
|
|
208
|
+
tenantId: string;
|
|
208
209
|
createdAt: string;
|
|
209
210
|
updatedAt: string;
|
|
210
|
-
tenantId: string;
|
|
211
211
|
projectId: string;
|
|
212
212
|
agentId: string;
|
|
213
213
|
toolId: string;
|
|
@@ -249,9 +249,9 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
|
|
|
249
249
|
relationId: string;
|
|
250
250
|
}) => Promise<{
|
|
251
251
|
id: string;
|
|
252
|
+
tenantId: string;
|
|
252
253
|
createdAt: string;
|
|
253
254
|
updatedAt: string;
|
|
254
|
-
tenantId: string;
|
|
255
255
|
projectId: string;
|
|
256
256
|
agentId: string;
|
|
257
257
|
toolId: string;
|
|
@@ -10,9 +10,9 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
|
+
tenantId: string;
|
|
13
14
|
createdAt: string;
|
|
14
15
|
updatedAt: string;
|
|
15
|
-
tenantId: string;
|
|
16
16
|
projectId: string;
|
|
17
17
|
agentId: string;
|
|
18
18
|
headers: Record<string, string> | null;
|
|
@@ -45,9 +45,9 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
|
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
47
|
id: string;
|
|
48
|
+
tenantId: string;
|
|
48
49
|
createdAt: string;
|
|
49
50
|
updatedAt: string;
|
|
50
|
-
tenantId: string;
|
|
51
51
|
projectId: string;
|
|
52
52
|
agentId: string;
|
|
53
53
|
headers: Record<string, string> | null;
|
|
@@ -58,9 +58,9 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
|
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
60
|
id: string;
|
|
61
|
+
tenantId: string;
|
|
61
62
|
createdAt: string;
|
|
62
63
|
updatedAt: string;
|
|
63
|
-
tenantId: string;
|
|
64
64
|
projectId: string;
|
|
65
65
|
agentId: string;
|
|
66
66
|
headers: Record<string, string> | null;
|
|
@@ -211,9 +211,9 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
211
211
|
};
|
|
212
212
|
}) => Promise<{
|
|
213
213
|
id: string;
|
|
214
|
+
tenantId: string;
|
|
214
215
|
createdAt: string;
|
|
215
216
|
updatedAt: string;
|
|
216
|
-
tenantId: string;
|
|
217
217
|
projectId: string;
|
|
218
218
|
agentId: string;
|
|
219
219
|
headers: Record<string, string> | null;
|
|
@@ -228,9 +228,9 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
|
|
|
228
228
|
targetAgentId: string;
|
|
229
229
|
}) => Promise<{
|
|
230
230
|
id: string;
|
|
231
|
+
tenantId: string;
|
|
231
232
|
createdAt: string;
|
|
232
233
|
updatedAt: string;
|
|
233
|
-
tenantId: string;
|
|
234
234
|
projectId: string;
|
|
235
235
|
agentId: string;
|
|
236
236
|
headers: Record<string, string> | null;
|
|
@@ -249,9 +249,9 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
249
249
|
};
|
|
250
250
|
}) => Promise<{
|
|
251
251
|
id: string;
|
|
252
|
+
tenantId: string;
|
|
252
253
|
createdAt: string;
|
|
253
254
|
updatedAt: string;
|
|
254
|
-
tenantId: string;
|
|
255
255
|
projectId: string;
|
|
256
256
|
agentId: string;
|
|
257
257
|
headers: Record<string, string> | null;
|
|
@@ -10,15 +10,10 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
10
10
|
subAgentId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
|
-
|
|
13
|
+
tenantId: string;
|
|
14
14
|
createdAt: string;
|
|
15
|
-
|
|
15
|
+
name: string;
|
|
16
16
|
description: string | null;
|
|
17
|
-
tenantId: string;
|
|
18
|
-
projectId: string;
|
|
19
|
-
agentId: string;
|
|
20
|
-
prompt: string | null;
|
|
21
|
-
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
22
17
|
models: {
|
|
23
18
|
base?: {
|
|
24
19
|
model?: string | undefined;
|
|
@@ -36,20 +31,20 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
36
31
|
stopWhen: {
|
|
37
32
|
stepCountIs?: number | undefined;
|
|
38
33
|
} | null;
|
|
34
|
+
updatedAt: string;
|
|
35
|
+
projectId: string;
|
|
36
|
+
prompt: string | null;
|
|
37
|
+
agentId: string;
|
|
38
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
39
39
|
} | undefined>;
|
|
40
40
|
declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
41
41
|
scopes: AgentScopeConfig;
|
|
42
42
|
}) => Promise<{
|
|
43
43
|
id: string;
|
|
44
|
-
|
|
44
|
+
tenantId: string;
|
|
45
45
|
createdAt: string;
|
|
46
|
-
|
|
46
|
+
name: string;
|
|
47
47
|
description: string | null;
|
|
48
|
-
tenantId: string;
|
|
49
|
-
projectId: string;
|
|
50
|
-
agentId: string;
|
|
51
|
-
prompt: string | null;
|
|
52
|
-
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
53
48
|
models: {
|
|
54
49
|
base?: {
|
|
55
50
|
model?: string | undefined;
|
|
@@ -67,6 +62,11 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
67
62
|
stopWhen: {
|
|
68
63
|
stepCountIs?: number | undefined;
|
|
69
64
|
} | null;
|
|
65
|
+
updatedAt: string;
|
|
66
|
+
projectId: string;
|
|
67
|
+
prompt: string | null;
|
|
68
|
+
agentId: string;
|
|
69
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
70
70
|
}[]>;
|
|
71
71
|
declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
72
72
|
scopes: AgentScopeConfig;
|
|
@@ -110,15 +110,10 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
|
|
|
110
110
|
}>;
|
|
111
111
|
declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
112
112
|
id: string;
|
|
113
|
-
|
|
113
|
+
tenantId: string;
|
|
114
114
|
createdAt: string;
|
|
115
|
-
|
|
115
|
+
name: string;
|
|
116
116
|
description: string | null;
|
|
117
|
-
tenantId: string;
|
|
118
|
-
projectId: string;
|
|
119
|
-
agentId: string;
|
|
120
|
-
prompt: string | null;
|
|
121
|
-
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
122
117
|
models: {
|
|
123
118
|
base?: {
|
|
124
119
|
model?: string | undefined;
|
|
@@ -136,6 +131,11 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
136
131
|
stopWhen: {
|
|
137
132
|
stepCountIs?: number | undefined;
|
|
138
133
|
} | null;
|
|
134
|
+
updatedAt: string;
|
|
135
|
+
projectId: string;
|
|
136
|
+
prompt: string | null;
|
|
137
|
+
agentId: string;
|
|
138
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
139
139
|
}>;
|
|
140
140
|
declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
141
141
|
scopes: AgentScopeConfig;
|