@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,14 +8,14 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
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
18
|
subAgentId: string;
|
|
16
|
-
agentId: string;
|
|
17
|
-
projectId: string;
|
|
18
|
-
tenantId: string;
|
|
19
19
|
targetAgentId: string;
|
|
20
20
|
} | undefined>;
|
|
21
21
|
declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -43,27 +43,27 @@ declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =
|
|
|
43
43
|
declare const getSubAgentTeamAgentRelations: (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
53
|
subAgentId: string;
|
|
51
|
-
agentId: string;
|
|
52
|
-
projectId: string;
|
|
53
|
-
tenantId: string;
|
|
54
54
|
targetAgentId: string;
|
|
55
55
|
}[]>;
|
|
56
56
|
declare const getSubAgentTeamAgentRelationsByAgent: (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
66
|
subAgentId: string;
|
|
64
|
-
agentId: string;
|
|
65
|
-
projectId: string;
|
|
66
|
-
tenantId: string;
|
|
67
67
|
targetAgentId: string;
|
|
68
68
|
}[]>;
|
|
69
69
|
declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -209,14 +209,14 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
209
209
|
headers?: Record<string, string> | null;
|
|
210
210
|
};
|
|
211
211
|
}) => Promise<{
|
|
212
|
+
tenantId: string;
|
|
213
|
+
projectId: string;
|
|
212
214
|
id: string;
|
|
215
|
+
agentId: string;
|
|
213
216
|
createdAt: string;
|
|
214
217
|
updatedAt: string;
|
|
215
218
|
headers: Record<string, string> | null;
|
|
216
219
|
subAgentId: string;
|
|
217
|
-
agentId: string;
|
|
218
|
-
projectId: string;
|
|
219
|
-
tenantId: string;
|
|
220
220
|
targetAgentId: string;
|
|
221
221
|
}>;
|
|
222
222
|
/**
|
|
@@ -226,14 +226,14 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
|
|
|
226
226
|
scopes: SubAgentScopeConfig;
|
|
227
227
|
targetAgentId: string;
|
|
228
228
|
}) => Promise<{
|
|
229
|
+
tenantId: string;
|
|
230
|
+
projectId: string;
|
|
229
231
|
id: string;
|
|
232
|
+
agentId: string;
|
|
230
233
|
createdAt: string;
|
|
231
234
|
updatedAt: string;
|
|
232
235
|
headers: Record<string, string> | null;
|
|
233
236
|
subAgentId: string;
|
|
234
|
-
agentId: string;
|
|
235
|
-
projectId: string;
|
|
236
|
-
tenantId: string;
|
|
237
237
|
targetAgentId: string;
|
|
238
238
|
} | undefined>;
|
|
239
239
|
/**
|
|
@@ -247,14 +247,14 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
247
247
|
headers?: Record<string, string> | null;
|
|
248
248
|
};
|
|
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
256
|
headers: Record<string, string> | null;
|
|
254
257
|
subAgentId: string;
|
|
255
|
-
agentId: string;
|
|
256
|
-
projectId: string;
|
|
257
|
-
tenantId: string;
|
|
258
258
|
targetAgentId: string;
|
|
259
259
|
}>;
|
|
260
260
|
declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -8,16 +8,15 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
8
8
|
scopes: AgentScopeConfig;
|
|
9
9
|
subAgentId: string;
|
|
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
|
-
stepCountIs?: number | undefined;
|
|
18
|
-
} | null;
|
|
19
16
|
prompt: string | null;
|
|
20
|
-
|
|
17
|
+
agentId: string;
|
|
18
|
+
createdAt: string;
|
|
19
|
+
updatedAt: string;
|
|
21
20
|
models: {
|
|
22
21
|
base?: {
|
|
23
22
|
model?: string | undefined;
|
|
@@ -32,23 +31,23 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
32
31
|
providerOptions?: Record<string, any> | undefined;
|
|
33
32
|
} | undefined;
|
|
34
33
|
} | null;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
stopWhen: {
|
|
35
|
+
stepCountIs?: number | undefined;
|
|
36
|
+
} | null;
|
|
37
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
38
38
|
} | undefined>;
|
|
39
39
|
declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
40
40
|
scopes: AgentScopeConfig;
|
|
41
41
|
}) => Promise<{
|
|
42
|
+
tenantId: string;
|
|
43
|
+
projectId: string;
|
|
42
44
|
id: string;
|
|
43
45
|
name: string;
|
|
44
|
-
createdAt: string;
|
|
45
|
-
updatedAt: string;
|
|
46
46
|
description: string | null;
|
|
47
|
-
stopWhen: {
|
|
48
|
-
stepCountIs?: number | undefined;
|
|
49
|
-
} | null;
|
|
50
47
|
prompt: string | null;
|
|
51
|
-
|
|
48
|
+
agentId: string;
|
|
49
|
+
createdAt: string;
|
|
50
|
+
updatedAt: string;
|
|
52
51
|
models: {
|
|
53
52
|
base?: {
|
|
54
53
|
model?: string | undefined;
|
|
@@ -63,9 +62,10 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
63
62
|
providerOptions?: Record<string, any> | undefined;
|
|
64
63
|
} | undefined;
|
|
65
64
|
} | null;
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
65
|
+
stopWhen: {
|
|
66
|
+
stepCountIs?: number | undefined;
|
|
67
|
+
} | null;
|
|
68
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
71
71
|
scopes: AgentScopeConfig;
|
|
@@ -108,16 +108,15 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
|
|
|
108
108
|
};
|
|
109
109
|
}>;
|
|
110
110
|
declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
111
|
+
tenantId: string;
|
|
112
|
+
projectId: string;
|
|
111
113
|
id: string;
|
|
112
114
|
name: string;
|
|
113
|
-
createdAt: string;
|
|
114
|
-
updatedAt: string;
|
|
115
115
|
description: string | null;
|
|
116
|
-
stopWhen: {
|
|
117
|
-
stepCountIs?: number | undefined;
|
|
118
|
-
} | null;
|
|
119
116
|
prompt: string | null;
|
|
120
|
-
|
|
117
|
+
agentId: string;
|
|
118
|
+
createdAt: string;
|
|
119
|
+
updatedAt: string;
|
|
121
120
|
models: {
|
|
122
121
|
base?: {
|
|
123
122
|
model?: string | undefined;
|
|
@@ -132,9 +131,10 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
132
131
|
providerOptions?: Record<string, any> | undefined;
|
|
133
132
|
} | undefined;
|
|
134
133
|
} | null;
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
134
|
+
stopWhen: {
|
|
135
|
+
stepCountIs?: number | undefined;
|
|
136
|
+
} | null;
|
|
137
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
138
138
|
}>;
|
|
139
139
|
declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
140
140
|
scopes: AgentScopeConfig;
|
|
@@ -12,19 +12,19 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
12
12
|
scopes: ProjectScopeConfig;
|
|
13
13
|
toolId: string;
|
|
14
14
|
}) => Promise<{
|
|
15
|
+
tenantId: string;
|
|
16
|
+
projectId: string;
|
|
15
17
|
id: string;
|
|
16
18
|
name: string;
|
|
17
|
-
createdAt: string;
|
|
18
|
-
updatedAt: string;
|
|
19
19
|
description: string | null;
|
|
20
|
-
headers: Record<string, string> | null;
|
|
21
|
-
projectId: string;
|
|
22
|
-
tenantId: string;
|
|
23
20
|
config: {
|
|
24
21
|
type: "mcp";
|
|
25
22
|
mcp: ToolMcpConfig;
|
|
26
23
|
};
|
|
27
24
|
credentialReferenceId: string | null;
|
|
25
|
+
createdAt: string;
|
|
26
|
+
updatedAt: string;
|
|
27
|
+
headers: Record<string, string> | null;
|
|
28
28
|
credentialScope: string;
|
|
29
29
|
imageUrl: string | null;
|
|
30
30
|
capabilities: ToolServerCapabilities | null;
|
|
@@ -68,19 +68,19 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
68
68
|
};
|
|
69
69
|
}>;
|
|
70
70
|
declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
|
|
71
|
+
tenantId: string;
|
|
72
|
+
projectId: string;
|
|
71
73
|
id: string;
|
|
72
74
|
name: string;
|
|
73
|
-
createdAt: string;
|
|
74
|
-
updatedAt: string;
|
|
75
75
|
description: string | null;
|
|
76
|
-
headers: Record<string, string> | null;
|
|
77
|
-
projectId: string;
|
|
78
|
-
tenantId: string;
|
|
79
76
|
config: {
|
|
80
77
|
type: "mcp";
|
|
81
78
|
mcp: ToolMcpConfig;
|
|
82
79
|
};
|
|
83
80
|
credentialReferenceId: string | null;
|
|
81
|
+
createdAt: string;
|
|
82
|
+
updatedAt: string;
|
|
83
|
+
headers: Record<string, string> | null;
|
|
84
84
|
credentialScope: string;
|
|
85
85
|
imageUrl: string | null;
|
|
86
86
|
capabilities: ToolServerCapabilities | null;
|
|
@@ -123,38 +123,38 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
123
123
|
needsApproval?: boolean;
|
|
124
124
|
}> | null;
|
|
125
125
|
}) => Promise<{
|
|
126
|
+
tenantId: string;
|
|
127
|
+
projectId: string;
|
|
126
128
|
id: string;
|
|
129
|
+
agentId: string;
|
|
127
130
|
createdAt: string;
|
|
128
131
|
updatedAt: string;
|
|
129
|
-
headers: Record<string, string> | null;
|
|
130
|
-
subAgentId: string;
|
|
131
|
-
agentId: string;
|
|
132
|
-
projectId: string;
|
|
133
|
-
tenantId: string;
|
|
134
132
|
toolId: string;
|
|
135
|
-
|
|
133
|
+
headers: Record<string, string> | null;
|
|
136
134
|
toolPolicies: Record<string, {
|
|
137
135
|
needsApproval?: boolean;
|
|
138
136
|
}> | null;
|
|
137
|
+
subAgentId: string;
|
|
138
|
+
selectedTools: string[] | null;
|
|
139
139
|
}>;
|
|
140
140
|
declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
141
141
|
scopes: AgentScopeConfig;
|
|
142
142
|
subAgentId: string;
|
|
143
143
|
toolId: string;
|
|
144
144
|
}) => Promise<{
|
|
145
|
+
tenantId: string;
|
|
146
|
+
projectId: string;
|
|
145
147
|
id: string;
|
|
148
|
+
agentId: string;
|
|
146
149
|
createdAt: string;
|
|
147
150
|
updatedAt: string;
|
|
148
|
-
headers: Record<string, string> | null;
|
|
149
|
-
subAgentId: string;
|
|
150
|
-
agentId: string;
|
|
151
|
-
projectId: string;
|
|
152
|
-
tenantId: string;
|
|
153
151
|
toolId: string;
|
|
154
|
-
|
|
152
|
+
headers: Record<string, string> | null;
|
|
155
153
|
toolPolicies: Record<string, {
|
|
156
154
|
needsApproval?: boolean;
|
|
157
155
|
}> | null;
|
|
156
|
+
subAgentId: string;
|
|
157
|
+
selectedTools: string[] | null;
|
|
158
158
|
}>;
|
|
159
159
|
/**
|
|
160
160
|
* Upsert agent-tool relation (create if it doesn't exist, update if it does)
|
|
@@ -170,19 +170,19 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
170
170
|
}> | null;
|
|
171
171
|
relationId?: string;
|
|
172
172
|
}) => Promise<{
|
|
173
|
+
tenantId: string;
|
|
174
|
+
projectId: string;
|
|
173
175
|
id: string;
|
|
176
|
+
agentId: string;
|
|
174
177
|
createdAt: string;
|
|
175
178
|
updatedAt: string;
|
|
176
|
-
headers: Record<string, string> | null;
|
|
177
|
-
subAgentId: string;
|
|
178
|
-
agentId: string;
|
|
179
|
-
projectId: string;
|
|
180
|
-
tenantId: string;
|
|
181
179
|
toolId: string;
|
|
182
|
-
|
|
180
|
+
headers: Record<string, string> | null;
|
|
183
181
|
toolPolicies: Record<string, {
|
|
184
182
|
needsApproval?: boolean;
|
|
185
183
|
}> | null;
|
|
184
|
+
subAgentId: string;
|
|
185
|
+
selectedTools: string[] | null;
|
|
186
186
|
}>;
|
|
187
187
|
/**
|
|
188
188
|
* Upsert a tool (create if it doesn't exist, update if it does)
|
|
@@ -190,19 +190,19 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
190
190
|
declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
191
191
|
data: ToolInsert;
|
|
192
192
|
}) => Promise<{
|
|
193
|
+
tenantId: string;
|
|
194
|
+
projectId: string;
|
|
193
195
|
id: string;
|
|
194
196
|
name: string;
|
|
195
|
-
createdAt: string;
|
|
196
|
-
updatedAt: string;
|
|
197
197
|
description: string | null;
|
|
198
|
-
headers: Record<string, string> | null;
|
|
199
|
-
projectId: string;
|
|
200
|
-
tenantId: string;
|
|
201
198
|
config: {
|
|
202
199
|
type: "mcp";
|
|
203
200
|
mcp: ToolMcpConfig;
|
|
204
201
|
};
|
|
205
202
|
credentialReferenceId: string | null;
|
|
203
|
+
createdAt: string;
|
|
204
|
+
updatedAt: string;
|
|
205
|
+
headers: Record<string, string> | null;
|
|
206
206
|
credentialScope: string;
|
|
207
207
|
imageUrl: string | null;
|
|
208
208
|
capabilities: ToolServerCapabilities | null;
|
|
@@ -7,49 +7,49 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
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 | null;
|
|
12
|
-
createdAt: string;
|
|
13
|
-
updatedAt: string;
|
|
14
|
-
expiresAt: string | null;
|
|
15
14
|
agentId: string;
|
|
16
|
-
projectId: string;
|
|
17
|
-
tenantId: string;
|
|
18
15
|
publicId: string;
|
|
19
16
|
keyHash: string;
|
|
20
17
|
keyPrefix: string;
|
|
21
18
|
lastUsedAt: string | null;
|
|
19
|
+
expiresAt: string | null;
|
|
20
|
+
createdAt: string;
|
|
21
|
+
updatedAt: string;
|
|
22
22
|
} | undefined>;
|
|
23
23
|
declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
|
|
24
|
+
tenantId: string;
|
|
25
|
+
projectId: string;
|
|
24
26
|
id: string;
|
|
25
27
|
name: string | null;
|
|
26
|
-
createdAt: string;
|
|
27
|
-
updatedAt: string;
|
|
28
|
-
expiresAt: string | null;
|
|
29
28
|
agentId: string;
|
|
30
|
-
projectId: string;
|
|
31
|
-
tenantId: string;
|
|
32
29
|
publicId: string;
|
|
33
30
|
keyHash: string;
|
|
34
31
|
keyPrefix: string;
|
|
35
32
|
lastUsedAt: string | null;
|
|
33
|
+
expiresAt: string | null;
|
|
34
|
+
createdAt: string;
|
|
35
|
+
updatedAt: string;
|
|
36
36
|
} | undefined>;
|
|
37
37
|
declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
38
38
|
scopes: ProjectScopeConfig;
|
|
39
39
|
agentId?: string;
|
|
40
40
|
}) => Promise<{
|
|
41
|
+
tenantId: string;
|
|
42
|
+
projectId: string;
|
|
41
43
|
id: string;
|
|
42
44
|
name: string | null;
|
|
43
|
-
createdAt: string;
|
|
44
|
-
updatedAt: string;
|
|
45
|
-
expiresAt: string | null;
|
|
46
45
|
agentId: string;
|
|
47
|
-
projectId: string;
|
|
48
|
-
tenantId: string;
|
|
49
46
|
publicId: string;
|
|
50
47
|
keyHash: string;
|
|
51
48
|
keyPrefix: string;
|
|
52
49
|
lastUsedAt: string | null;
|
|
50
|
+
expiresAt: string | null;
|
|
51
|
+
createdAt: string;
|
|
52
|
+
updatedAt: string;
|
|
53
53
|
}[]>;
|
|
54
54
|
declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
55
55
|
scopes: ProjectScopeConfig;
|
|
@@ -65,18 +65,18 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
65
65
|
};
|
|
66
66
|
}>;
|
|
67
67
|
declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
|
|
68
|
+
tenantId: string;
|
|
69
|
+
projectId: string;
|
|
68
70
|
id: string;
|
|
69
71
|
name: string | null;
|
|
70
|
-
createdAt: string;
|
|
71
|
-
updatedAt: string;
|
|
72
|
-
expiresAt: string | null;
|
|
73
72
|
agentId: string;
|
|
74
|
-
projectId: string;
|
|
75
|
-
tenantId: string;
|
|
76
73
|
publicId: string;
|
|
77
74
|
keyHash: string;
|
|
78
75
|
keyPrefix: string;
|
|
79
76
|
lastUsedAt: string | null;
|
|
77
|
+
expiresAt: string | null;
|
|
78
|
+
createdAt: string;
|
|
79
|
+
updatedAt: string;
|
|
80
80
|
}>;
|
|
81
81
|
declare const updateApiKey: (db: AgentsRunDatabaseClient) => (params: {
|
|
82
82
|
scopes: ProjectScopeConfig;
|
|
@@ -15,20 +15,20 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
15
15
|
total: number;
|
|
16
16
|
}>;
|
|
17
17
|
declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
|
|
18
|
+
tenantId: string;
|
|
19
|
+
projectId: string;
|
|
18
20
|
id: string;
|
|
21
|
+
title: string | null;
|
|
22
|
+
agentId: string | null;
|
|
19
23
|
createdAt: string;
|
|
20
24
|
updatedAt: string;
|
|
25
|
+
userId: string | null;
|
|
26
|
+
metadata: ConversationMetadata | null;
|
|
21
27
|
ref: {
|
|
22
28
|
type: "commit" | "tag" | "branch";
|
|
23
29
|
name: string;
|
|
24
30
|
hash: string;
|
|
25
31
|
} | null;
|
|
26
|
-
userId: string | null;
|
|
27
|
-
metadata: ConversationMetadata | null;
|
|
28
|
-
title: string | null;
|
|
29
|
-
agentId: string | null;
|
|
30
|
-
projectId: string;
|
|
31
|
-
tenantId: string;
|
|
32
32
|
activeSubAgentId: string;
|
|
33
33
|
lastContextResolution: string | null;
|
|
34
34
|
}>;
|
|
@@ -84,20 +84,20 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
84
84
|
scopes: ProjectScopeConfig;
|
|
85
85
|
conversationId: string;
|
|
86
86
|
}) => Promise<{
|
|
87
|
+
tenantId: string;
|
|
88
|
+
projectId: string;
|
|
87
89
|
id: string;
|
|
90
|
+
title: string | null;
|
|
91
|
+
agentId: string | null;
|
|
88
92
|
createdAt: string;
|
|
89
93
|
updatedAt: string;
|
|
94
|
+
userId: string | null;
|
|
95
|
+
metadata: ConversationMetadata | null;
|
|
90
96
|
ref: {
|
|
91
97
|
type: "commit" | "tag" | "branch";
|
|
92
98
|
name: string;
|
|
93
99
|
hash: string;
|
|
94
100
|
} | null;
|
|
95
|
-
userId: string | null;
|
|
96
|
-
metadata: ConversationMetadata | null;
|
|
97
|
-
title: string | null;
|
|
98
|
-
agentId: string | null;
|
|
99
|
-
projectId: string;
|
|
100
|
-
tenantId: string;
|
|
101
101
|
activeSubAgentId: string;
|
|
102
102
|
lastContextResolution: string | null;
|
|
103
103
|
} | undefined>;
|
|
@@ -120,20 +120,20 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
120
120
|
metadata?: ConversationMetadata | null | undefined;
|
|
121
121
|
contextConfigId?: string | undefined;
|
|
122
122
|
} | {
|
|
123
|
+
tenantId: string;
|
|
124
|
+
projectId: string;
|
|
123
125
|
id: string;
|
|
126
|
+
title: string | null;
|
|
127
|
+
agentId: string | null;
|
|
124
128
|
createdAt: string;
|
|
125
129
|
updatedAt: string;
|
|
130
|
+
userId: string | null;
|
|
131
|
+
metadata: ConversationMetadata | null;
|
|
126
132
|
ref: {
|
|
127
133
|
type: "commit" | "tag" | "branch";
|
|
128
134
|
name: string;
|
|
129
135
|
hash: string;
|
|
130
136
|
} | null;
|
|
131
|
-
userId: string | null;
|
|
132
|
-
metadata: ConversationMetadata | null;
|
|
133
|
-
title: string | null;
|
|
134
|
-
agentId: string | null;
|
|
135
|
-
projectId: string;
|
|
136
|
-
tenantId: string;
|
|
137
137
|
activeSubAgentId: string;
|
|
138
138
|
lastContextResolution: string | null;
|
|
139
139
|
}>;
|
|
@@ -152,20 +152,20 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
|
|
|
152
152
|
scopes: ProjectScopeConfig;
|
|
153
153
|
conversationId: string;
|
|
154
154
|
}) => Promise<{
|
|
155
|
+
tenantId: string;
|
|
156
|
+
projectId: string;
|
|
155
157
|
id: string;
|
|
158
|
+
title: string | null;
|
|
159
|
+
agentId: string | null;
|
|
156
160
|
createdAt: string;
|
|
157
161
|
updatedAt: string;
|
|
162
|
+
userId: string | null;
|
|
163
|
+
metadata: ConversationMetadata | null;
|
|
158
164
|
ref: {
|
|
159
165
|
type: "commit" | "tag" | "branch";
|
|
160
166
|
name: string;
|
|
161
167
|
hash: string;
|
|
162
168
|
} | null;
|
|
163
|
-
userId: string | null;
|
|
164
|
-
metadata: ConversationMetadata | null;
|
|
165
|
-
title: string | null;
|
|
166
|
-
agentId: string | null;
|
|
167
|
-
projectId: string;
|
|
168
|
-
tenantId: string;
|
|
169
169
|
activeSubAgentId: string;
|
|
170
170
|
lastContextResolution: string | null;
|
|
171
171
|
} | undefined>;
|
|
@@ -9,26 +9,26 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
9
9
|
scopes: ProjectScopeConfig;
|
|
10
10
|
messageId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
+
tenantId: string;
|
|
13
|
+
projectId: string;
|
|
12
14
|
id: string;
|
|
13
15
|
createdAt: string;
|
|
14
16
|
updatedAt: string;
|
|
15
17
|
metadata: MessageMetadata | null;
|
|
18
|
+
content: MessageContent;
|
|
16
19
|
role: string;
|
|
20
|
+
conversationId: string;
|
|
21
|
+
taskId: string | null;
|
|
22
|
+
visibility: string;
|
|
17
23
|
fromSubAgentId: string | null;
|
|
18
24
|
toSubAgentId: string | null;
|
|
19
25
|
fromExternalAgentId: string | null;
|
|
20
26
|
toExternalAgentId: string | null;
|
|
21
|
-
taskId: string | null;
|
|
22
|
-
a2aTaskId: string | null;
|
|
23
|
-
projectId: string;
|
|
24
|
-
tenantId: string;
|
|
25
|
-
content: MessageContent;
|
|
26
|
-
conversationId: string;
|
|
27
27
|
fromTeamAgentId: string | null;
|
|
28
28
|
toTeamAgentId: string | null;
|
|
29
|
-
visibility: string;
|
|
30
29
|
messageType: string;
|
|
31
30
|
parentMessageId: string | null;
|
|
31
|
+
a2aTaskId: string | null;
|
|
32
32
|
a2aSessionId: string | null;
|
|
33
33
|
} | undefined>;
|
|
34
34
|
declare const listMessages: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -140,26 +140,26 @@ declare const getVisibleMessages: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
140
140
|
id: string;
|
|
141
141
|
}[]>;
|
|
142
142
|
declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageInsert) => Promise<{
|
|
143
|
+
tenantId: string;
|
|
144
|
+
projectId: string;
|
|
143
145
|
id: string;
|
|
144
146
|
createdAt: string;
|
|
145
147
|
updatedAt: string;
|
|
146
148
|
metadata: MessageMetadata | null;
|
|
149
|
+
content: MessageContent;
|
|
147
150
|
role: string;
|
|
151
|
+
conversationId: string;
|
|
152
|
+
taskId: string | null;
|
|
153
|
+
visibility: string;
|
|
148
154
|
fromSubAgentId: string | null;
|
|
149
155
|
toSubAgentId: string | null;
|
|
150
156
|
fromExternalAgentId: string | null;
|
|
151
157
|
toExternalAgentId: string | null;
|
|
152
|
-
taskId: string | null;
|
|
153
|
-
a2aTaskId: string | null;
|
|
154
|
-
projectId: string;
|
|
155
|
-
tenantId: string;
|
|
156
|
-
content: MessageContent;
|
|
157
|
-
conversationId: string;
|
|
158
158
|
fromTeamAgentId: string | null;
|
|
159
159
|
toTeamAgentId: string | null;
|
|
160
|
-
visibility: string;
|
|
161
160
|
messageType: string;
|
|
162
161
|
parentMessageId: string | null;
|
|
162
|
+
a2aTaskId: string | null;
|
|
163
163
|
a2aSessionId: string | null;
|
|
164
164
|
}>;
|
|
165
165
|
declare const updateMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -193,26 +193,26 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
193
193
|
scopes: ProjectScopeConfig;
|
|
194
194
|
messageId: string;
|
|
195
195
|
}) => Promise<{
|
|
196
|
+
tenantId: string;
|
|
197
|
+
projectId: string;
|
|
196
198
|
id: string;
|
|
197
199
|
createdAt: string;
|
|
198
200
|
updatedAt: string;
|
|
199
201
|
metadata: MessageMetadata | null;
|
|
202
|
+
content: MessageContent;
|
|
200
203
|
role: string;
|
|
204
|
+
conversationId: string;
|
|
205
|
+
taskId: string | null;
|
|
206
|
+
visibility: string;
|
|
201
207
|
fromSubAgentId: string | null;
|
|
202
208
|
toSubAgentId: string | null;
|
|
203
209
|
fromExternalAgentId: string | null;
|
|
204
210
|
toExternalAgentId: string | null;
|
|
205
|
-
taskId: string | null;
|
|
206
|
-
a2aTaskId: string | null;
|
|
207
|
-
projectId: string;
|
|
208
|
-
tenantId: string;
|
|
209
|
-
content: MessageContent;
|
|
210
|
-
conversationId: string;
|
|
211
211
|
fromTeamAgentId: string | null;
|
|
212
212
|
toTeamAgentId: string | null;
|
|
213
|
-
visibility: string;
|
|
214
213
|
messageType: string;
|
|
215
214
|
parentMessageId: string | null;
|
|
215
|
+
a2aTaskId: string | null;
|
|
216
216
|
a2aSessionId: string | null;
|
|
217
217
|
}>;
|
|
218
218
|
declare const countMessagesByConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -6,20 +6,20 @@ import { TaskInsert, TaskSelect } from "../../types/entities.js";
|
|
|
6
6
|
|
|
7
7
|
//#region src/data-access/runtime/tasks.d.ts
|
|
8
8
|
declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert) => Promise<{
|
|
9
|
+
tenantId: string;
|
|
10
|
+
projectId: string;
|
|
9
11
|
id: string;
|
|
12
|
+
agentId: string;
|
|
10
13
|
createdAt: string;
|
|
11
14
|
updatedAt: string;
|
|
15
|
+
metadata: TaskMetadataConfig | null;
|
|
12
16
|
ref: {
|
|
13
17
|
type: "commit" | "tag" | "branch";
|
|
14
18
|
name: string;
|
|
15
19
|
hash: string;
|
|
16
20
|
} | null;
|
|
17
|
-
metadata: TaskMetadataConfig | null;
|
|
18
21
|
status: string;
|
|
19
22
|
subAgentId: string;
|
|
20
|
-
agentId: string;
|
|
21
|
-
projectId: string;
|
|
22
|
-
tenantId: string;
|
|
23
23
|
contextId: string;
|
|
24
24
|
}>;
|
|
25
25
|
declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
|