@inkeep/agents-core 0.0.0-dev-20260120222159 → 0.0.0-dev-20260121022749
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.d.ts +53 -53
- package/dist/auth/auth.js +1 -1
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/context/ContextConfig.js +3 -3
- package/dist/data-access/index.d.ts +5 -5
- package/dist/data-access/index.js +5 -5
- package/dist/data-access/manage/agents.d.ts +37 -37
- package/dist/data-access/manage/artifactComponents.d.ts +12 -12
- package/dist/data-access/manage/contextConfigs.d.ts +12 -12
- package/dist/data-access/manage/dataComponents.d.ts +6 -6
- package/dist/data-access/manage/evalConfig.d.ts +12 -2
- package/dist/data-access/manage/evalConfig.js +25 -1
- package/dist/data-access/manage/functionTools.d.ts +14 -14
- package/dist/data-access/manage/projectFull.d.ts +0 -4
- package/dist/data-access/manage/projectFull.js +8 -21
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgentRelations.d.ts +36 -36
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgents.d.ts +27 -27
- package/dist/data-access/manage/tools.d.ts +41 -34
- package/dist/data-access/manage/tools.js +9 -1
- package/dist/data-access/manage/triggers.d.ts +0 -4
- package/dist/data-access/manage/triggers.js +1 -15
- package/dist/data-access/runtime/apiKeys.d.ts +20 -20
- package/dist/data-access/runtime/conversations.d.ts +31 -31
- package/dist/data-access/runtime/messages.d.ts +18 -18
- package/dist/data-access/runtime/organizations.d.ts +10 -1
- package/dist/data-access/runtime/organizations.js +13 -1
- package/dist/data-access/runtime/tasks.d.ts +7 -7
- package/dist/db/manage/manage-client.d.ts +3 -1
- package/dist/db/manage/manage-client.js +13 -1
- package/dist/db/manage/manage-schema.d.ts +375 -375
- package/dist/db/migrations/cleanup-old-trigger-auth.d.ts +1 -0
- package/dist/db/migrations/cleanup-old-trigger-auth.js +68 -0
- package/dist/db/runtime/runtime-schema.d.ts +181 -181
- package/dist/dolt/branch.d.ts +4 -53
- package/dist/dolt/branch.js +23 -81
- package/dist/dolt/branches-api.js +1 -1
- package/dist/dolt/index.d.ts +5 -3
- package/dist/dolt/index.js +5 -3
- package/dist/dolt/migrate-all-branches.js +1 -1
- package/dist/dolt/{ref.d.ts → ref-helpers.d.ts} +5 -2
- package/dist/dolt/{ref.js → ref-helpers.js} +15 -3
- package/dist/dolt/ref-middleware.d.ts +82 -0
- package/dist/dolt/ref-middleware.js +217 -0
- package/dist/dolt/ref-scope.d.ts +101 -0
- package/dist/dolt/ref-scope.js +231 -0
- package/dist/env.d.ts +2 -2
- package/dist/env.js +1 -1
- package/dist/index.d.ts +12 -10
- package/dist/index.js +15 -13
- package/dist/types/entities.d.ts +3 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/index.js +2 -2
- package/dist/utils/third-party-mcp-servers/composio-client.js +23 -23
- package/dist/utils/trigger-auth.d.ts +37 -7
- package/dist/utils/trigger-auth.js +72 -77
- package/dist/validation/dolt-schemas.d.ts +1 -1
- package/dist/validation/index.d.ts +2 -2
- package/dist/validation/index.js +2 -2
- package/dist/validation/schemas.d.ts +473 -486
- package/dist/validation/schemas.js +23 -28
- package/package.json +2 -1
|
@@ -8,14 +8,15 @@ import { PgTable } from "drizzle-orm/pg-core";
|
|
|
8
8
|
declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
9
9
|
scopes: AgentScopeConfig;
|
|
10
10
|
}) => Promise<{
|
|
11
|
-
tenantId: string;
|
|
12
|
-
projectId: string;
|
|
13
11
|
id: string;
|
|
14
12
|
name: string;
|
|
15
|
-
description: string | null;
|
|
16
|
-
prompt: string | null;
|
|
17
13
|
createdAt: string;
|
|
18
14
|
updatedAt: string;
|
|
15
|
+
description: string | null;
|
|
16
|
+
stopWhen: {
|
|
17
|
+
transferCountIs?: number | undefined;
|
|
18
|
+
} | null;
|
|
19
|
+
prompt: string | null;
|
|
19
20
|
models: {
|
|
20
21
|
base?: {
|
|
21
22
|
model?: string | undefined;
|
|
@@ -30,9 +31,8 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
30
31
|
providerOptions?: Record<string, any> | undefined;
|
|
31
32
|
} | undefined;
|
|
32
33
|
} | null;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
} | null;
|
|
34
|
+
projectId: string;
|
|
35
|
+
tenantId: string;
|
|
36
36
|
defaultSubAgentId: string | null;
|
|
37
37
|
contextConfigId: string | null;
|
|
38
38
|
statusUpdates: {
|
|
@@ -54,14 +54,15 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
54
54
|
declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
55
55
|
scopes: AgentScopeConfig;
|
|
56
56
|
}) => Promise<{
|
|
57
|
-
tenantId: string;
|
|
58
|
-
projectId: string;
|
|
59
57
|
id: string;
|
|
60
58
|
name: string;
|
|
61
|
-
description: string | null;
|
|
62
|
-
prompt: string | null;
|
|
63
59
|
createdAt: string;
|
|
64
60
|
updatedAt: string;
|
|
61
|
+
description: string | null;
|
|
62
|
+
stopWhen: {
|
|
63
|
+
transferCountIs?: number | undefined;
|
|
64
|
+
} | null;
|
|
65
|
+
prompt: string | null;
|
|
65
66
|
models: {
|
|
66
67
|
base?: {
|
|
67
68
|
model?: string | undefined;
|
|
@@ -76,9 +77,8 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
76
77
|
providerOptions?: Record<string, any> | undefined;
|
|
77
78
|
} | undefined;
|
|
78
79
|
} | null;
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
} | null;
|
|
80
|
+
projectId: string;
|
|
81
|
+
tenantId: string;
|
|
82
82
|
defaultSubAgentId: string | null;
|
|
83
83
|
contextConfigId: string | null;
|
|
84
84
|
statusUpdates: {
|
|
@@ -97,15 +97,16 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
97
97
|
}[] | undefined;
|
|
98
98
|
} | null;
|
|
99
99
|
defaultSubAgent: {
|
|
100
|
-
tenantId: string;
|
|
101
|
-
projectId: string;
|
|
102
100
|
id: string;
|
|
103
101
|
name: string;
|
|
104
|
-
description: string | null;
|
|
105
|
-
prompt: string | null;
|
|
106
|
-
agentId: string;
|
|
107
102
|
createdAt: string;
|
|
108
103
|
updatedAt: string;
|
|
104
|
+
description: string | null;
|
|
105
|
+
stopWhen: {
|
|
106
|
+
stepCountIs?: number | undefined;
|
|
107
|
+
} | null;
|
|
108
|
+
prompt: string | null;
|
|
109
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
109
110
|
models: {
|
|
110
111
|
base?: {
|
|
111
112
|
model?: string | undefined;
|
|
@@ -120,23 +121,23 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
120
121
|
providerOptions?: Record<string, any> | undefined;
|
|
121
122
|
} | undefined;
|
|
122
123
|
} | null;
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
124
|
+
agentId: string;
|
|
125
|
+
projectId: string;
|
|
126
|
+
tenantId: string;
|
|
127
127
|
} | null;
|
|
128
128
|
} | null>;
|
|
129
129
|
declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
130
130
|
scopes: ProjectScopeConfig;
|
|
131
131
|
}) => Promise<{
|
|
132
|
-
tenantId: string;
|
|
133
|
-
projectId: string;
|
|
134
132
|
id: string;
|
|
135
133
|
name: string;
|
|
136
|
-
description: string | null;
|
|
137
|
-
prompt: string | null;
|
|
138
134
|
createdAt: string;
|
|
139
135
|
updatedAt: string;
|
|
136
|
+
description: string | null;
|
|
137
|
+
stopWhen: {
|
|
138
|
+
transferCountIs?: number | undefined;
|
|
139
|
+
} | null;
|
|
140
|
+
prompt: string | null;
|
|
140
141
|
models: {
|
|
141
142
|
base?: {
|
|
142
143
|
model?: string | undefined;
|
|
@@ -151,9 +152,8 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
151
152
|
providerOptions?: Record<string, any> | undefined;
|
|
152
153
|
} | undefined;
|
|
153
154
|
} | null;
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
} | null;
|
|
155
|
+
projectId: string;
|
|
156
|
+
tenantId: string;
|
|
157
157
|
defaultSubAgentId: string | null;
|
|
158
158
|
contextConfigId: string | null;
|
|
159
159
|
statusUpdates: {
|
|
@@ -228,14 +228,15 @@ declare const listAgentsPaginated: (db: AgentsManageDatabaseClient) => (params:
|
|
|
228
228
|
};
|
|
229
229
|
}>;
|
|
230
230
|
declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
|
|
231
|
-
tenantId: string;
|
|
232
|
-
projectId: string;
|
|
233
231
|
id: string;
|
|
234
232
|
name: string;
|
|
235
|
-
description: string | null;
|
|
236
|
-
prompt: string | null;
|
|
237
233
|
createdAt: string;
|
|
238
234
|
updatedAt: string;
|
|
235
|
+
description: string | null;
|
|
236
|
+
stopWhen: {
|
|
237
|
+
transferCountIs?: number | undefined;
|
|
238
|
+
} | null;
|
|
239
|
+
prompt: string | null;
|
|
239
240
|
models: {
|
|
240
241
|
base?: {
|
|
241
242
|
model?: string | undefined;
|
|
@@ -250,9 +251,8 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
250
251
|
providerOptions?: Record<string, any> | undefined;
|
|
251
252
|
} | undefined;
|
|
252
253
|
} | null;
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
} | null;
|
|
254
|
+
projectId: string;
|
|
255
|
+
tenantId: string;
|
|
256
256
|
defaultSubAgentId: string | null;
|
|
257
257
|
contextConfigId: string | null;
|
|
258
258
|
statusUpdates: {
|
|
@@ -7,13 +7,13 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
|
|
|
7
7
|
scopes: ProjectScopeConfig;
|
|
8
8
|
id: string;
|
|
9
9
|
}) => Promise<{
|
|
10
|
-
tenantId: string;
|
|
11
|
-
projectId: string;
|
|
12
10
|
id: string;
|
|
13
11
|
name: string;
|
|
14
|
-
description: string | null;
|
|
15
12
|
createdAt: string;
|
|
16
13
|
updatedAt: string;
|
|
14
|
+
description: string | null;
|
|
15
|
+
projectId: string;
|
|
16
|
+
tenantId: string;
|
|
17
17
|
props: Record<string, unknown> | null;
|
|
18
18
|
render: {
|
|
19
19
|
component: string;
|
|
@@ -49,13 +49,13 @@ declare const listArtifactComponentsPaginated: (db: AgentsManageDatabaseClient)
|
|
|
49
49
|
};
|
|
50
50
|
}>;
|
|
51
51
|
declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
|
|
52
|
-
tenantId: string;
|
|
53
|
-
projectId: string;
|
|
54
52
|
id: string;
|
|
55
53
|
name: string;
|
|
56
|
-
description: string | null;
|
|
57
54
|
createdAt: string;
|
|
58
55
|
updatedAt: string;
|
|
56
|
+
description: string | null;
|
|
57
|
+
projectId: string;
|
|
58
|
+
tenantId: string;
|
|
59
59
|
props: Record<string, unknown> | null;
|
|
60
60
|
render: {
|
|
61
61
|
component: string;
|
|
@@ -104,12 +104,12 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
|
|
|
104
104
|
scopes: SubAgentScopeConfig;
|
|
105
105
|
artifactComponentId: string;
|
|
106
106
|
}) => Promise<{
|
|
107
|
-
tenantId: string;
|
|
108
|
-
projectId: string;
|
|
109
107
|
id: string;
|
|
110
|
-
agentId: string;
|
|
111
108
|
createdAt: string;
|
|
112
109
|
subAgentId: string;
|
|
110
|
+
agentId: string;
|
|
111
|
+
projectId: string;
|
|
112
|
+
tenantId: string;
|
|
113
113
|
artifactComponentId: string;
|
|
114
114
|
}>;
|
|
115
115
|
declare const removeArtifactComponentFromAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -147,12 +147,12 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
|
|
|
147
147
|
scopes: SubAgentScopeConfig;
|
|
148
148
|
artifactComponentId: string;
|
|
149
149
|
}) => Promise<{
|
|
150
|
-
tenantId: string;
|
|
151
|
-
projectId: string;
|
|
152
150
|
id: string;
|
|
153
|
-
agentId: string;
|
|
154
151
|
createdAt: string;
|
|
155
152
|
subAgentId: string;
|
|
153
|
+
agentId: string;
|
|
154
|
+
projectId: string;
|
|
155
|
+
tenantId: string;
|
|
156
156
|
artifactComponentId: string;
|
|
157
157
|
} | null>;
|
|
158
158
|
/**
|
|
@@ -8,24 +8,24 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
8
8
|
scopes: AgentScopeConfig;
|
|
9
9
|
id: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
-
tenantId: string;
|
|
12
|
-
projectId: string;
|
|
13
11
|
id: string;
|
|
14
|
-
agentId: string;
|
|
15
12
|
createdAt: string;
|
|
16
13
|
updatedAt: string;
|
|
14
|
+
agentId: string;
|
|
15
|
+
projectId: string;
|
|
16
|
+
tenantId: string;
|
|
17
17
|
headersSchema: unknown;
|
|
18
18
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
19
19
|
} | undefined>;
|
|
20
20
|
declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
|
|
21
21
|
scopes: AgentScopeConfig;
|
|
22
22
|
}) => Promise<{
|
|
23
|
-
tenantId: string;
|
|
24
|
-
projectId: string;
|
|
25
23
|
id: string;
|
|
26
|
-
agentId: string;
|
|
27
24
|
createdAt: string;
|
|
28
25
|
updatedAt: string;
|
|
26
|
+
agentId: string;
|
|
27
|
+
projectId: string;
|
|
28
|
+
tenantId: string;
|
|
29
29
|
headersSchema: unknown;
|
|
30
30
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
31
31
|
}[]>;
|
|
@@ -42,12 +42,12 @@ declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (
|
|
|
42
42
|
};
|
|
43
43
|
}>;
|
|
44
44
|
declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params: ContextConfigInsert) => Promise<{
|
|
45
|
-
tenantId: string;
|
|
46
|
-
projectId: string;
|
|
47
45
|
id: string;
|
|
48
|
-
agentId: string;
|
|
49
46
|
createdAt: string;
|
|
50
47
|
updatedAt: string;
|
|
48
|
+
agentId: string;
|
|
49
|
+
projectId: string;
|
|
50
|
+
tenantId: string;
|
|
51
51
|
headersSchema: unknown;
|
|
52
52
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
53
53
|
}>;
|
|
@@ -82,12 +82,12 @@ declare const countContextConfigs: (db: AgentsManageDatabaseClient) => (params:
|
|
|
82
82
|
declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params: {
|
|
83
83
|
data: ContextConfigInsert;
|
|
84
84
|
}) => Promise<{
|
|
85
|
-
tenantId: string;
|
|
86
|
-
projectId: string;
|
|
87
85
|
id: string;
|
|
88
|
-
agentId: string;
|
|
89
86
|
createdAt: string;
|
|
90
87
|
updatedAt: string;
|
|
88
|
+
agentId: string;
|
|
89
|
+
projectId: string;
|
|
90
|
+
tenantId: string;
|
|
91
91
|
headersSchema: unknown;
|
|
92
92
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
93
93
|
}>;
|
|
@@ -64,12 +64,12 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
|
|
|
64
64
|
scopes: SubAgentScopeConfig;
|
|
65
65
|
dataComponentId: string;
|
|
66
66
|
}) => Promise<{
|
|
67
|
-
tenantId: string;
|
|
68
|
-
projectId: string;
|
|
69
67
|
id: string;
|
|
70
|
-
agentId: string;
|
|
71
68
|
createdAt: string;
|
|
72
69
|
subAgentId: string;
|
|
70
|
+
agentId: string;
|
|
71
|
+
projectId: string;
|
|
72
|
+
tenantId: string;
|
|
73
73
|
dataComponentId: string;
|
|
74
74
|
}>;
|
|
75
75
|
/**
|
|
@@ -106,12 +106,12 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
|
|
|
106
106
|
scopes: SubAgentScopeConfig;
|
|
107
107
|
dataComponentId: string;
|
|
108
108
|
}) => Promise<{
|
|
109
|
-
tenantId: string;
|
|
110
|
-
projectId: string;
|
|
111
109
|
id: string;
|
|
112
|
-
agentId: string;
|
|
113
110
|
createdAt: string;
|
|
114
111
|
subAgentId: string;
|
|
112
|
+
agentId: string;
|
|
113
|
+
projectId: string;
|
|
114
|
+
tenantId: string;
|
|
115
115
|
dataComponentId: string;
|
|
116
116
|
} | null>;
|
|
117
117
|
/**
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ProjectScopeConfig } from "../../types/utility.js";
|
|
2
2
|
import { AgentsManageDatabaseClient } from "../../db/manage/manage-client.js";
|
|
3
|
-
import {
|
|
3
|
+
import { AgentsRunDatabaseClient } from "../../db/runtime/runtime-client.js";
|
|
4
|
+
import { DatasetInsert, DatasetItemInsert, DatasetItemSelect, DatasetItemUpdate, DatasetRunConfigAgentRelationInsert, DatasetRunConfigAgentRelationSelect, DatasetRunConfigInsert, DatasetRunConfigSelect, DatasetRunConfigUpdate, DatasetSelect, DatasetUpdate, EvaluationJobConfigEvaluatorRelationInsert, EvaluationJobConfigEvaluatorRelationSelect, EvaluationJobConfigInsert, EvaluationJobConfigSelect, EvaluationRunConfigEvaluationSuiteConfigRelationInsert, EvaluationRunConfigEvaluationSuiteConfigRelationSelect, EvaluationRunConfigInsert, EvaluationRunConfigSelect, EvaluationRunConfigUpdate, EvaluationRunConfigWithSuiteConfigs, EvaluationSuiteConfigEvaluatorRelationInsert, EvaluationSuiteConfigEvaluatorRelationSelect, EvaluationSuiteConfigInsert, EvaluationSuiteConfigSelect, EvaluationSuiteConfigUpdate, EvaluatorInsert, EvaluatorSelect, EvaluatorUpdate } from "../../types/entities.js";
|
|
4
5
|
|
|
5
6
|
//#region src/data-access/manage/evalConfig.d.ts
|
|
6
7
|
declare const getDatasetById: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -152,6 +153,9 @@ declare const getEvaluationRunConfigById: (db: AgentsManageDatabaseClient) => (p
|
|
|
152
153
|
declare const listEvaluationRunConfigs: (db: AgentsManageDatabaseClient) => (params: {
|
|
153
154
|
scopes: ProjectScopeConfig;
|
|
154
155
|
}) => Promise<EvaluationRunConfigSelect[]>;
|
|
156
|
+
declare const listEvaluationRunConfigsWithSuiteConfigs: (db: AgentsManageDatabaseClient) => (params: {
|
|
157
|
+
scopes: ProjectScopeConfig;
|
|
158
|
+
}) => Promise<EvaluationRunConfigWithSuiteConfigs[]>;
|
|
155
159
|
declare const createEvaluationRunConfig: (db: AgentsManageDatabaseClient) => (data: EvaluationRunConfigInsert) => Promise<EvaluationRunConfigSelect>;
|
|
156
160
|
declare const updateEvaluationRunConfig: (db: AgentsManageDatabaseClient) => (params: {
|
|
157
161
|
scopes: ProjectScopeConfig & {
|
|
@@ -207,5 +211,11 @@ declare const deleteEvaluationJobConfigEvaluatorRelationsByEvaluator: (db: Agent
|
|
|
207
211
|
evaluatorId: string;
|
|
208
212
|
};
|
|
209
213
|
}) => Promise<number>;
|
|
214
|
+
declare const linkDatasetRunToEvaluationJobConfig: (db: AgentsRunDatabaseClient) => (params: {
|
|
215
|
+
scopes: ProjectScopeConfig & {
|
|
216
|
+
datasetRunId: string;
|
|
217
|
+
};
|
|
218
|
+
evaluationJobConfigId: string;
|
|
219
|
+
}) => Promise<void>;
|
|
210
220
|
//#endregion
|
|
211
|
-
export { createDataset, createDatasetItem, createDatasetItems, createDatasetRunConfig, createDatasetRunConfigAgentRelation, createEvaluationJobConfig, createEvaluationJobConfigEvaluatorRelation, createEvaluationRunConfig, createEvaluationRunConfigEvaluationSuiteConfigRelation, createEvaluationSuiteConfig, createEvaluationSuiteConfigEvaluatorRelation, createEvaluator, deleteDataset, deleteDatasetItem, deleteDatasetItemsByDataset, deleteDatasetRunConfig, deleteDatasetRunConfigAgentRelation, deleteEvaluationJobConfig, deleteEvaluationJobConfigEvaluatorRelation, deleteEvaluationJobConfigEvaluatorRelationsByEvaluator, deleteEvaluationRunConfig, deleteEvaluationRunConfigEvaluationSuiteConfigRelation, deleteEvaluationSuiteConfig, deleteEvaluationSuiteConfigEvaluatorRelation, deleteEvaluationSuiteConfigEvaluatorRelationsByEvaluator, deleteEvaluator, getDatasetById, getDatasetItemById, getDatasetRunConfigAgentRelations, getDatasetRunConfigById, getEvaluationJobConfigById, getEvaluationJobConfigEvaluatorRelations, getEvaluationRunConfigById, getEvaluationRunConfigEvaluationSuiteConfigRelations, getEvaluationSuiteConfigById, getEvaluationSuiteConfigEvaluatorRelations, getEvaluatorById, getEvaluatorsByIds, listDatasetItems, listDatasetRunConfigs, listDatasets, listEvaluationJobConfigs, listEvaluationRunConfigs, listEvaluationSuiteConfigs, listEvaluators, updateDataset, updateDatasetItem, updateDatasetRunConfig, updateEvaluationRunConfig, updateEvaluationSuiteConfig, updateEvaluator };
|
|
221
|
+
export { createDataset, createDatasetItem, createDatasetItems, createDatasetRunConfig, createDatasetRunConfigAgentRelation, createEvaluationJobConfig, createEvaluationJobConfigEvaluatorRelation, createEvaluationRunConfig, createEvaluationRunConfigEvaluationSuiteConfigRelation, createEvaluationSuiteConfig, createEvaluationSuiteConfigEvaluatorRelation, createEvaluator, deleteDataset, deleteDatasetItem, deleteDatasetItemsByDataset, deleteDatasetRunConfig, deleteDatasetRunConfigAgentRelation, deleteEvaluationJobConfig, deleteEvaluationJobConfigEvaluatorRelation, deleteEvaluationJobConfigEvaluatorRelationsByEvaluator, deleteEvaluationRunConfig, deleteEvaluationRunConfigEvaluationSuiteConfigRelation, deleteEvaluationSuiteConfig, deleteEvaluationSuiteConfigEvaluatorRelation, deleteEvaluationSuiteConfigEvaluatorRelationsByEvaluator, deleteEvaluator, getDatasetById, getDatasetItemById, getDatasetRunConfigAgentRelations, getDatasetRunConfigById, getEvaluationJobConfigById, getEvaluationJobConfigEvaluatorRelations, getEvaluationRunConfigById, getEvaluationRunConfigEvaluationSuiteConfigRelations, getEvaluationSuiteConfigById, getEvaluationSuiteConfigEvaluatorRelations, getEvaluatorById, getEvaluatorsByIds, linkDatasetRunToEvaluationJobConfig, listDatasetItems, listDatasetRunConfigs, listDatasets, listEvaluationJobConfigs, listEvaluationRunConfigs, listEvaluationRunConfigsWithSuiteConfigs, listEvaluationSuiteConfigs, listEvaluators, updateDataset, updateDatasetItem, updateDatasetRunConfig, updateEvaluationRunConfig, updateEvaluationSuiteConfig, updateEvaluator };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { dataset, datasetItem, datasetRunConfig, datasetRunConfigAgentRelations, evaluationJobConfig, evaluationJobConfigEvaluatorRelations, evaluationRunConfig, evaluationRunConfigEvaluationSuiteConfigRelations, evaluationSuiteConfig, evaluationSuiteConfigEvaluatorRelations, evaluator } from "../../db/manage/manage-schema.js";
|
|
2
|
+
import { datasetRun } from "../../db/runtime/runtime-schema.js";
|
|
2
3
|
import { and, eq, inArray } from "drizzle-orm";
|
|
3
4
|
|
|
4
5
|
//#region src/data-access/manage/evalConfig.ts
|
|
@@ -177,6 +178,26 @@ const getEvaluationRunConfigById = (db) => async (params) => {
|
|
|
177
178
|
const listEvaluationRunConfigs = (db) => async (params) => {
|
|
178
179
|
return await db.select().from(evaluationRunConfig).where(and(eq(evaluationRunConfig.tenantId, params.scopes.tenantId), eq(evaluationRunConfig.projectId, params.scopes.projectId)));
|
|
179
180
|
};
|
|
181
|
+
const listEvaluationRunConfigsWithSuiteConfigs = (db) => async (params) => {
|
|
182
|
+
const rows = await db.select({
|
|
183
|
+
runConfig: evaluationRunConfig,
|
|
184
|
+
suiteConfigId: evaluationRunConfigEvaluationSuiteConfigRelations.evaluationSuiteConfigId
|
|
185
|
+
}).from(evaluationRunConfig).leftJoin(evaluationRunConfigEvaluationSuiteConfigRelations, and(eq(evaluationRunConfigEvaluationSuiteConfigRelations.tenantId, evaluationRunConfig.tenantId), eq(evaluationRunConfigEvaluationSuiteConfigRelations.projectId, evaluationRunConfig.projectId), eq(evaluationRunConfigEvaluationSuiteConfigRelations.evaluationRunConfigId, evaluationRunConfig.id))).where(and(eq(evaluationRunConfig.tenantId, params.scopes.tenantId), eq(evaluationRunConfig.projectId, params.scopes.projectId)));
|
|
186
|
+
const runConfigsById = /* @__PURE__ */ new Map();
|
|
187
|
+
for (const row of rows) {
|
|
188
|
+
const runConfig = row.runConfig;
|
|
189
|
+
const runConfigId = runConfig.id;
|
|
190
|
+
if (!runConfigsById.has(runConfigId)) {
|
|
191
|
+
const { tenantId: _tenantId, projectId: _projectId, ...apiRunConfig } = runConfig;
|
|
192
|
+
runConfigsById.set(runConfigId, {
|
|
193
|
+
...apiRunConfig,
|
|
194
|
+
suiteConfigIds: []
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
if (row.suiteConfigId) runConfigsById.get(runConfigId)?.suiteConfigIds.push(row.suiteConfigId);
|
|
198
|
+
}
|
|
199
|
+
return Array.from(runConfigsById.values());
|
|
200
|
+
};
|
|
180
201
|
const createEvaluationRunConfig = (db) => async (data) => {
|
|
181
202
|
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
182
203
|
const [created] = await db.insert(evaluationRunConfig).values({
|
|
@@ -246,6 +267,9 @@ const deleteEvaluationJobConfigEvaluatorRelation = (db) => async (params) => {
|
|
|
246
267
|
const deleteEvaluationJobConfigEvaluatorRelationsByEvaluator = (db) => async (params) => {
|
|
247
268
|
return (await db.delete(evaluationJobConfigEvaluatorRelations).where(and(eq(evaluationJobConfigEvaluatorRelations.tenantId, params.scopes.tenantId), eq(evaluationJobConfigEvaluatorRelations.projectId, params.scopes.projectId), eq(evaluationJobConfigEvaluatorRelations.evaluatorId, params.scopes.evaluatorId))).returning()).length;
|
|
248
269
|
};
|
|
270
|
+
const linkDatasetRunToEvaluationJobConfig = (db) => async (params) => {
|
|
271
|
+
await db.update(datasetRun).set({ evaluationJobConfigId: params.evaluationJobConfigId }).where(and(eq(datasetRun.tenantId, params.scopes.tenantId), eq(datasetRun.projectId, params.scopes.projectId), eq(datasetRun.id, params.scopes.datasetRunId)));
|
|
272
|
+
};
|
|
249
273
|
|
|
250
274
|
//#endregion
|
|
251
|
-
export { createDataset, createDatasetItem, createDatasetItems, createDatasetRunConfig, createDatasetRunConfigAgentRelation, createEvaluationJobConfig, createEvaluationJobConfigEvaluatorRelation, createEvaluationRunConfig, createEvaluationRunConfigEvaluationSuiteConfigRelation, createEvaluationSuiteConfig, createEvaluationSuiteConfigEvaluatorRelation, createEvaluator, deleteDataset, deleteDatasetItem, deleteDatasetItemsByDataset, deleteDatasetRunConfig, deleteDatasetRunConfigAgentRelation, deleteEvaluationJobConfig, deleteEvaluationJobConfigEvaluatorRelation, deleteEvaluationJobConfigEvaluatorRelationsByEvaluator, deleteEvaluationRunConfig, deleteEvaluationRunConfigEvaluationSuiteConfigRelation, deleteEvaluationSuiteConfig, deleteEvaluationSuiteConfigEvaluatorRelation, deleteEvaluationSuiteConfigEvaluatorRelationsByEvaluator, deleteEvaluator, getDatasetById, getDatasetItemById, getDatasetRunConfigAgentRelations, getDatasetRunConfigById, getEvaluationJobConfigById, getEvaluationJobConfigEvaluatorRelations, getEvaluationRunConfigById, getEvaluationRunConfigEvaluationSuiteConfigRelations, getEvaluationSuiteConfigById, getEvaluationSuiteConfigEvaluatorRelations, getEvaluatorById, getEvaluatorsByIds, listDatasetItems, listDatasetRunConfigs, listDatasets, listEvaluationJobConfigs, listEvaluationRunConfigs, listEvaluationSuiteConfigs, listEvaluators, updateDataset, updateDatasetItem, updateDatasetRunConfig, updateEvaluationRunConfig, updateEvaluationSuiteConfig, updateEvaluator };
|
|
275
|
+
export { createDataset, createDatasetItem, createDatasetItems, createDatasetRunConfig, createDatasetRunConfigAgentRelation, createEvaluationJobConfig, createEvaluationJobConfigEvaluatorRelation, createEvaluationRunConfig, createEvaluationRunConfigEvaluationSuiteConfigRelation, createEvaluationSuiteConfig, createEvaluationSuiteConfigEvaluatorRelation, createEvaluator, deleteDataset, deleteDatasetItem, deleteDatasetItemsByDataset, deleteDatasetRunConfig, deleteDatasetRunConfigAgentRelation, deleteEvaluationJobConfig, deleteEvaluationJobConfigEvaluatorRelation, deleteEvaluationJobConfigEvaluatorRelationsByEvaluator, deleteEvaluationRunConfig, deleteEvaluationRunConfigEvaluationSuiteConfigRelation, deleteEvaluationSuiteConfig, deleteEvaluationSuiteConfigEvaluatorRelation, deleteEvaluationSuiteConfigEvaluatorRelationsByEvaluator, deleteEvaluator, getDatasetById, getDatasetItemById, getDatasetRunConfigAgentRelations, getDatasetRunConfigById, getEvaluationJobConfigById, getEvaluationJobConfigEvaluatorRelations, getEvaluationRunConfigById, getEvaluationRunConfigEvaluationSuiteConfigRelations, getEvaluationSuiteConfigById, getEvaluationSuiteConfigEvaluatorRelations, getEvaluatorById, getEvaluatorsByIds, linkDatasetRunToEvaluationJobConfig, listDatasetItems, listDatasetRunConfigs, listDatasets, listEvaluationJobConfigs, listEvaluationRunConfigs, listEvaluationRunConfigsWithSuiteConfigs, listEvaluationSuiteConfigs, listEvaluators, updateDataset, updateDatasetItem, updateDatasetRunConfig, updateEvaluationRunConfig, updateEvaluationSuiteConfig, updateEvaluator };
|
|
@@ -53,14 +53,14 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
53
53
|
data: FunctionToolApiInsert;
|
|
54
54
|
scopes: AgentScopeConfig;
|
|
55
55
|
}) => Promise<{
|
|
56
|
-
tenantId: string;
|
|
57
|
-
projectId: string;
|
|
58
56
|
id: string;
|
|
59
57
|
name: string;
|
|
60
|
-
description: string | null;
|
|
61
|
-
agentId: string;
|
|
62
58
|
createdAt: string;
|
|
63
59
|
updatedAt: string;
|
|
60
|
+
description: string | null;
|
|
61
|
+
agentId: string;
|
|
62
|
+
projectId: string;
|
|
63
|
+
tenantId: 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
|
-
tenantId: string;
|
|
99
|
-
projectId: string;
|
|
100
98
|
id: string;
|
|
101
99
|
name: string;
|
|
102
|
-
description: string | null;
|
|
103
|
-
agentId: string;
|
|
104
100
|
createdAt: string;
|
|
105
101
|
updatedAt: string;
|
|
102
|
+
description: string | null;
|
|
103
|
+
agentId: string;
|
|
104
|
+
projectId: string;
|
|
105
|
+
tenantId: string;
|
|
106
106
|
functionId: string;
|
|
107
107
|
}>;
|
|
108
108
|
declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -150,13 +150,13 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
|
|
|
150
150
|
subAgentId: string;
|
|
151
151
|
functionToolId: string;
|
|
152
152
|
}) => Promise<{
|
|
153
|
-
tenantId: string;
|
|
154
|
-
projectId: string;
|
|
155
153
|
id: string;
|
|
156
|
-
agentId: string;
|
|
157
154
|
createdAt: string;
|
|
158
155
|
updatedAt: string;
|
|
159
156
|
subAgentId: string;
|
|
157
|
+
agentId: string;
|
|
158
|
+
projectId: string;
|
|
159
|
+
tenantId: string;
|
|
160
160
|
functionToolId: string;
|
|
161
161
|
}>;
|
|
162
162
|
/**
|
|
@@ -206,13 +206,13 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
|
|
|
206
206
|
subAgentId: string;
|
|
207
207
|
functionToolId: string;
|
|
208
208
|
}) => Promise<{
|
|
209
|
-
tenantId: string;
|
|
210
|
-
projectId: string;
|
|
211
209
|
id: string;
|
|
212
|
-
agentId: string;
|
|
213
210
|
createdAt: string;
|
|
214
211
|
updatedAt: string;
|
|
215
212
|
subAgentId: string;
|
|
213
|
+
agentId: string;
|
|
214
|
+
projectId: string;
|
|
215
|
+
tenantId: string;
|
|
216
216
|
functionToolId: string;
|
|
217
217
|
}>;
|
|
218
218
|
//#endregion
|
|
@@ -24,13 +24,9 @@ declare const updateFullProjectServerSide: (db: AgentsManageDatabaseClient, logg
|
|
|
24
24
|
}) => Promise<FullProjectSelect>;
|
|
25
25
|
declare const getFullProject: (db: AgentsManageDatabaseClient, logger?: ProjectLogger) => (params: {
|
|
26
26
|
scopes: ProjectScopeConfig;
|
|
27
|
-
/** Optional branch name to query from. If not provided, uses the project's main branch. */
|
|
28
|
-
branchName?: string;
|
|
29
27
|
}) => Promise<FullProjectSelect | null>;
|
|
30
28
|
declare const getFullProjectWithRelationIds: (db: AgentsManageDatabaseClient, logger?: ProjectLogger) => (params: {
|
|
31
29
|
scopes: ProjectScopeConfig;
|
|
32
|
-
/** Optional branch name to query from. If not provided, uses the project's main branch. */
|
|
33
|
-
branchName?: string;
|
|
34
30
|
}) => Promise<FullProjectSelectWithRelationIds | null>;
|
|
35
31
|
/**
|
|
36
32
|
* Delete a complete project and cascade to all related entities
|
|
@@ -3,7 +3,6 @@ import { deleteExternalAgent, listExternalAgents, upsertExternalAgent } from "./
|
|
|
3
3
|
import { deleteFunction, listFunctions, upsertFunction } from "./functions.js";
|
|
4
4
|
import { deleteCredentialReference, listCredentialReferences, upsertCredentialReference } from "./credentialReferences.js";
|
|
5
5
|
import { deleteTool, listTools, upsertTool } from "./tools.js";
|
|
6
|
-
import { getProjectBranchName, withBranch } from "../../dolt/branch.js";
|
|
7
6
|
import { listAgents } from "./agents.js";
|
|
8
7
|
import { deleteArtifactComponent, listArtifactComponents, upsertArtifactComponent } from "./artifactComponents.js";
|
|
9
8
|
import { deleteDataComponent, listDataComponents, upsertDataComponent } from "./dataComponents.js";
|
|
@@ -1091,29 +1090,17 @@ const getFullProjectInternal = (db, logger = defaultLogger) => async (params) =>
|
|
|
1091
1090
|
}
|
|
1092
1091
|
};
|
|
1093
1092
|
const getFullProject = (db, logger = defaultLogger) => async (params) => {
|
|
1094
|
-
const { scopes
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
callback: async (txDb) => {
|
|
1099
|
-
return getFullProjectInternal(txDb, logger)({
|
|
1100
|
-
scopes,
|
|
1101
|
-
includeRelationIds: false
|
|
1102
|
-
});
|
|
1103
|
-
}
|
|
1093
|
+
const { scopes } = params;
|
|
1094
|
+
return getFullProjectInternal(db, logger)({
|
|
1095
|
+
scopes,
|
|
1096
|
+
includeRelationIds: false
|
|
1104
1097
|
});
|
|
1105
1098
|
};
|
|
1106
1099
|
const getFullProjectWithRelationIds = (db, logger = defaultLogger) => async (params) => {
|
|
1107
|
-
const { scopes
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
callback: async (txDb) => {
|
|
1112
|
-
return getFullProjectInternal(txDb, logger)({
|
|
1113
|
-
scopes,
|
|
1114
|
-
includeRelationIds: true
|
|
1115
|
-
});
|
|
1116
|
-
}
|
|
1100
|
+
const { scopes } = params;
|
|
1101
|
+
return getFullProjectInternal(db, logger)({
|
|
1102
|
+
scopes,
|
|
1103
|
+
includeRelationIds: true
|
|
1117
1104
|
});
|
|
1118
1105
|
};
|
|
1119
1106
|
/**
|
|
@@ -8,15 +8,15 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
|
|
|
8
8
|
scopes: SubAgentScopeConfig;
|
|
9
9
|
relationId: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
-
tenantId: string;
|
|
12
|
-
projectId: string;
|
|
13
11
|
id: string;
|
|
14
|
-
agentId: string;
|
|
15
12
|
createdAt: string;
|
|
16
13
|
updatedAt: string;
|
|
17
14
|
headers: Record<string, string> | null;
|
|
18
|
-
externalAgentId: string;
|
|
19
15
|
subAgentId: string;
|
|
16
|
+
agentId: string;
|
|
17
|
+
projectId: string;
|
|
18
|
+
tenantId: string;
|
|
19
|
+
externalAgentId: string;
|
|
20
20
|
} | undefined>;
|
|
21
21
|
declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
22
22
|
scopes: SubAgentScopeConfig;
|
|
@@ -43,28 +43,28 @@ declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClien
|
|
|
43
43
|
declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
44
44
|
scopes: SubAgentScopeConfig;
|
|
45
45
|
}) => Promise<{
|
|
46
|
-
tenantId: string;
|
|
47
|
-
projectId: string;
|
|
48
46
|
id: string;
|
|
49
|
-
agentId: string;
|
|
50
47
|
createdAt: string;
|
|
51
48
|
updatedAt: string;
|
|
52
49
|
headers: Record<string, string> | null;
|
|
53
|
-
externalAgentId: string;
|
|
54
50
|
subAgentId: string;
|
|
51
|
+
agentId: string;
|
|
52
|
+
projectId: string;
|
|
53
|
+
tenantId: string;
|
|
54
|
+
externalAgentId: string;
|
|
55
55
|
}[]>;
|
|
56
56
|
declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
57
57
|
scopes: AgentScopeConfig;
|
|
58
58
|
}) => Promise<{
|
|
59
|
-
tenantId: string;
|
|
60
|
-
projectId: string;
|
|
61
59
|
id: string;
|
|
62
|
-
agentId: string;
|
|
63
60
|
createdAt: string;
|
|
64
61
|
updatedAt: string;
|
|
65
62
|
headers: Record<string, string> | null;
|
|
66
|
-
externalAgentId: string;
|
|
67
63
|
subAgentId: string;
|
|
64
|
+
agentId: string;
|
|
65
|
+
projectId: string;
|
|
66
|
+
tenantId: string;
|
|
67
|
+
externalAgentId: string;
|
|
68
68
|
}[]>;
|
|
69
69
|
declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
70
70
|
scopes: AgentScopeConfig;
|
|
@@ -179,15 +179,15 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
179
179
|
headers?: Record<string, string> | null;
|
|
180
180
|
};
|
|
181
181
|
}) => Promise<{
|
|
182
|
-
tenantId: string;
|
|
183
|
-
projectId: string;
|
|
184
182
|
id: string;
|
|
185
|
-
agentId: string;
|
|
186
183
|
createdAt: string;
|
|
187
184
|
updatedAt: string;
|
|
188
185
|
headers: Record<string, string> | null;
|
|
189
|
-
externalAgentId: string;
|
|
190
186
|
subAgentId: string;
|
|
187
|
+
agentId: string;
|
|
188
|
+
projectId: string;
|
|
189
|
+
tenantId: string;
|
|
190
|
+
externalAgentId: string;
|
|
191
191
|
}>;
|
|
192
192
|
/**
|
|
193
193
|
* Check if sub-agent external agent relation exists by params
|
|
@@ -196,15 +196,15 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
|
|
|
196
196
|
scopes: SubAgentScopeConfig;
|
|
197
197
|
externalAgentId: string;
|
|
198
198
|
}) => Promise<{
|
|
199
|
-
tenantId: string;
|
|
200
|
-
projectId: string;
|
|
201
199
|
id: string;
|
|
202
|
-
agentId: string;
|
|
203
200
|
createdAt: string;
|
|
204
201
|
updatedAt: string;
|
|
205
202
|
headers: Record<string, string> | null;
|
|
206
|
-
externalAgentId: string;
|
|
207
203
|
subAgentId: string;
|
|
204
|
+
agentId: string;
|
|
205
|
+
projectId: string;
|
|
206
|
+
tenantId: string;
|
|
207
|
+
externalAgentId: string;
|
|
208
208
|
} | undefined>;
|
|
209
209
|
/**
|
|
210
210
|
* Upsert sub-agent external agent relation (create if it doesn't exist, update if it does)
|
|
@@ -217,15 +217,15 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
217
217
|
headers?: Record<string, string> | null;
|
|
218
218
|
};
|
|
219
219
|
}) => Promise<{
|
|
220
|
-
tenantId: string;
|
|
221
|
-
projectId: string;
|
|
222
220
|
id: string;
|
|
223
|
-
agentId: string;
|
|
224
221
|
createdAt: string;
|
|
225
222
|
updatedAt: string;
|
|
226
223
|
headers: Record<string, string> | null;
|
|
227
|
-
externalAgentId: string;
|
|
228
224
|
subAgentId: string;
|
|
225
|
+
agentId: string;
|
|
226
|
+
projectId: string;
|
|
227
|
+
tenantId: string;
|
|
228
|
+
externalAgentId: string;
|
|
229
229
|
}>;
|
|
230
230
|
declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
231
231
|
scopes: SubAgentScopeConfig;
|