@inkeep/agents-core 0.0.0-dev-20260121022749 → 0.0.0-dev-20260121032144
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/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/functionTools.d.ts +14 -14
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgentRelations.d.ts +30 -30
- 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 +33 -33
- package/dist/data-access/runtime/apiKeys.d.ts +20 -20
- package/dist/data-access/runtime/conversations.d.ts +24 -24
- package/dist/data-access/runtime/messages.d.ts +21 -21
- package/dist/data-access/runtime/tasks.d.ts +4 -4
- package/dist/db/manage/manage-schema.d.ts +375 -375
- package/dist/db/runtime/runtime-schema.d.ts +175 -175
- package/dist/validation/schemas.d.ts +1482 -1482
- package/package.json +1 -1
|
@@ -8,15 +8,14 @@ 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;
|
|
11
13
|
id: string;
|
|
12
14
|
name: string;
|
|
13
|
-
createdAt: string;
|
|
14
|
-
updatedAt: string;
|
|
15
15
|
description: string | null;
|
|
16
|
-
stopWhen: {
|
|
17
|
-
transferCountIs?: number | undefined;
|
|
18
|
-
} | null;
|
|
19
16
|
prompt: string | null;
|
|
17
|
+
createdAt: string;
|
|
18
|
+
updatedAt: string;
|
|
20
19
|
models: {
|
|
21
20
|
base?: {
|
|
22
21
|
model?: string | undefined;
|
|
@@ -31,8 +30,9 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
31
30
|
providerOptions?: Record<string, any> | undefined;
|
|
32
31
|
} | undefined;
|
|
33
32
|
} | null;
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
stopWhen: {
|
|
34
|
+
transferCountIs?: number | undefined;
|
|
35
|
+
} | null;
|
|
36
36
|
defaultSubAgentId: string | null;
|
|
37
37
|
contextConfigId: string | null;
|
|
38
38
|
statusUpdates: {
|
|
@@ -54,15 +54,14 @@ 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;
|
|
57
59
|
id: string;
|
|
58
60
|
name: string;
|
|
59
|
-
createdAt: string;
|
|
60
|
-
updatedAt: string;
|
|
61
61
|
description: string | null;
|
|
62
|
-
stopWhen: {
|
|
63
|
-
transferCountIs?: number | undefined;
|
|
64
|
-
} | null;
|
|
65
62
|
prompt: string | null;
|
|
63
|
+
createdAt: string;
|
|
64
|
+
updatedAt: string;
|
|
66
65
|
models: {
|
|
67
66
|
base?: {
|
|
68
67
|
model?: string | undefined;
|
|
@@ -77,8 +76,9 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
77
76
|
providerOptions?: Record<string, any> | undefined;
|
|
78
77
|
} | undefined;
|
|
79
78
|
} | null;
|
|
80
|
-
|
|
81
|
-
|
|
79
|
+
stopWhen: {
|
|
80
|
+
transferCountIs?: number | undefined;
|
|
81
|
+
} | null;
|
|
82
82
|
defaultSubAgentId: string | null;
|
|
83
83
|
contextConfigId: string | null;
|
|
84
84
|
statusUpdates: {
|
|
@@ -97,16 +97,15 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
97
97
|
}[] | undefined;
|
|
98
98
|
} | null;
|
|
99
99
|
defaultSubAgent: {
|
|
100
|
+
tenantId: string;
|
|
101
|
+
projectId: string;
|
|
100
102
|
id: string;
|
|
101
103
|
name: string;
|
|
102
|
-
createdAt: string;
|
|
103
|
-
updatedAt: string;
|
|
104
104
|
description: string | null;
|
|
105
|
-
stopWhen: {
|
|
106
|
-
stepCountIs?: number | undefined;
|
|
107
|
-
} | null;
|
|
108
105
|
prompt: string | null;
|
|
109
|
-
|
|
106
|
+
agentId: string;
|
|
107
|
+
createdAt: string;
|
|
108
|
+
updatedAt: string;
|
|
110
109
|
models: {
|
|
111
110
|
base?: {
|
|
112
111
|
model?: string | undefined;
|
|
@@ -121,23 +120,23 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
121
120
|
providerOptions?: Record<string, any> | undefined;
|
|
122
121
|
} | undefined;
|
|
123
122
|
} | null;
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
123
|
+
stopWhen: {
|
|
124
|
+
stepCountIs?: number | undefined;
|
|
125
|
+
} | null;
|
|
126
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
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;
|
|
132
134
|
id: string;
|
|
133
135
|
name: string;
|
|
134
|
-
createdAt: string;
|
|
135
|
-
updatedAt: string;
|
|
136
136
|
description: string | null;
|
|
137
|
-
stopWhen: {
|
|
138
|
-
transferCountIs?: number | undefined;
|
|
139
|
-
} | null;
|
|
140
137
|
prompt: string | null;
|
|
138
|
+
createdAt: string;
|
|
139
|
+
updatedAt: string;
|
|
141
140
|
models: {
|
|
142
141
|
base?: {
|
|
143
142
|
model?: string | undefined;
|
|
@@ -152,8 +151,9 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
152
151
|
providerOptions?: Record<string, any> | undefined;
|
|
153
152
|
} | undefined;
|
|
154
153
|
} | null;
|
|
155
|
-
|
|
156
|
-
|
|
154
|
+
stopWhen: {
|
|
155
|
+
transferCountIs?: number | undefined;
|
|
156
|
+
} | null;
|
|
157
157
|
defaultSubAgentId: string | null;
|
|
158
158
|
contextConfigId: string | null;
|
|
159
159
|
statusUpdates: {
|
|
@@ -228,15 +228,14 @@ 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;
|
|
231
233
|
id: string;
|
|
232
234
|
name: string;
|
|
233
|
-
createdAt: string;
|
|
234
|
-
updatedAt: string;
|
|
235
235
|
description: string | null;
|
|
236
|
-
stopWhen: {
|
|
237
|
-
transferCountIs?: number | undefined;
|
|
238
|
-
} | null;
|
|
239
236
|
prompt: string | null;
|
|
237
|
+
createdAt: string;
|
|
238
|
+
updatedAt: string;
|
|
240
239
|
models: {
|
|
241
240
|
base?: {
|
|
242
241
|
model?: string | undefined;
|
|
@@ -251,8 +250,9 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
251
250
|
providerOptions?: Record<string, any> | undefined;
|
|
252
251
|
} | undefined;
|
|
253
252
|
} | null;
|
|
254
|
-
|
|
255
|
-
|
|
253
|
+
stopWhen: {
|
|
254
|
+
transferCountIs?: number | undefined;
|
|
255
|
+
} | null;
|
|
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;
|
|
10
12
|
id: string;
|
|
11
13
|
name: string;
|
|
14
|
+
description: string | null;
|
|
12
15
|
createdAt: string;
|
|
13
16
|
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;
|
|
52
54
|
id: string;
|
|
53
55
|
name: string;
|
|
56
|
+
description: string | null;
|
|
54
57
|
createdAt: string;
|
|
55
58
|
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;
|
|
107
109
|
id: string;
|
|
110
|
+
agentId: string;
|
|
108
111
|
createdAt: string;
|
|
109
112
|
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;
|
|
150
152
|
id: string;
|
|
153
|
+
agentId: string;
|
|
151
154
|
createdAt: string;
|
|
152
155
|
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;
|
|
11
13
|
id: string;
|
|
14
|
+
agentId: string;
|
|
12
15
|
createdAt: string;
|
|
13
16
|
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;
|
|
23
25
|
id: string;
|
|
26
|
+
agentId: string;
|
|
24
27
|
createdAt: string;
|
|
25
28
|
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;
|
|
45
47
|
id: string;
|
|
48
|
+
agentId: string;
|
|
46
49
|
createdAt: string;
|
|
47
50
|
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;
|
|
85
87
|
id: string;
|
|
88
|
+
agentId: string;
|
|
86
89
|
createdAt: string;
|
|
87
90
|
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;
|
|
67
69
|
id: string;
|
|
70
|
+
agentId: string;
|
|
68
71
|
createdAt: string;
|
|
69
72
|
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;
|
|
109
111
|
id: string;
|
|
112
|
+
agentId: string;
|
|
110
113
|
createdAt: string;
|
|
111
114
|
subAgentId: string;
|
|
112
|
-
agentId: string;
|
|
113
|
-
projectId: string;
|
|
114
|
-
tenantId: string;
|
|
115
115
|
dataComponentId: string;
|
|
116
116
|
} | null>;
|
|
117
117
|
/**
|
|
@@ -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;
|
|
56
58
|
id: string;
|
|
57
59
|
name: string;
|
|
58
|
-
createdAt: string;
|
|
59
|
-
updatedAt: string;
|
|
60
60
|
description: string | null;
|
|
61
61
|
agentId: string;
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
createdAt: string;
|
|
63
|
+
updatedAt: string;
|
|
64
64
|
functionId: string;
|
|
65
65
|
}>;
|
|
66
66
|
/**
|
|
@@ -95,14 +95,14 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
95
95
|
data: FunctionToolApiInsert;
|
|
96
96
|
scopes: AgentScopeConfig;
|
|
97
97
|
}) => Promise<{
|
|
98
|
+
tenantId: string;
|
|
99
|
+
projectId: string;
|
|
98
100
|
id: string;
|
|
99
101
|
name: string;
|
|
100
|
-
createdAt: string;
|
|
101
|
-
updatedAt: string;
|
|
102
102
|
description: string | null;
|
|
103
103
|
agentId: string;
|
|
104
|
-
|
|
105
|
-
|
|
104
|
+
createdAt: string;
|
|
105
|
+
updatedAt: 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;
|
|
153
155
|
id: string;
|
|
156
|
+
agentId: string;
|
|
154
157
|
createdAt: string;
|
|
155
158
|
updatedAt: string;
|
|
156
159
|
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;
|
|
209
211
|
id: string;
|
|
212
|
+
agentId: string;
|
|
210
213
|
createdAt: string;
|
|
211
214
|
updatedAt: string;
|
|
212
215
|
subAgentId: string;
|
|
213
|
-
agentId: string;
|
|
214
|
-
projectId: string;
|
|
215
|
-
tenantId: string;
|
|
216
216
|
functionToolId: string;
|
|
217
217
|
}>;
|
|
218
218
|
//#endregion
|
|
@@ -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;
|
|
11
13
|
id: string;
|
|
14
|
+
agentId: string;
|
|
12
15
|
createdAt: string;
|
|
13
16
|
updatedAt: string;
|
|
14
17
|
headers: Record<string, string> | null;
|
|
15
|
-
subAgentId: string;
|
|
16
|
-
agentId: string;
|
|
17
|
-
projectId: string;
|
|
18
|
-
tenantId: string;
|
|
19
18
|
externalAgentId: string;
|
|
19
|
+
subAgentId: 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;
|
|
46
48
|
id: string;
|
|
49
|
+
agentId: string;
|
|
47
50
|
createdAt: string;
|
|
48
51
|
updatedAt: string;
|
|
49
52
|
headers: Record<string, string> | null;
|
|
50
|
-
subAgentId: string;
|
|
51
|
-
agentId: string;
|
|
52
|
-
projectId: string;
|
|
53
|
-
tenantId: string;
|
|
54
53
|
externalAgentId: string;
|
|
54
|
+
subAgentId: string;
|
|
55
55
|
}[]>;
|
|
56
56
|
declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
57
57
|
scopes: AgentScopeConfig;
|
|
58
58
|
}) => Promise<{
|
|
59
|
+
tenantId: string;
|
|
60
|
+
projectId: string;
|
|
59
61
|
id: string;
|
|
62
|
+
agentId: string;
|
|
60
63
|
createdAt: string;
|
|
61
64
|
updatedAt: string;
|
|
62
65
|
headers: Record<string, string> | null;
|
|
63
|
-
subAgentId: string;
|
|
64
|
-
agentId: string;
|
|
65
|
-
projectId: string;
|
|
66
|
-
tenantId: string;
|
|
67
66
|
externalAgentId: string;
|
|
67
|
+
subAgentId: 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;
|
|
182
184
|
id: string;
|
|
185
|
+
agentId: string;
|
|
183
186
|
createdAt: string;
|
|
184
187
|
updatedAt: string;
|
|
185
188
|
headers: Record<string, string> | null;
|
|
186
|
-
subAgentId: string;
|
|
187
|
-
agentId: string;
|
|
188
|
-
projectId: string;
|
|
189
|
-
tenantId: string;
|
|
190
189
|
externalAgentId: string;
|
|
190
|
+
subAgentId: 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;
|
|
199
201
|
id: string;
|
|
202
|
+
agentId: string;
|
|
200
203
|
createdAt: string;
|
|
201
204
|
updatedAt: string;
|
|
202
205
|
headers: Record<string, string> | null;
|
|
203
|
-
subAgentId: string;
|
|
204
|
-
agentId: string;
|
|
205
|
-
projectId: string;
|
|
206
|
-
tenantId: string;
|
|
207
206
|
externalAgentId: string;
|
|
207
|
+
subAgentId: 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;
|
|
220
222
|
id: string;
|
|
223
|
+
agentId: string;
|
|
221
224
|
createdAt: string;
|
|
222
225
|
updatedAt: string;
|
|
223
226
|
headers: Record<string, string> | null;
|
|
224
|
-
subAgentId: string;
|
|
225
|
-
agentId: string;
|
|
226
|
-
projectId: string;
|
|
227
|
-
tenantId: string;
|
|
228
227
|
externalAgentId: string;
|
|
228
|
+
subAgentId: string;
|
|
229
229
|
}>;
|
|
230
230
|
declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
231
231
|
scopes: SubAgentScopeConfig;
|
|
@@ -8,12 +8,12 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
8
8
|
scopes: AgentScopeConfig;
|
|
9
9
|
relationId: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
+
tenantId: string;
|
|
12
|
+
projectId: string;
|
|
11
13
|
id: string;
|
|
14
|
+
agentId: string;
|
|
12
15
|
createdAt: string;
|
|
13
16
|
updatedAt: string;
|
|
14
|
-
agentId: string;
|
|
15
|
-
projectId: string;
|
|
16
|
-
tenantId: string;
|
|
17
17
|
sourceSubAgentId: string;
|
|
18
18
|
targetSubAgentId: string | null;
|
|
19
19
|
relationType: string | null;
|
|
@@ -43,12 +43,12 @@ declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
43
43
|
declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
44
44
|
scopes: SubAgentScopeConfig;
|
|
45
45
|
}) => Promise<{
|
|
46
|
+
tenantId: string;
|
|
47
|
+
projectId: string;
|
|
46
48
|
id: string;
|
|
49
|
+
agentId: string;
|
|
47
50
|
createdAt: string;
|
|
48
51
|
updatedAt: string;
|
|
49
|
-
agentId: string;
|
|
50
|
-
projectId: string;
|
|
51
|
-
tenantId: string;
|
|
52
52
|
sourceSubAgentId: string;
|
|
53
53
|
targetSubAgentId: string | null;
|
|
54
54
|
relationType: string | null;
|
|
@@ -56,12 +56,12 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
56
56
|
declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
57
57
|
scopes: AgentScopeConfig;
|
|
58
58
|
}) => Promise<{
|
|
59
|
+
tenantId: string;
|
|
60
|
+
projectId: string;
|
|
59
61
|
id: string;
|
|
62
|
+
agentId: string;
|
|
60
63
|
createdAt: string;
|
|
61
64
|
updatedAt: string;
|
|
62
|
-
agentId: string;
|
|
63
|
-
projectId: string;
|
|
64
|
-
tenantId: string;
|
|
65
65
|
sourceSubAgentId: string;
|
|
66
66
|
targetSubAgentId: string | null;
|
|
67
67
|
relationType: string | null;
|
|
@@ -125,12 +125,12 @@ declare const getRelatedAgentsForAgent: (db: AgentsManageDatabaseClient) => (par
|
|
|
125
125
|
}[];
|
|
126
126
|
}>;
|
|
127
127
|
declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
128
|
+
tenantId: string;
|
|
129
|
+
projectId: string;
|
|
128
130
|
id: string;
|
|
131
|
+
agentId: string;
|
|
129
132
|
createdAt: string;
|
|
130
133
|
updatedAt: string;
|
|
131
|
-
agentId: string;
|
|
132
|
-
projectId: string;
|
|
133
|
-
tenantId: string;
|
|
134
134
|
sourceSubAgentId: string;
|
|
135
135
|
targetSubAgentId: string | null;
|
|
136
136
|
relationType: string | null;
|
|
@@ -144,12 +144,12 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
144
144
|
targetSubAgentId?: string;
|
|
145
145
|
relationType: string;
|
|
146
146
|
}) => Promise<{
|
|
147
|
+
tenantId: string;
|
|
148
|
+
projectId: string;
|
|
147
149
|
id: string;
|
|
150
|
+
agentId: string;
|
|
148
151
|
createdAt: string;
|
|
149
152
|
updatedAt: string;
|
|
150
|
-
agentId: string;
|
|
151
|
-
projectId: string;
|
|
152
|
-
tenantId: string;
|
|
153
153
|
sourceSubAgentId: string;
|
|
154
154
|
targetSubAgentId: string | null;
|
|
155
155
|
relationType: string | null;
|
|
@@ -158,12 +158,12 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
158
158
|
* Upsert agent relation (create if it doesn't exist, no-op if it does)
|
|
159
159
|
*/
|
|
160
160
|
declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
161
|
+
tenantId: string;
|
|
162
|
+
projectId: string;
|
|
161
163
|
id: string;
|
|
164
|
+
agentId: string;
|
|
162
165
|
createdAt: string;
|
|
163
166
|
updatedAt: string;
|
|
164
|
-
agentId: string;
|
|
165
|
-
projectId: string;
|
|
166
|
-
tenantId: string;
|
|
167
167
|
sourceSubAgentId: string;
|
|
168
168
|
targetSubAgentId: string | null;
|
|
169
169
|
relationType: string | null;
|
|
@@ -203,19 +203,19 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
203
203
|
}> | null;
|
|
204
204
|
};
|
|
205
205
|
}) => Promise<{
|
|
206
|
+
tenantId: string;
|
|
207
|
+
projectId: string;
|
|
206
208
|
id: string;
|
|
209
|
+
agentId: string;
|
|
207
210
|
createdAt: string;
|
|
208
211
|
updatedAt: string;
|
|
209
|
-
headers: Record<string, string> | null;
|
|
210
|
-
subAgentId: string;
|
|
211
|
-
agentId: string;
|
|
212
|
-
projectId: string;
|
|
213
|
-
tenantId: string;
|
|
214
212
|
toolId: string;
|
|
215
|
-
|
|
213
|
+
headers: Record<string, string> | null;
|
|
216
214
|
toolPolicies: Record<string, {
|
|
217
215
|
needsApproval?: boolean;
|
|
218
216
|
}> | null;
|
|
217
|
+
subAgentId: string;
|
|
218
|
+
selectedTools: string[] | null;
|
|
219
219
|
}>;
|
|
220
220
|
declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
221
221
|
scopes: AgentScopeConfig;
|
|
@@ -247,19 +247,19 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
|
|
|
247
247
|
scopes: SubAgentScopeConfig;
|
|
248
248
|
relationId: string;
|
|
249
249
|
}) => Promise<{
|
|
250
|
+
tenantId: string;
|
|
251
|
+
projectId: string;
|
|
250
252
|
id: string;
|
|
253
|
+
agentId: string;
|
|
251
254
|
createdAt: string;
|
|
252
255
|
updatedAt: string;
|
|
253
|
-
headers: Record<string, string> | null;
|
|
254
|
-
subAgentId: string;
|
|
255
|
-
agentId: string;
|
|
256
|
-
projectId: string;
|
|
257
|
-
tenantId: string;
|
|
258
256
|
toolId: string;
|
|
259
|
-
|
|
257
|
+
headers: Record<string, string> | null;
|
|
260
258
|
toolPolicies: Record<string, {
|
|
261
259
|
needsApproval?: boolean;
|
|
262
260
|
}> | null;
|
|
261
|
+
subAgentId: string;
|
|
262
|
+
selectedTools: string[] | null;
|
|
263
263
|
} | undefined>;
|
|
264
264
|
declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
265
265
|
scopes: SubAgentScopeConfig;
|