@inkeep/agents-core 0.0.0-dev-20260323133357 → 0.0.0-dev-20260323202859
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/permissions.d.ts +9 -9
- package/dist/client-exports.d.ts +2 -2
- package/dist/client-exports.js +2 -2
- package/dist/constants/signoz-queries.d.ts +30 -106
- package/dist/constants/signoz-queries.js +55 -108
- package/dist/data-access/manage/agents.d.ts +47 -47
- package/dist/data-access/manage/artifactComponents.d.ts +10 -10
- package/dist/data-access/manage/contextConfigs.d.ts +8 -8
- 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/skills.d.ts +15 -15
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgents.d.ts +21 -21
- package/dist/data-access/manage/tools.d.ts +21 -21
- 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/apps.d.ts +12 -12
- package/dist/data-access/runtime/conversations.d.ts +16 -16
- package/dist/data-access/runtime/messages.d.ts +6 -6
- package/dist/data-access/runtime/tasks.d.ts +4 -4
- package/dist/db/manage/manage-schema.d.ts +453 -453
- package/dist/db/runtime/runtime-schema.d.ts +330 -330
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/middleware/no-auth.d.ts +2 -2
- package/dist/utils/error.d.ts +51 -51
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas.d.ts +2039 -2039
- package/package.json +1 -1
|
@@ -10,15 +10,13 @@ import { PgColumn } from "drizzle-orm/pg-core";
|
|
|
10
10
|
declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
11
11
|
scopes: AgentScopeConfig;
|
|
12
12
|
}) => Promise<{
|
|
13
|
-
description: string | null;
|
|
14
13
|
id: string;
|
|
15
|
-
tenantId: string;
|
|
16
|
-
createdAt: string;
|
|
17
14
|
name: string;
|
|
18
|
-
|
|
19
|
-
projectId: string;
|
|
15
|
+
description: string | null;
|
|
20
16
|
defaultSubAgentId: string | null;
|
|
21
|
-
|
|
17
|
+
tenantId: string;
|
|
18
|
+
projectId: string;
|
|
19
|
+
prompt: string | null;
|
|
22
20
|
models: {
|
|
23
21
|
base?: {
|
|
24
22
|
model?: string | undefined;
|
|
@@ -33,7 +31,12 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
33
31
|
providerOptions?: Record<string, any> | undefined;
|
|
34
32
|
} | undefined;
|
|
35
33
|
} | null;
|
|
36
|
-
|
|
34
|
+
stopWhen: {
|
|
35
|
+
transferCountIs?: number | undefined;
|
|
36
|
+
} | null;
|
|
37
|
+
createdAt: string;
|
|
38
|
+
updatedAt: string;
|
|
39
|
+
contextConfigId: string | null;
|
|
37
40
|
statusUpdates: {
|
|
38
41
|
enabled?: boolean | undefined;
|
|
39
42
|
numEvents?: number | undefined;
|
|
@@ -49,22 +52,17 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
49
52
|
} | undefined;
|
|
50
53
|
}[] | undefined;
|
|
51
54
|
} | null;
|
|
52
|
-
stopWhen: {
|
|
53
|
-
transferCountIs?: number | undefined;
|
|
54
|
-
} | null;
|
|
55
55
|
} | null>;
|
|
56
56
|
declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
57
57
|
scopes: AgentScopeConfig;
|
|
58
58
|
}) => Promise<{
|
|
59
|
-
description: string | null;
|
|
60
59
|
id: string;
|
|
61
|
-
tenantId: string;
|
|
62
|
-
createdAt: string;
|
|
63
60
|
name: string;
|
|
64
|
-
|
|
65
|
-
projectId: string;
|
|
61
|
+
description: string | null;
|
|
66
62
|
defaultSubAgentId: string | null;
|
|
67
|
-
|
|
63
|
+
tenantId: string;
|
|
64
|
+
projectId: string;
|
|
65
|
+
prompt: string | null;
|
|
68
66
|
models: {
|
|
69
67
|
base?: {
|
|
70
68
|
model?: string | undefined;
|
|
@@ -79,7 +77,12 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
79
77
|
providerOptions?: Record<string, any> | undefined;
|
|
80
78
|
} | undefined;
|
|
81
79
|
} | null;
|
|
82
|
-
|
|
80
|
+
stopWhen: {
|
|
81
|
+
transferCountIs?: number | undefined;
|
|
82
|
+
} | null;
|
|
83
|
+
createdAt: string;
|
|
84
|
+
updatedAt: string;
|
|
85
|
+
contextConfigId: string | null;
|
|
83
86
|
statusUpdates: {
|
|
84
87
|
enabled?: boolean | undefined;
|
|
85
88
|
numEvents?: number | undefined;
|
|
@@ -95,18 +98,15 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
95
98
|
} | undefined;
|
|
96
99
|
}[] | undefined;
|
|
97
100
|
} | null;
|
|
98
|
-
stopWhen: {
|
|
99
|
-
transferCountIs?: number | undefined;
|
|
100
|
-
} | null;
|
|
101
101
|
defaultSubAgent: {
|
|
102
|
-
description: string | null;
|
|
103
102
|
id: string;
|
|
104
|
-
tenantId: string;
|
|
105
|
-
createdAt: string;
|
|
106
103
|
name: string;
|
|
107
|
-
|
|
108
|
-
|
|
104
|
+
description: string | null;
|
|
105
|
+
tenantId: string;
|
|
109
106
|
projectId: string;
|
|
107
|
+
agentId: string;
|
|
108
|
+
prompt: string | null;
|
|
109
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
110
110
|
models: {
|
|
111
111
|
base?: {
|
|
112
112
|
model?: string | undefined;
|
|
@@ -121,25 +121,23 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
121
121
|
providerOptions?: Record<string, any> | undefined;
|
|
122
122
|
} | undefined;
|
|
123
123
|
} | null;
|
|
124
|
-
prompt: string | null;
|
|
125
124
|
stopWhen: {
|
|
126
125
|
stepCountIs?: number | undefined;
|
|
127
126
|
} | null;
|
|
128
|
-
|
|
127
|
+
createdAt: string;
|
|
128
|
+
updatedAt: string;
|
|
129
129
|
} | null;
|
|
130
130
|
} | null>;
|
|
131
131
|
declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
132
132
|
scopes: ProjectScopeConfig;
|
|
133
133
|
}) => Promise<{
|
|
134
|
-
description: string | null;
|
|
135
134
|
id: string;
|
|
136
|
-
tenantId: string;
|
|
137
|
-
createdAt: string;
|
|
138
135
|
name: string;
|
|
139
|
-
|
|
140
|
-
projectId: string;
|
|
136
|
+
description: string | null;
|
|
141
137
|
defaultSubAgentId: string | null;
|
|
142
|
-
|
|
138
|
+
tenantId: string;
|
|
139
|
+
projectId: string;
|
|
140
|
+
prompt: string | null;
|
|
143
141
|
models: {
|
|
144
142
|
base?: {
|
|
145
143
|
model?: string | undefined;
|
|
@@ -154,7 +152,12 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
154
152
|
providerOptions?: Record<string, any> | undefined;
|
|
155
153
|
} | undefined;
|
|
156
154
|
} | null;
|
|
157
|
-
|
|
155
|
+
stopWhen: {
|
|
156
|
+
transferCountIs?: number | undefined;
|
|
157
|
+
} | null;
|
|
158
|
+
createdAt: string;
|
|
159
|
+
updatedAt: string;
|
|
160
|
+
contextConfigId: string | null;
|
|
158
161
|
statusUpdates: {
|
|
159
162
|
enabled?: boolean | undefined;
|
|
160
163
|
numEvents?: number | undefined;
|
|
@@ -170,9 +173,6 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
170
173
|
} | undefined;
|
|
171
174
|
}[] | undefined;
|
|
172
175
|
} | null;
|
|
173
|
-
stopWhen: {
|
|
174
|
-
transferCountIs?: number | undefined;
|
|
175
|
-
} | null;
|
|
176
176
|
}[]>;
|
|
177
177
|
declare const listAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
178
178
|
scopes: ProjectScopeConfig;
|
|
@@ -247,15 +247,13 @@ declare function listAgentsAcrossProjectMainBranches(db: AgentsManageDatabaseCli
|
|
|
247
247
|
projectIds: string[];
|
|
248
248
|
}): Promise<AvailableAgentInfo[]>;
|
|
249
249
|
declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
|
|
250
|
-
description: string | null;
|
|
251
250
|
id: string;
|
|
252
|
-
tenantId: string;
|
|
253
|
-
createdAt: string;
|
|
254
251
|
name: string;
|
|
255
|
-
|
|
256
|
-
projectId: string;
|
|
252
|
+
description: string | null;
|
|
257
253
|
defaultSubAgentId: string | null;
|
|
258
|
-
|
|
254
|
+
tenantId: string;
|
|
255
|
+
projectId: string;
|
|
256
|
+
prompt: string | null;
|
|
259
257
|
models: {
|
|
260
258
|
base?: {
|
|
261
259
|
model?: string | undefined;
|
|
@@ -270,7 +268,12 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
270
268
|
providerOptions?: Record<string, any> | undefined;
|
|
271
269
|
} | undefined;
|
|
272
270
|
} | null;
|
|
273
|
-
|
|
271
|
+
stopWhen: {
|
|
272
|
+
transferCountIs?: number | undefined;
|
|
273
|
+
} | null;
|
|
274
|
+
createdAt: string;
|
|
275
|
+
updatedAt: string;
|
|
276
|
+
contextConfigId: string | null;
|
|
274
277
|
statusUpdates: {
|
|
275
278
|
enabled?: boolean | undefined;
|
|
276
279
|
numEvents?: number | undefined;
|
|
@@ -286,9 +289,6 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
286
289
|
} | undefined;
|
|
287
290
|
}[] | undefined;
|
|
288
291
|
} | null;
|
|
289
|
-
stopWhen: {
|
|
290
|
-
transferCountIs?: number | undefined;
|
|
291
|
-
} | null;
|
|
292
292
|
}>;
|
|
293
293
|
declare const updateAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
294
294
|
scopes: AgentScopeConfig;
|
|
@@ -9,13 +9,13 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
|
|
|
9
9
|
scopes: ProjectScopeConfig;
|
|
10
10
|
id: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
description: string | null;
|
|
13
12
|
id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
description: string | null;
|
|
14
15
|
tenantId: string;
|
|
16
|
+
projectId: string;
|
|
15
17
|
createdAt: string;
|
|
16
|
-
name: string;
|
|
17
18
|
updatedAt: string;
|
|
18
|
-
projectId: string;
|
|
19
19
|
props: {
|
|
20
20
|
[x: string]: unknown;
|
|
21
21
|
type: "object";
|
|
@@ -65,13 +65,13 @@ declare const listArtifactComponentsPaginated: (db: AgentsManageDatabaseClient)
|
|
|
65
65
|
};
|
|
66
66
|
}>;
|
|
67
67
|
declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
|
|
68
|
-
description: string | null;
|
|
69
68
|
id: string;
|
|
69
|
+
name: string;
|
|
70
|
+
description: string | null;
|
|
70
71
|
tenantId: string;
|
|
72
|
+
projectId: string;
|
|
71
73
|
createdAt: string;
|
|
72
|
-
name: string;
|
|
73
74
|
updatedAt: string;
|
|
74
|
-
projectId: string;
|
|
75
75
|
props: {
|
|
76
76
|
[x: string]: unknown;
|
|
77
77
|
type: "object";
|
|
@@ -143,9 +143,9 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
|
|
|
143
143
|
}) => Promise<{
|
|
144
144
|
id: string;
|
|
145
145
|
tenantId: string;
|
|
146
|
-
createdAt: string;
|
|
147
|
-
agentId: string;
|
|
148
146
|
projectId: string;
|
|
147
|
+
agentId: string;
|
|
148
|
+
createdAt: string;
|
|
149
149
|
subAgentId: string;
|
|
150
150
|
artifactComponentId: string;
|
|
151
151
|
}>;
|
|
@@ -186,9 +186,9 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
|
|
|
186
186
|
}) => Promise<{
|
|
187
187
|
id: string;
|
|
188
188
|
tenantId: string;
|
|
189
|
-
createdAt: string;
|
|
190
|
-
agentId: string;
|
|
191
189
|
projectId: string;
|
|
190
|
+
agentId: string;
|
|
191
|
+
createdAt: string;
|
|
192
192
|
subAgentId: string;
|
|
193
193
|
artifactComponentId: string;
|
|
194
194
|
} | null>;
|
|
@@ -11,24 +11,24 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
13
|
tenantId: string;
|
|
14
|
+
projectId: string;
|
|
15
|
+
agentId: string;
|
|
14
16
|
createdAt: string;
|
|
15
17
|
updatedAt: string;
|
|
16
18
|
headersSchema: unknown;
|
|
17
19
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
18
|
-
agentId: string;
|
|
19
|
-
projectId: string;
|
|
20
20
|
} | undefined>;
|
|
21
21
|
declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
|
|
22
22
|
scopes: AgentScopeConfig;
|
|
23
23
|
}) => Promise<{
|
|
24
24
|
id: string;
|
|
25
25
|
tenantId: string;
|
|
26
|
+
projectId: string;
|
|
27
|
+
agentId: string;
|
|
26
28
|
createdAt: string;
|
|
27
29
|
updatedAt: string;
|
|
28
30
|
headersSchema: unknown;
|
|
29
31
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
30
|
-
agentId: string;
|
|
31
|
-
projectId: string;
|
|
32
32
|
}[]>;
|
|
33
33
|
declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
34
34
|
scopes: AgentScopeConfig;
|
|
@@ -45,12 +45,12 @@ declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (
|
|
|
45
45
|
declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params: ContextConfigInsert) => Promise<{
|
|
46
46
|
id: string;
|
|
47
47
|
tenantId: string;
|
|
48
|
+
projectId: string;
|
|
49
|
+
agentId: string;
|
|
48
50
|
createdAt: string;
|
|
49
51
|
updatedAt: string;
|
|
50
52
|
headersSchema: unknown;
|
|
51
53
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
52
|
-
agentId: string;
|
|
53
|
-
projectId: string;
|
|
54
54
|
}>;
|
|
55
55
|
declare const updateContextConfig: (db: AgentsManageDatabaseClient) => (params: {
|
|
56
56
|
scopes: AgentScopeConfig;
|
|
@@ -85,12 +85,12 @@ declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params:
|
|
|
85
85
|
}) => Promise<{
|
|
86
86
|
id: string;
|
|
87
87
|
tenantId: string;
|
|
88
|
+
projectId: string;
|
|
89
|
+
agentId: string;
|
|
88
90
|
createdAt: string;
|
|
89
91
|
updatedAt: string;
|
|
90
92
|
headersSchema: unknown;
|
|
91
93
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
92
|
-
agentId: string;
|
|
93
|
-
projectId: string;
|
|
94
94
|
}>;
|
|
95
95
|
//#endregion
|
|
96
96
|
export { countContextConfigs, createContextConfig, deleteContextConfig, getContextConfigById, hasContextConfig, listContextConfigs, listContextConfigsPaginated, updateContextConfig, upsertContextConfig };
|
|
@@ -67,9 +67,9 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
|
|
|
67
67
|
}) => Promise<{
|
|
68
68
|
id: string;
|
|
69
69
|
tenantId: string;
|
|
70
|
-
createdAt: string;
|
|
71
|
-
agentId: string;
|
|
72
70
|
projectId: string;
|
|
71
|
+
agentId: string;
|
|
72
|
+
createdAt: string;
|
|
73
73
|
subAgentId: string;
|
|
74
74
|
dataComponentId: string;
|
|
75
75
|
}>;
|
|
@@ -109,9 +109,9 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
|
|
|
109
109
|
}) => Promise<{
|
|
110
110
|
id: string;
|
|
111
111
|
tenantId: string;
|
|
112
|
-
createdAt: string;
|
|
113
|
-
agentId: string;
|
|
114
112
|
projectId: string;
|
|
113
|
+
agentId: string;
|
|
114
|
+
createdAt: string;
|
|
115
115
|
subAgentId: string;
|
|
116
116
|
dataComponentId: string;
|
|
117
117
|
} | null>;
|
|
@@ -53,14 +53,14 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
53
53
|
data: FunctionToolApiInsert;
|
|
54
54
|
scopes: AgentScopeConfig;
|
|
55
55
|
}) => Promise<{
|
|
56
|
-
description: string | null;
|
|
57
56
|
id: string;
|
|
57
|
+
name: string;
|
|
58
|
+
description: string | null;
|
|
58
59
|
tenantId: string;
|
|
60
|
+
projectId: string;
|
|
61
|
+
agentId: string;
|
|
59
62
|
createdAt: string;
|
|
60
|
-
name: string;
|
|
61
63
|
updatedAt: string;
|
|
62
|
-
agentId: string;
|
|
63
|
-
projectId: 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
|
-
description: string | null;
|
|
99
98
|
id: string;
|
|
99
|
+
name: string;
|
|
100
|
+
description: string | null;
|
|
100
101
|
tenantId: string;
|
|
102
|
+
projectId: string;
|
|
103
|
+
agentId: string;
|
|
101
104
|
createdAt: string;
|
|
102
|
-
name: string;
|
|
103
105
|
updatedAt: string;
|
|
104
|
-
agentId: string;
|
|
105
|
-
projectId: string;
|
|
106
106
|
functionId: string;
|
|
107
107
|
}>;
|
|
108
108
|
declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -159,14 +159,14 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
|
|
|
159
159
|
}) => Promise<{
|
|
160
160
|
id: string;
|
|
161
161
|
tenantId: string;
|
|
162
|
+
projectId: string;
|
|
163
|
+
agentId: string;
|
|
162
164
|
createdAt: string;
|
|
163
165
|
updatedAt: string;
|
|
164
|
-
agentId: string;
|
|
165
|
-
projectId: string;
|
|
166
|
-
subAgentId: string;
|
|
167
166
|
toolPolicies: Record<string, {
|
|
168
167
|
needsApproval?: boolean;
|
|
169
168
|
}> | null;
|
|
169
|
+
subAgentId: string;
|
|
170
170
|
functionToolId: string;
|
|
171
171
|
}>;
|
|
172
172
|
/**
|
|
@@ -224,14 +224,14 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
|
|
|
224
224
|
}) => Promise<{
|
|
225
225
|
id: string;
|
|
226
226
|
tenantId: string;
|
|
227
|
+
projectId: string;
|
|
228
|
+
agentId: string;
|
|
227
229
|
createdAt: string;
|
|
228
230
|
updatedAt: string;
|
|
229
|
-
agentId: string;
|
|
230
|
-
projectId: string;
|
|
231
|
-
subAgentId: string;
|
|
232
231
|
toolPolicies: Record<string, {
|
|
233
232
|
needsApproval?: boolean;
|
|
234
233
|
}> | null;
|
|
234
|
+
subAgentId: string;
|
|
235
235
|
functionToolId: string;
|
|
236
236
|
}>;
|
|
237
237
|
//#endregion
|
|
@@ -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
11
|
id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
description: string;
|
|
13
14
|
tenantId: string;
|
|
15
|
+
projectId: string;
|
|
14
16
|
createdAt: string;
|
|
15
|
-
|
|
17
|
+
updatedAt: string;
|
|
16
18
|
metadata: Record<string, string> | null;
|
|
17
19
|
content: string;
|
|
18
|
-
updatedAt: string;
|
|
19
|
-
projectId: string;
|
|
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
44
|
id: string;
|
|
45
|
+
name: string;
|
|
46
|
+
description: string;
|
|
46
47
|
tenantId: string;
|
|
48
|
+
projectId: string;
|
|
47
49
|
createdAt: string;
|
|
48
|
-
|
|
50
|
+
updatedAt: string;
|
|
49
51
|
metadata: Record<string, string> | null;
|
|
50
52
|
content: string;
|
|
51
|
-
updatedAt: string;
|
|
52
|
-
projectId: string;
|
|
53
53
|
}>;
|
|
54
54
|
declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
|
|
55
|
-
description: string;
|
|
56
55
|
id: string;
|
|
56
|
+
name: string;
|
|
57
|
+
description: string;
|
|
57
58
|
tenantId: string;
|
|
59
|
+
projectId: string;
|
|
58
60
|
createdAt: string;
|
|
59
|
-
|
|
61
|
+
updatedAt: string;
|
|
60
62
|
metadata: Record<string, string> | null;
|
|
61
63
|
content: string;
|
|
62
|
-
updatedAt: string;
|
|
63
|
-
projectId: string;
|
|
64
64
|
}>;
|
|
65
65
|
declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
|
|
66
66
|
scopes: ProjectScopeConfig;
|
|
@@ -93,13 +93,13 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
|
|
|
93
93
|
}) => Promise<{
|
|
94
94
|
id: string;
|
|
95
95
|
tenantId: string;
|
|
96
|
+
projectId: string;
|
|
97
|
+
agentId: string;
|
|
96
98
|
createdAt: string;
|
|
97
99
|
updatedAt: string;
|
|
98
|
-
agentId: string;
|
|
99
|
-
projectId: string;
|
|
100
|
-
subAgentId: string;
|
|
101
100
|
index: number;
|
|
102
101
|
alwaysLoaded: boolean;
|
|
102
|
+
subAgentId: string;
|
|
103
103
|
skillId: string;
|
|
104
104
|
}>;
|
|
105
105
|
declare const deleteSubAgentSkill: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -11,13 +11,13 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
|
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
13
|
tenantId: string;
|
|
14
|
+
projectId: string;
|
|
15
|
+
agentId: string;
|
|
14
16
|
createdAt: string;
|
|
15
17
|
updatedAt: string;
|
|
16
|
-
agentId: string;
|
|
17
|
-
projectId: string;
|
|
18
|
-
subAgentId: string;
|
|
19
18
|
headers: Record<string, string> | null;
|
|
20
19
|
externalAgentId: string;
|
|
20
|
+
subAgentId: string;
|
|
21
21
|
} | undefined>;
|
|
22
22
|
declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
23
23
|
scopes: SubAgentScopeConfig;
|
|
@@ -46,26 +46,26 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
|
|
|
46
46
|
}) => Promise<{
|
|
47
47
|
id: string;
|
|
48
48
|
tenantId: string;
|
|
49
|
+
projectId: string;
|
|
50
|
+
agentId: string;
|
|
49
51
|
createdAt: string;
|
|
50
52
|
updatedAt: string;
|
|
51
|
-
agentId: string;
|
|
52
|
-
projectId: string;
|
|
53
|
-
subAgentId: string;
|
|
54
53
|
headers: Record<string, string> | null;
|
|
55
54
|
externalAgentId: string;
|
|
55
|
+
subAgentId: string;
|
|
56
56
|
}[]>;
|
|
57
57
|
declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
60
|
id: string;
|
|
61
61
|
tenantId: string;
|
|
62
|
+
projectId: string;
|
|
63
|
+
agentId: string;
|
|
62
64
|
createdAt: string;
|
|
63
65
|
updatedAt: string;
|
|
64
|
-
agentId: string;
|
|
65
|
-
projectId: string;
|
|
66
|
-
subAgentId: string;
|
|
67
66
|
headers: Record<string, string> | null;
|
|
68
67
|
externalAgentId: string;
|
|
68
|
+
subAgentId: string;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
71
71
|
scopes: AgentScopeConfig;
|
|
@@ -182,13 +182,13 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
182
182
|
}) => Promise<{
|
|
183
183
|
id: string;
|
|
184
184
|
tenantId: string;
|
|
185
|
+
projectId: string;
|
|
186
|
+
agentId: string;
|
|
185
187
|
createdAt: string;
|
|
186
188
|
updatedAt: string;
|
|
187
|
-
agentId: string;
|
|
188
|
-
projectId: string;
|
|
189
|
-
subAgentId: string;
|
|
190
189
|
headers: Record<string, string> | null;
|
|
191
190
|
externalAgentId: string;
|
|
191
|
+
subAgentId: string;
|
|
192
192
|
}>;
|
|
193
193
|
/**
|
|
194
194
|
* Check if sub-agent external agent relation exists by params
|
|
@@ -199,13 +199,13 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
|
|
|
199
199
|
}) => Promise<{
|
|
200
200
|
id: string;
|
|
201
201
|
tenantId: string;
|
|
202
|
+
projectId: string;
|
|
203
|
+
agentId: string;
|
|
202
204
|
createdAt: string;
|
|
203
205
|
updatedAt: string;
|
|
204
|
-
agentId: string;
|
|
205
|
-
projectId: string;
|
|
206
|
-
subAgentId: string;
|
|
207
206
|
headers: Record<string, string> | null;
|
|
208
207
|
externalAgentId: string;
|
|
208
|
+
subAgentId: string;
|
|
209
209
|
} | undefined>;
|
|
210
210
|
/**
|
|
211
211
|
* Upsert sub-agent external agent relation (create if it doesn't exist, update if it does)
|
|
@@ -220,13 +220,13 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
220
220
|
}) => Promise<{
|
|
221
221
|
id: string;
|
|
222
222
|
tenantId: string;
|
|
223
|
+
projectId: string;
|
|
224
|
+
agentId: string;
|
|
223
225
|
createdAt: string;
|
|
224
226
|
updatedAt: string;
|
|
225
|
-
agentId: string;
|
|
226
|
-
projectId: string;
|
|
227
|
-
subAgentId: string;
|
|
228
227
|
headers: Record<string, string> | null;
|
|
229
228
|
externalAgentId: string;
|
|
229
|
+
subAgentId: string;
|
|
230
230
|
}>;
|
|
231
231
|
declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
232
232
|
scopes: SubAgentScopeConfig;
|
|
@@ -11,10 +11,10 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
13
|
tenantId: string;
|
|
14
|
+
projectId: string;
|
|
15
|
+
agentId: string;
|
|
14
16
|
createdAt: string;
|
|
15
17
|
updatedAt: string;
|
|
16
|
-
agentId: string;
|
|
17
|
-
projectId: string;
|
|
18
18
|
sourceSubAgentId: string;
|
|
19
19
|
targetSubAgentId: string | null;
|
|
20
20
|
relationType: string | null;
|
|
@@ -46,10 +46,10 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
46
46
|
}) => Promise<{
|
|
47
47
|
id: string;
|
|
48
48
|
tenantId: string;
|
|
49
|
+
projectId: string;
|
|
50
|
+
agentId: string;
|
|
49
51
|
createdAt: string;
|
|
50
52
|
updatedAt: string;
|
|
51
|
-
agentId: string;
|
|
52
|
-
projectId: string;
|
|
53
53
|
sourceSubAgentId: string;
|
|
54
54
|
targetSubAgentId: string | null;
|
|
55
55
|
relationType: string | null;
|
|
@@ -59,10 +59,10 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
|
|
|
59
59
|
}) => Promise<{
|
|
60
60
|
id: string;
|
|
61
61
|
tenantId: string;
|
|
62
|
+
projectId: string;
|
|
63
|
+
agentId: string;
|
|
62
64
|
createdAt: string;
|
|
63
65
|
updatedAt: string;
|
|
64
|
-
agentId: string;
|
|
65
|
-
projectId: string;
|
|
66
66
|
sourceSubAgentId: string;
|
|
67
67
|
targetSubAgentId: string | null;
|
|
68
68
|
relationType: string | null;
|
|
@@ -128,10 +128,10 @@ declare const getRelatedAgentsForAgent: (db: AgentsManageDatabaseClient) => (par
|
|
|
128
128
|
declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
129
129
|
id: string;
|
|
130
130
|
tenantId: string;
|
|
131
|
+
projectId: string;
|
|
132
|
+
agentId: string;
|
|
131
133
|
createdAt: string;
|
|
132
134
|
updatedAt: string;
|
|
133
|
-
agentId: string;
|
|
134
|
-
projectId: string;
|
|
135
135
|
sourceSubAgentId: string;
|
|
136
136
|
targetSubAgentId: string | null;
|
|
137
137
|
relationType: string | null;
|
|
@@ -147,10 +147,10 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
147
147
|
}) => Promise<{
|
|
148
148
|
id: string;
|
|
149
149
|
tenantId: string;
|
|
150
|
+
projectId: string;
|
|
151
|
+
agentId: string;
|
|
150
152
|
createdAt: string;
|
|
151
153
|
updatedAt: string;
|
|
152
|
-
agentId: string;
|
|
153
|
-
projectId: string;
|
|
154
154
|
sourceSubAgentId: string;
|
|
155
155
|
targetSubAgentId: string | null;
|
|
156
156
|
relationType: string | null;
|
|
@@ -161,10 +161,10 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
161
161
|
declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
162
162
|
id: string;
|
|
163
163
|
tenantId: string;
|
|
164
|
+
projectId: string;
|
|
165
|
+
agentId: string;
|
|
164
166
|
createdAt: string;
|
|
165
167
|
updatedAt: string;
|
|
166
|
-
agentId: string;
|
|
167
|
-
projectId: string;
|
|
168
168
|
sourceSubAgentId: string;
|
|
169
169
|
targetSubAgentId: string | null;
|
|
170
170
|
relationType: string | null;
|
|
@@ -206,16 +206,16 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
206
206
|
}) => Promise<{
|
|
207
207
|
id: string;
|
|
208
208
|
tenantId: string;
|
|
209
|
+
projectId: string;
|
|
210
|
+
agentId: string;
|
|
209
211
|
createdAt: string;
|
|
210
212
|
updatedAt: string;
|
|
211
|
-
agentId: string;
|
|
212
|
-
projectId: string;
|
|
213
|
-
subAgentId: string;
|
|
214
213
|
toolId: string;
|
|
215
214
|
headers: Record<string, string> | null;
|
|
216
215
|
toolPolicies: Record<string, {
|
|
217
216
|
needsApproval?: boolean;
|
|
218
217
|
}> | null;
|
|
218
|
+
subAgentId: string;
|
|
219
219
|
selectedTools: string[] | null;
|
|
220
220
|
}>;
|
|
221
221
|
declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -250,16 +250,16 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
|
|
|
250
250
|
}) => Promise<{
|
|
251
251
|
id: string;
|
|
252
252
|
tenantId: string;
|
|
253
|
+
projectId: string;
|
|
254
|
+
agentId: string;
|
|
253
255
|
createdAt: string;
|
|
254
256
|
updatedAt: string;
|
|
255
|
-
agentId: string;
|
|
256
|
-
projectId: string;
|
|
257
|
-
subAgentId: string;
|
|
258
257
|
toolId: string;
|
|
259
258
|
headers: Record<string, string> | null;
|
|
260
259
|
toolPolicies: Record<string, {
|
|
261
260
|
needsApproval?: boolean;
|
|
262
261
|
}> | null;
|
|
262
|
+
subAgentId: string;
|
|
263
263
|
selectedTools: string[] | null;
|
|
264
264
|
} | undefined>;
|
|
265
265
|
declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
|