@inkeep/agents-core 0.78.0 → 0.78.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-schema.d.ts +163 -163
- package/dist/auth/auth-validation-schemas.d.ts +154 -154
- package/dist/constants/otel-attributes.d.ts +1 -0
- package/dist/constants/otel-attributes.js +1 -0
- package/dist/data-access/manage/agents.d.ts +32 -32
- package/dist/data-access/manage/artifactComponents.d.ts +6 -6
- package/dist/data-access/manage/contextConfigs.d.ts +12 -12
- 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 +7 -7
- 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 +12 -12
- package/dist/data-access/manage/tools.d.ts +12 -12
- package/dist/data-access/manage/triggers.d.ts +3 -3
- package/dist/data-access/runtime/apiKeys.d.ts +8 -8
- package/dist/data-access/runtime/apps.d.ts +17 -17
- package/dist/data-access/runtime/conversations.d.ts +20 -20
- package/dist/data-access/runtime/events.d.ts +7 -7
- package/dist/data-access/runtime/feedback.d.ts +4 -4
- package/dist/data-access/runtime/messages.d.ts +12 -12
- package/dist/data-access/runtime/tasks.d.ts +3 -3
- package/dist/db/manage/manage-schema.d.ts +383 -383
- package/dist/db/runtime/runtime-schema.d.ts +417 -417
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/utils/cache-debug-walk.d.ts +4 -9
- package/dist/utils/cache-debug-walk.js +4 -23
- package/dist/utils/cache-state.d.ts +1 -5
- package/dist/utils/cache-state.js +3 -4
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/index.js +2 -2
- package/dist/utils/usage-cost-middleware.d.ts +7 -1
- package/dist/utils/usage-cost-middleware.js +21 -2
- package/dist/validation/schemas/skills.d.ts +42 -42
- package/dist/validation/schemas.d.ts +844 -844
- package/package.json +1 -1
|
@@ -83,6 +83,7 @@ declare const SPAN_KEYS: {
|
|
|
83
83
|
readonly GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS: "gen_ai.usage.cache_creation.input_tokens";
|
|
84
84
|
readonly CACHE_INTENT_MARKER_COUNT: "cache.intent.marker_count";
|
|
85
85
|
readonly CACHE_INTENT_PREFIX_SIGNATURE: "cache.intent.prefix_signature";
|
|
86
|
+
readonly CACHE_INTENT_HISTORY_MARKER_COUNT: "cache.intent.history_marker_count";
|
|
86
87
|
readonly GEN_AI_REQUEST_PROVIDER: "gen_ai.request.provider";
|
|
87
88
|
readonly GEN_AI_RESPONSE_PROVIDER: "gen_ai.response.provider";
|
|
88
89
|
readonly CONTEXT_URL: "context.url";
|
|
@@ -83,6 +83,7 @@ const SPAN_KEYS = {
|
|
|
83
83
|
GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS: "gen_ai.usage.cache_creation.input_tokens",
|
|
84
84
|
CACHE_INTENT_MARKER_COUNT: "cache.intent.marker_count",
|
|
85
85
|
CACHE_INTENT_PREFIX_SIGNATURE: "cache.intent.prefix_signature",
|
|
86
|
+
CACHE_INTENT_HISTORY_MARKER_COUNT: "cache.intent.history_marker_count",
|
|
86
87
|
GEN_AI_REQUEST_PROVIDER: "gen_ai.request.provider",
|
|
87
88
|
GEN_AI_RESPONSE_PROVIDER: "gen_ai.response.provider",
|
|
88
89
|
CONTEXT_URL: "context.url",
|
|
@@ -10,13 +10,15 @@ import { PgColumn } from "drizzle-orm/pg-core";
|
|
|
10
10
|
declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
11
11
|
scopes: AgentScopeConfig;
|
|
12
12
|
}) => Promise<{
|
|
13
|
-
name: string;
|
|
14
|
-
description: string | null;
|
|
15
13
|
id: string;
|
|
16
14
|
createdAt: string;
|
|
15
|
+
name: string;
|
|
17
16
|
updatedAt: string;
|
|
18
17
|
projectId: string;
|
|
19
18
|
tenantId: string;
|
|
19
|
+
description: string | null;
|
|
20
|
+
defaultSubAgentId: string | null;
|
|
21
|
+
contextConfigId: string | null;
|
|
20
22
|
models: {
|
|
21
23
|
base?: {
|
|
22
24
|
model?: string | undefined;
|
|
@@ -37,12 +39,7 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
37
39
|
allowedProviders?: string[] | undefined;
|
|
38
40
|
} | undefined;
|
|
39
41
|
} | null;
|
|
40
|
-
stopWhen: {
|
|
41
|
-
transferCountIs?: number | undefined;
|
|
42
|
-
} | null;
|
|
43
42
|
prompt: string | null;
|
|
44
|
-
contextConfigId: string | null;
|
|
45
|
-
defaultSubAgentId: string | null;
|
|
46
43
|
statusUpdates: {
|
|
47
44
|
enabled?: boolean | undefined;
|
|
48
45
|
numEvents?: number | undefined;
|
|
@@ -58,18 +55,23 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
58
55
|
} | undefined;
|
|
59
56
|
}[] | undefined;
|
|
60
57
|
} | null;
|
|
58
|
+
stopWhen: {
|
|
59
|
+
transferCountIs?: number | undefined;
|
|
60
|
+
} | null;
|
|
61
61
|
executionMode: "classic" | "durable";
|
|
62
62
|
} | null>;
|
|
63
63
|
declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
64
64
|
scopes: AgentScopeConfig;
|
|
65
65
|
}) => Promise<{
|
|
66
|
-
name: string;
|
|
67
|
-
description: string | null;
|
|
68
66
|
id: string;
|
|
69
67
|
createdAt: string;
|
|
68
|
+
name: string;
|
|
70
69
|
updatedAt: string;
|
|
71
70
|
projectId: string;
|
|
72
71
|
tenantId: string;
|
|
72
|
+
description: string | null;
|
|
73
|
+
defaultSubAgentId: string | null;
|
|
74
|
+
contextConfigId: string | null;
|
|
73
75
|
models: {
|
|
74
76
|
base?: {
|
|
75
77
|
model?: string | undefined;
|
|
@@ -90,12 +92,7 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
90
92
|
allowedProviders?: string[] | undefined;
|
|
91
93
|
} | undefined;
|
|
92
94
|
} | null;
|
|
93
|
-
stopWhen: {
|
|
94
|
-
transferCountIs?: number | undefined;
|
|
95
|
-
} | null;
|
|
96
95
|
prompt: string | null;
|
|
97
|
-
contextConfigId: string | null;
|
|
98
|
-
defaultSubAgentId: string | null;
|
|
99
96
|
statusUpdates: {
|
|
100
97
|
enabled?: boolean | undefined;
|
|
101
98
|
numEvents?: number | undefined;
|
|
@@ -111,16 +108,19 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
111
108
|
} | undefined;
|
|
112
109
|
}[] | undefined;
|
|
113
110
|
} | null;
|
|
111
|
+
stopWhen: {
|
|
112
|
+
transferCountIs?: number | undefined;
|
|
113
|
+
} | null;
|
|
114
114
|
executionMode: "classic" | "durable";
|
|
115
115
|
defaultSubAgent: {
|
|
116
|
-
name: string;
|
|
117
|
-
description: string | null;
|
|
118
116
|
id: string;
|
|
119
|
-
agentId: string;
|
|
120
117
|
createdAt: string;
|
|
118
|
+
name: string;
|
|
121
119
|
updatedAt: string;
|
|
120
|
+
agentId: string;
|
|
122
121
|
projectId: string;
|
|
123
122
|
tenantId: string;
|
|
123
|
+
description: string | null;
|
|
124
124
|
models: {
|
|
125
125
|
base?: {
|
|
126
126
|
model?: string | undefined;
|
|
@@ -141,10 +141,10 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
141
141
|
allowedProviders?: string[] | undefined;
|
|
142
142
|
} | undefined;
|
|
143
143
|
} | null;
|
|
144
|
+
prompt: string | null;
|
|
144
145
|
stopWhen: {
|
|
145
146
|
stepCountIs?: number | undefined;
|
|
146
147
|
} | null;
|
|
147
|
-
prompt: string | null;
|
|
148
148
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
149
149
|
outputContract: {
|
|
150
150
|
[x: string]: unknown;
|
|
@@ -160,13 +160,15 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
160
160
|
declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
161
161
|
scopes: ProjectScopeConfig;
|
|
162
162
|
}) => Promise<{
|
|
163
|
-
name: string;
|
|
164
|
-
description: string | null;
|
|
165
163
|
id: string;
|
|
166
164
|
createdAt: string;
|
|
165
|
+
name: string;
|
|
167
166
|
updatedAt: string;
|
|
168
167
|
projectId: string;
|
|
169
168
|
tenantId: string;
|
|
169
|
+
description: string | null;
|
|
170
|
+
defaultSubAgentId: string | null;
|
|
171
|
+
contextConfigId: string | null;
|
|
170
172
|
models: {
|
|
171
173
|
base?: {
|
|
172
174
|
model?: string | undefined;
|
|
@@ -187,12 +189,7 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
187
189
|
allowedProviders?: string[] | undefined;
|
|
188
190
|
} | undefined;
|
|
189
191
|
} | null;
|
|
190
|
-
stopWhen: {
|
|
191
|
-
transferCountIs?: number | undefined;
|
|
192
|
-
} | null;
|
|
193
192
|
prompt: string | null;
|
|
194
|
-
contextConfigId: string | null;
|
|
195
|
-
defaultSubAgentId: string | null;
|
|
196
193
|
statusUpdates: {
|
|
197
194
|
enabled?: boolean | undefined;
|
|
198
195
|
numEvents?: number | undefined;
|
|
@@ -208,6 +205,9 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
208
205
|
} | undefined;
|
|
209
206
|
}[] | undefined;
|
|
210
207
|
} | null;
|
|
208
|
+
stopWhen: {
|
|
209
|
+
transferCountIs?: number | undefined;
|
|
210
|
+
} | null;
|
|
211
211
|
executionMode: "classic" | "durable";
|
|
212
212
|
}[]>;
|
|
213
213
|
declare const listAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -290,13 +290,15 @@ declare function listAgentsAcrossProjectMainBranches(db: AgentsManageDatabaseCli
|
|
|
290
290
|
projectIds: string[];
|
|
291
291
|
}): Promise<AvailableAgentInfo[]>;
|
|
292
292
|
declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
|
|
293
|
-
name: string;
|
|
294
|
-
description: string | null;
|
|
295
293
|
id: string;
|
|
296
294
|
createdAt: string;
|
|
295
|
+
name: string;
|
|
297
296
|
updatedAt: string;
|
|
298
297
|
projectId: string;
|
|
299
298
|
tenantId: string;
|
|
299
|
+
description: string | null;
|
|
300
|
+
defaultSubAgentId: string | null;
|
|
301
|
+
contextConfigId: string | null;
|
|
300
302
|
models: {
|
|
301
303
|
base?: {
|
|
302
304
|
model?: string | undefined;
|
|
@@ -317,12 +319,7 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
317
319
|
allowedProviders?: string[] | undefined;
|
|
318
320
|
} | undefined;
|
|
319
321
|
} | null;
|
|
320
|
-
stopWhen: {
|
|
321
|
-
transferCountIs?: number | undefined;
|
|
322
|
-
} | null;
|
|
323
322
|
prompt: string | null;
|
|
324
|
-
contextConfigId: string | null;
|
|
325
|
-
defaultSubAgentId: string | null;
|
|
326
323
|
statusUpdates: {
|
|
327
324
|
enabled?: boolean | undefined;
|
|
328
325
|
numEvents?: number | undefined;
|
|
@@ -338,6 +335,9 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
338
335
|
} | undefined;
|
|
339
336
|
}[] | undefined;
|
|
340
337
|
} | null;
|
|
338
|
+
stopWhen: {
|
|
339
|
+
transferCountIs?: number | undefined;
|
|
340
|
+
} | null;
|
|
341
341
|
executionMode: "classic" | "durable";
|
|
342
342
|
}>;
|
|
343
343
|
declare const updateAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -9,13 +9,13 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
|
|
|
9
9
|
scopes: ProjectScopeConfig;
|
|
10
10
|
id: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
name: string;
|
|
13
|
-
description: string | null;
|
|
14
12
|
id: string;
|
|
15
13
|
createdAt: string;
|
|
14
|
+
name: string;
|
|
16
15
|
updatedAt: string;
|
|
17
16
|
projectId: string;
|
|
18
17
|
tenantId: string;
|
|
18
|
+
description: string | null;
|
|
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
|
-
name: string;
|
|
69
|
-
description: string | null;
|
|
70
68
|
id: string;
|
|
71
69
|
createdAt: string;
|
|
70
|
+
name: string;
|
|
72
71
|
updatedAt: string;
|
|
73
72
|
projectId: string;
|
|
74
73
|
tenantId: string;
|
|
74
|
+
description: string | null;
|
|
75
75
|
props: {
|
|
76
76
|
[x: string]: unknown;
|
|
77
77
|
type: "object";
|
|
@@ -142,8 +142,8 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
|
|
|
142
142
|
artifactComponentId: string;
|
|
143
143
|
}) => Promise<{
|
|
144
144
|
id: string;
|
|
145
|
-
agentId: string;
|
|
146
145
|
createdAt: string;
|
|
146
|
+
agentId: string;
|
|
147
147
|
projectId: string;
|
|
148
148
|
tenantId: 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
|
-
agentId: string;
|
|
189
188
|
createdAt: string;
|
|
189
|
+
agentId: string;
|
|
190
190
|
projectId: string;
|
|
191
191
|
tenantId: string;
|
|
192
192
|
subAgentId: string;
|
|
@@ -10,25 +10,25 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
10
10
|
id: string;
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
|
-
|
|
13
|
+
headersSchema: unknown;
|
|
14
|
+
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
14
15
|
createdAt: string;
|
|
15
16
|
updatedAt: string;
|
|
17
|
+
agentId: string;
|
|
16
18
|
projectId: string;
|
|
17
19
|
tenantId: string;
|
|
18
|
-
headersSchema: unknown;
|
|
19
|
-
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
20
20
|
} | undefined>;
|
|
21
21
|
declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
|
|
22
22
|
scopes: AgentScopeConfig;
|
|
23
23
|
}) => Promise<{
|
|
24
24
|
id: string;
|
|
25
|
-
|
|
25
|
+
headersSchema: unknown;
|
|
26
|
+
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
26
27
|
createdAt: string;
|
|
27
28
|
updatedAt: string;
|
|
29
|
+
agentId: string;
|
|
28
30
|
projectId: string;
|
|
29
31
|
tenantId: string;
|
|
30
|
-
headersSchema: unknown;
|
|
31
|
-
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
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
|
-
|
|
47
|
+
headersSchema: unknown;
|
|
48
|
+
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
48
49
|
createdAt: string;
|
|
49
50
|
updatedAt: string;
|
|
51
|
+
agentId: string;
|
|
50
52
|
projectId: string;
|
|
51
53
|
tenantId: string;
|
|
52
|
-
headersSchema: unknown;
|
|
53
|
-
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
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
|
-
|
|
87
|
+
headersSchema: unknown;
|
|
88
|
+
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
88
89
|
createdAt: string;
|
|
89
90
|
updatedAt: string;
|
|
91
|
+
agentId: string;
|
|
90
92
|
projectId: string;
|
|
91
93
|
tenantId: string;
|
|
92
|
-
headersSchema: unknown;
|
|
93
|
-
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
94
94
|
}>;
|
|
95
95
|
//#endregion
|
|
96
96
|
export { countContextConfigs, createContextConfig, deleteContextConfig, getContextConfigById, hasContextConfig, listContextConfigs, listContextConfigsPaginated, updateContextConfig, upsertContextConfig };
|
|
@@ -66,8 +66,8 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
|
|
|
66
66
|
dataComponentId: string;
|
|
67
67
|
}) => Promise<{
|
|
68
68
|
id: string;
|
|
69
|
-
agentId: string;
|
|
70
69
|
createdAt: string;
|
|
70
|
+
agentId: string;
|
|
71
71
|
projectId: string;
|
|
72
72
|
tenantId: 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
|
-
agentId: string;
|
|
112
111
|
createdAt: string;
|
|
112
|
+
agentId: string;
|
|
113
113
|
projectId: string;
|
|
114
114
|
tenantId: string;
|
|
115
115
|
subAgentId: string;
|
|
@@ -53,14 +53,14 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
53
53
|
data: FunctionToolApiInsert;
|
|
54
54
|
scopes: AgentScopeConfig;
|
|
55
55
|
}) => Promise<{
|
|
56
|
-
name: string;
|
|
57
|
-
description: string | null;
|
|
58
56
|
id: string;
|
|
59
|
-
agentId: string;
|
|
60
57
|
createdAt: string;
|
|
58
|
+
name: string;
|
|
61
59
|
updatedAt: string;
|
|
60
|
+
agentId: string;
|
|
62
61
|
projectId: string;
|
|
63
62
|
tenantId: string;
|
|
63
|
+
description: string | null;
|
|
64
64
|
functionId: string;
|
|
65
65
|
}>;
|
|
66
66
|
/**
|
|
@@ -95,14 +95,14 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
95
95
|
data: FunctionToolApiInsert;
|
|
96
96
|
scopes: AgentScopeConfig;
|
|
97
97
|
}) => Promise<{
|
|
98
|
-
name: string;
|
|
99
|
-
description: string | null;
|
|
100
98
|
id: string;
|
|
101
|
-
agentId: string;
|
|
102
99
|
createdAt: string;
|
|
100
|
+
name: string;
|
|
103
101
|
updatedAt: string;
|
|
102
|
+
agentId: string;
|
|
104
103
|
projectId: string;
|
|
105
104
|
tenantId: string;
|
|
105
|
+
description: string | null;
|
|
106
106
|
functionId: string;
|
|
107
107
|
}>;
|
|
108
108
|
declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -158,9 +158,9 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
|
|
|
158
158
|
}> | null;
|
|
159
159
|
}) => Promise<{
|
|
160
160
|
id: string;
|
|
161
|
-
agentId: string;
|
|
162
161
|
createdAt: string;
|
|
163
162
|
updatedAt: string;
|
|
163
|
+
agentId: string;
|
|
164
164
|
projectId: string;
|
|
165
165
|
tenantId: string;
|
|
166
166
|
subAgentId: string;
|
|
@@ -223,9 +223,9 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
|
|
|
223
223
|
}> | null;
|
|
224
224
|
}) => Promise<{
|
|
225
225
|
id: string;
|
|
226
|
-
agentId: string;
|
|
227
226
|
createdAt: string;
|
|
228
227
|
updatedAt: string;
|
|
228
|
+
agentId: string;
|
|
229
229
|
projectId: string;
|
|
230
230
|
tenantId: string;
|
|
231
231
|
subAgentId: string;
|
|
@@ -15,14 +15,14 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
15
15
|
scopes: ProjectScopeConfig;
|
|
16
16
|
skillId: string;
|
|
17
17
|
}) => Promise<{
|
|
18
|
-
name: string;
|
|
19
|
-
description: string;
|
|
20
18
|
id: string;
|
|
21
|
-
metadata: Record<string, string> | null;
|
|
22
19
|
createdAt: string;
|
|
20
|
+
name: string;
|
|
23
21
|
updatedAt: string;
|
|
24
22
|
projectId: string;
|
|
25
23
|
tenantId: string;
|
|
24
|
+
description: string;
|
|
25
|
+
metadata: Record<string, string> | null;
|
|
26
26
|
content: string;
|
|
27
27
|
} | null>;
|
|
28
28
|
declare const getSkillByIdWithFiles: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -110,14 +110,14 @@ interface WithTenantIdProjectId {
|
|
|
110
110
|
}
|
|
111
111
|
declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillApiInsert & WithTenantIdProjectId) => Promise<SkillRecordWithFiles>;
|
|
112
112
|
declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillApiInsert & WithTenantIdProjectId) => Promise<{
|
|
113
|
-
name: string;
|
|
114
|
-
description: string;
|
|
115
113
|
id: string;
|
|
116
|
-
metadata: Record<string, string> | null;
|
|
117
114
|
createdAt: string;
|
|
115
|
+
name: string;
|
|
118
116
|
updatedAt: string;
|
|
119
117
|
projectId: string;
|
|
120
118
|
tenantId: string;
|
|
119
|
+
description: string;
|
|
120
|
+
metadata: Record<string, string> | null;
|
|
121
121
|
content: string;
|
|
122
122
|
}>;
|
|
123
123
|
declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -140,9 +140,9 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
|
|
|
140
140
|
alwaysLoaded?: boolean;
|
|
141
141
|
}) => Promise<{
|
|
142
142
|
id: string;
|
|
143
|
-
agentId: string;
|
|
144
143
|
createdAt: string;
|
|
145
144
|
updatedAt: string;
|
|
145
|
+
agentId: string;
|
|
146
146
|
projectId: string;
|
|
147
147
|
tenantId: string;
|
|
148
148
|
subAgentId: string;
|
|
@@ -10,9 +10,9 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
|
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
|
-
agentId: string;
|
|
14
13
|
createdAt: string;
|
|
15
14
|
updatedAt: string;
|
|
15
|
+
agentId: string;
|
|
16
16
|
projectId: string;
|
|
17
17
|
tenantId: string;
|
|
18
18
|
subAgentId: string;
|
|
@@ -45,9 +45,9 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
|
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
47
|
id: string;
|
|
48
|
-
agentId: string;
|
|
49
48
|
createdAt: string;
|
|
50
49
|
updatedAt: string;
|
|
50
|
+
agentId: string;
|
|
51
51
|
projectId: string;
|
|
52
52
|
tenantId: string;
|
|
53
53
|
subAgentId: string;
|
|
@@ -58,9 +58,9 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
|
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
60
|
id: string;
|
|
61
|
-
agentId: string;
|
|
62
61
|
createdAt: string;
|
|
63
62
|
updatedAt: string;
|
|
63
|
+
agentId: string;
|
|
64
64
|
projectId: string;
|
|
65
65
|
tenantId: string;
|
|
66
66
|
subAgentId: string;
|
|
@@ -187,9 +187,9 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
187
187
|
};
|
|
188
188
|
}) => Promise<{
|
|
189
189
|
id: string;
|
|
190
|
-
agentId: string;
|
|
191
190
|
createdAt: string;
|
|
192
191
|
updatedAt: string;
|
|
192
|
+
agentId: string;
|
|
193
193
|
projectId: string;
|
|
194
194
|
tenantId: string;
|
|
195
195
|
subAgentId: string;
|
|
@@ -204,9 +204,9 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
|
|
|
204
204
|
externalAgentId: string;
|
|
205
205
|
}) => Promise<{
|
|
206
206
|
id: string;
|
|
207
|
-
agentId: string;
|
|
208
207
|
createdAt: string;
|
|
209
208
|
updatedAt: string;
|
|
209
|
+
agentId: string;
|
|
210
210
|
projectId: string;
|
|
211
211
|
tenantId: string;
|
|
212
212
|
subAgentId: string;
|
|
@@ -225,9 +225,9 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
225
225
|
};
|
|
226
226
|
}) => Promise<{
|
|
227
227
|
id: string;
|
|
228
|
-
agentId: string;
|
|
229
228
|
createdAt: string;
|
|
230
229
|
updatedAt: string;
|
|
230
|
+
agentId: string;
|
|
231
231
|
projectId: string;
|
|
232
232
|
tenantId: string;
|
|
233
233
|
subAgentId: string;
|
|
@@ -10,9 +10,9 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
|
-
agentId: string;
|
|
14
13
|
createdAt: string;
|
|
15
14
|
updatedAt: string;
|
|
15
|
+
agentId: string;
|
|
16
16
|
projectId: string;
|
|
17
17
|
tenantId: string;
|
|
18
18
|
relationType: string | null;
|
|
@@ -45,9 +45,9 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
47
|
id: string;
|
|
48
|
-
agentId: string;
|
|
49
48
|
createdAt: string;
|
|
50
49
|
updatedAt: string;
|
|
50
|
+
agentId: string;
|
|
51
51
|
projectId: string;
|
|
52
52
|
tenantId: string;
|
|
53
53
|
relationType: string | null;
|
|
@@ -58,9 +58,9 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
|
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
60
|
id: string;
|
|
61
|
-
agentId: string;
|
|
62
61
|
createdAt: string;
|
|
63
62
|
updatedAt: string;
|
|
63
|
+
agentId: string;
|
|
64
64
|
projectId: string;
|
|
65
65
|
tenantId: string;
|
|
66
66
|
relationType: string | null;
|
|
@@ -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
|
-
agentId: string;
|
|
131
130
|
createdAt: string;
|
|
132
131
|
updatedAt: string;
|
|
132
|
+
agentId: string;
|
|
133
133
|
projectId: string;
|
|
134
134
|
tenantId: string;
|
|
135
135
|
relationType: string | null;
|
|
@@ -146,9 +146,9 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
146
146
|
relationType: string;
|
|
147
147
|
}) => Promise<{
|
|
148
148
|
id: string;
|
|
149
|
-
agentId: string;
|
|
150
149
|
createdAt: string;
|
|
151
150
|
updatedAt: string;
|
|
151
|
+
agentId: string;
|
|
152
152
|
projectId: string;
|
|
153
153
|
tenantId: string;
|
|
154
154
|
relationType: string | null;
|
|
@@ -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
|
-
agentId: string;
|
|
164
163
|
createdAt: string;
|
|
165
164
|
updatedAt: string;
|
|
165
|
+
agentId: string;
|
|
166
166
|
projectId: string;
|
|
167
167
|
tenantId: string;
|
|
168
168
|
relationType: string | null;
|
|
@@ -205,9 +205,9 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
205
205
|
};
|
|
206
206
|
}) => Promise<{
|
|
207
207
|
id: string;
|
|
208
|
-
agentId: string;
|
|
209
208
|
createdAt: string;
|
|
210
209
|
updatedAt: string;
|
|
210
|
+
agentId: string;
|
|
211
211
|
projectId: string;
|
|
212
212
|
tenantId: string;
|
|
213
213
|
subAgentId: string;
|
|
@@ -249,9 +249,9 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
|
|
|
249
249
|
relationId: string;
|
|
250
250
|
}) => Promise<{
|
|
251
251
|
id: string;
|
|
252
|
-
agentId: string;
|
|
253
252
|
createdAt: string;
|
|
254
253
|
updatedAt: string;
|
|
254
|
+
agentId: string;
|
|
255
255
|
projectId: string;
|
|
256
256
|
tenantId: string;
|
|
257
257
|
subAgentId: string;
|
|
@@ -10,9 +10,9 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
|
-
agentId: string;
|
|
14
13
|
createdAt: string;
|
|
15
14
|
updatedAt: string;
|
|
15
|
+
agentId: string;
|
|
16
16
|
projectId: string;
|
|
17
17
|
tenantId: string;
|
|
18
18
|
subAgentId: string;
|
|
@@ -45,9 +45,9 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
|
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
47
|
id: string;
|
|
48
|
-
agentId: string;
|
|
49
48
|
createdAt: string;
|
|
50
49
|
updatedAt: string;
|
|
50
|
+
agentId: string;
|
|
51
51
|
projectId: string;
|
|
52
52
|
tenantId: string;
|
|
53
53
|
subAgentId: string;
|
|
@@ -58,9 +58,9 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
|
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
60
|
id: string;
|
|
61
|
-
agentId: string;
|
|
62
61
|
createdAt: string;
|
|
63
62
|
updatedAt: string;
|
|
63
|
+
agentId: string;
|
|
64
64
|
projectId: string;
|
|
65
65
|
tenantId: string;
|
|
66
66
|
subAgentId: string;
|
|
@@ -223,9 +223,9 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
223
223
|
};
|
|
224
224
|
}) => Promise<{
|
|
225
225
|
id: string;
|
|
226
|
-
agentId: string;
|
|
227
226
|
createdAt: string;
|
|
228
227
|
updatedAt: string;
|
|
228
|
+
agentId: string;
|
|
229
229
|
projectId: string;
|
|
230
230
|
tenantId: string;
|
|
231
231
|
subAgentId: string;
|
|
@@ -240,9 +240,9 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
|
|
|
240
240
|
targetAgentId: string;
|
|
241
241
|
}) => Promise<{
|
|
242
242
|
id: string;
|
|
243
|
-
agentId: string;
|
|
244
243
|
createdAt: string;
|
|
245
244
|
updatedAt: string;
|
|
245
|
+
agentId: string;
|
|
246
246
|
projectId: string;
|
|
247
247
|
tenantId: string;
|
|
248
248
|
subAgentId: string;
|
|
@@ -261,9 +261,9 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
261
261
|
};
|
|
262
262
|
}) => Promise<{
|
|
263
263
|
id: string;
|
|
264
|
-
agentId: string;
|
|
265
264
|
createdAt: string;
|
|
266
265
|
updatedAt: string;
|
|
266
|
+
agentId: string;
|
|
267
267
|
projectId: string;
|
|
268
268
|
tenantId: string;
|
|
269
269
|
subAgentId: string;
|