@inkeep/agents-core 0.0.0-dev-20260116175045 → 0.0.0-dev-20260116211102
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 +82 -82
- package/dist/auth/auth-validation-schemas.d.ts +146 -146
- package/dist/auth/auth.d.ts +39 -39
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/data-access/manage/agents.d.ts +25 -25
- package/dist/data-access/manage/artifactComponents.d.ts +4 -4
- package/dist/data-access/manage/contextConfigs.d.ts +4 -4
- package/dist/data-access/manage/dataComponents.d.ts +4 -4
- package/dist/data-access/manage/functionTools.d.ts +6 -6
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +6 -6
- package/dist/data-access/manage/subAgentRelations.d.ts +16 -16
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +6 -6
- package/dist/data-access/manage/subAgents.d.ts +15 -15
- package/dist/data-access/manage/tools.d.ts +9 -9
- package/dist/data-access/runtime/apiKeys.d.ts +8 -8
- package/dist/data-access/runtime/conversations.d.ts +32 -32
- package/dist/data-access/runtime/messages.d.ts +18 -18
- package/dist/data-access/runtime/tasks.d.ts +8 -8
- package/dist/db/manage/manage-schema.d.ts +360 -360
- package/dist/db/runtime/runtime-schema.d.ts +163 -163
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas.d.ts +1299 -1299
- package/package.json +1 -1
|
@@ -12,11 +12,11 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
12
12
|
createdAt: string;
|
|
13
13
|
updatedAt: string;
|
|
14
14
|
tenantId: string;
|
|
15
|
-
projectId: string;
|
|
16
15
|
agentId: string;
|
|
16
|
+
projectId: string;
|
|
17
|
+
relationType: string | null;
|
|
17
18
|
sourceSubAgentId: string;
|
|
18
19
|
targetSubAgentId: string | null;
|
|
19
|
-
relationType: string | null;
|
|
20
20
|
} | undefined>;
|
|
21
21
|
declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
22
22
|
scopes: AgentScopeConfig;
|
|
@@ -47,11 +47,11 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
47
47
|
createdAt: string;
|
|
48
48
|
updatedAt: string;
|
|
49
49
|
tenantId: string;
|
|
50
|
-
projectId: string;
|
|
51
50
|
agentId: string;
|
|
51
|
+
projectId: string;
|
|
52
|
+
relationType: string | null;
|
|
52
53
|
sourceSubAgentId: string;
|
|
53
54
|
targetSubAgentId: string | null;
|
|
54
|
-
relationType: string | null;
|
|
55
55
|
}[]>;
|
|
56
56
|
declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
57
57
|
scopes: AgentScopeConfig;
|
|
@@ -60,11 +60,11 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
|
|
|
60
60
|
createdAt: string;
|
|
61
61
|
updatedAt: string;
|
|
62
62
|
tenantId: string;
|
|
63
|
-
projectId: string;
|
|
64
63
|
agentId: string;
|
|
64
|
+
projectId: string;
|
|
65
|
+
relationType: string | null;
|
|
65
66
|
sourceSubAgentId: string;
|
|
66
67
|
targetSubAgentId: string | null;
|
|
67
|
-
relationType: string | null;
|
|
68
68
|
}[]>;
|
|
69
69
|
declare const getAgentRelationsBySource: (db: AgentsManageDatabaseClient) => (params: {
|
|
70
70
|
scopes: AgentScopeConfig;
|
|
@@ -129,11 +129,11 @@ declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
|
|
|
129
129
|
createdAt: string;
|
|
130
130
|
updatedAt: string;
|
|
131
131
|
tenantId: string;
|
|
132
|
-
projectId: string;
|
|
133
132
|
agentId: string;
|
|
133
|
+
projectId: string;
|
|
134
|
+
relationType: string | null;
|
|
134
135
|
sourceSubAgentId: string;
|
|
135
136
|
targetSubAgentId: string | null;
|
|
136
|
-
relationType: string | null;
|
|
137
137
|
}>;
|
|
138
138
|
/**
|
|
139
139
|
* Check if sub-agent relation exists by agent, source, target, and relation type
|
|
@@ -148,11 +148,11 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
148
148
|
createdAt: string;
|
|
149
149
|
updatedAt: string;
|
|
150
150
|
tenantId: string;
|
|
151
|
-
projectId: string;
|
|
152
151
|
agentId: string;
|
|
152
|
+
projectId: string;
|
|
153
|
+
relationType: string | null;
|
|
153
154
|
sourceSubAgentId: string;
|
|
154
155
|
targetSubAgentId: string | null;
|
|
155
|
-
relationType: string | null;
|
|
156
156
|
} | undefined>;
|
|
157
157
|
/**
|
|
158
158
|
* Upsert agent relation (create if it doesn't exist, no-op if it does)
|
|
@@ -162,11 +162,11 @@ declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
|
|
|
162
162
|
createdAt: string;
|
|
163
163
|
updatedAt: string;
|
|
164
164
|
tenantId: string;
|
|
165
|
-
projectId: string;
|
|
166
165
|
agentId: string;
|
|
166
|
+
projectId: string;
|
|
167
|
+
relationType: string | null;
|
|
167
168
|
sourceSubAgentId: string;
|
|
168
169
|
targetSubAgentId: string | null;
|
|
169
|
-
relationType: string | null;
|
|
170
170
|
}>;
|
|
171
171
|
declare const updateAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
172
172
|
scopes: AgentScopeConfig;
|
|
@@ -207,10 +207,10 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
207
207
|
createdAt: string;
|
|
208
208
|
updatedAt: string;
|
|
209
209
|
tenantId: string;
|
|
210
|
-
projectId: string;
|
|
211
210
|
agentId: string;
|
|
212
|
-
|
|
211
|
+
projectId: string;
|
|
213
212
|
subAgentId: string;
|
|
213
|
+
toolId: string;
|
|
214
214
|
headers: Record<string, string> | null;
|
|
215
215
|
selectedTools: string[] | null;
|
|
216
216
|
toolPolicies: Record<string, {
|
|
@@ -251,10 +251,10 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
|
|
|
251
251
|
createdAt: string;
|
|
252
252
|
updatedAt: string;
|
|
253
253
|
tenantId: string;
|
|
254
|
-
projectId: string;
|
|
255
254
|
agentId: string;
|
|
256
|
-
|
|
255
|
+
projectId: string;
|
|
257
256
|
subAgentId: string;
|
|
257
|
+
toolId: string;
|
|
258
258
|
headers: Record<string, string> | null;
|
|
259
259
|
selectedTools: string[] | null;
|
|
260
260
|
toolPolicies: Record<string, {
|
|
@@ -12,8 +12,8 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
12
12
|
createdAt: string;
|
|
13
13
|
updatedAt: string;
|
|
14
14
|
tenantId: string;
|
|
15
|
-
projectId: string;
|
|
16
15
|
agentId: string;
|
|
16
|
+
projectId: string;
|
|
17
17
|
subAgentId: string;
|
|
18
18
|
headers: Record<string, string> | null;
|
|
19
19
|
targetAgentId: string;
|
|
@@ -47,8 +47,8 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
|
|
|
47
47
|
createdAt: string;
|
|
48
48
|
updatedAt: string;
|
|
49
49
|
tenantId: string;
|
|
50
|
-
projectId: string;
|
|
51
50
|
agentId: string;
|
|
51
|
+
projectId: string;
|
|
52
52
|
subAgentId: string;
|
|
53
53
|
headers: Record<string, string> | null;
|
|
54
54
|
targetAgentId: string;
|
|
@@ -60,8 +60,8 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
|
|
|
60
60
|
createdAt: string;
|
|
61
61
|
updatedAt: string;
|
|
62
62
|
tenantId: string;
|
|
63
|
-
projectId: string;
|
|
64
63
|
agentId: string;
|
|
64
|
+
projectId: string;
|
|
65
65
|
subAgentId: string;
|
|
66
66
|
headers: Record<string, string> | null;
|
|
67
67
|
targetAgentId: string;
|
|
@@ -213,8 +213,8 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
213
213
|
createdAt: string;
|
|
214
214
|
updatedAt: string;
|
|
215
215
|
tenantId: string;
|
|
216
|
-
projectId: string;
|
|
217
216
|
agentId: string;
|
|
217
|
+
projectId: string;
|
|
218
218
|
subAgentId: string;
|
|
219
219
|
headers: Record<string, string> | null;
|
|
220
220
|
targetAgentId: string;
|
|
@@ -230,8 +230,8 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
|
|
|
230
230
|
createdAt: string;
|
|
231
231
|
updatedAt: string;
|
|
232
232
|
tenantId: string;
|
|
233
|
-
projectId: string;
|
|
234
233
|
agentId: string;
|
|
234
|
+
projectId: string;
|
|
235
235
|
subAgentId: string;
|
|
236
236
|
headers: Record<string, string> | null;
|
|
237
237
|
targetAgentId: string;
|
|
@@ -251,8 +251,8 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
251
251
|
createdAt: string;
|
|
252
252
|
updatedAt: string;
|
|
253
253
|
tenantId: string;
|
|
254
|
-
projectId: string;
|
|
255
254
|
agentId: string;
|
|
255
|
+
projectId: string;
|
|
256
256
|
subAgentId: string;
|
|
257
257
|
headers: Record<string, string> | null;
|
|
258
258
|
targetAgentId: string;
|
|
@@ -10,7 +10,12 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
10
10
|
}) => Promise<{
|
|
11
11
|
id: string;
|
|
12
12
|
name: string;
|
|
13
|
+
createdAt: string;
|
|
14
|
+
updatedAt: string;
|
|
15
|
+
tenantId: string;
|
|
16
|
+
agentId: string;
|
|
13
17
|
description: string | null;
|
|
18
|
+
projectId: string;
|
|
14
19
|
models: {
|
|
15
20
|
base?: {
|
|
16
21
|
model?: string | undefined;
|
|
@@ -28,12 +33,7 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
28
33
|
stopWhen: {
|
|
29
34
|
stepCountIs?: number | undefined;
|
|
30
35
|
} | null;
|
|
31
|
-
createdAt: string;
|
|
32
|
-
updatedAt: string;
|
|
33
|
-
tenantId: string;
|
|
34
36
|
prompt: string | null;
|
|
35
|
-
projectId: string;
|
|
36
|
-
agentId: string;
|
|
37
37
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
38
38
|
} | undefined>;
|
|
39
39
|
declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -41,7 +41,12 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
41
41
|
}) => Promise<{
|
|
42
42
|
id: string;
|
|
43
43
|
name: string;
|
|
44
|
+
createdAt: string;
|
|
45
|
+
updatedAt: string;
|
|
46
|
+
tenantId: string;
|
|
47
|
+
agentId: string;
|
|
44
48
|
description: string | null;
|
|
49
|
+
projectId: string;
|
|
45
50
|
models: {
|
|
46
51
|
base?: {
|
|
47
52
|
model?: string | undefined;
|
|
@@ -59,12 +64,7 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
59
64
|
stopWhen: {
|
|
60
65
|
stepCountIs?: number | undefined;
|
|
61
66
|
} | null;
|
|
62
|
-
createdAt: string;
|
|
63
|
-
updatedAt: string;
|
|
64
|
-
tenantId: string;
|
|
65
67
|
prompt: string | null;
|
|
66
|
-
projectId: string;
|
|
67
|
-
agentId: string;
|
|
68
68
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -110,7 +110,12 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
|
|
|
110
110
|
declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
111
111
|
id: string;
|
|
112
112
|
name: string;
|
|
113
|
+
createdAt: string;
|
|
114
|
+
updatedAt: string;
|
|
115
|
+
tenantId: string;
|
|
116
|
+
agentId: string;
|
|
113
117
|
description: string | null;
|
|
118
|
+
projectId: string;
|
|
114
119
|
models: {
|
|
115
120
|
base?: {
|
|
116
121
|
model?: string | undefined;
|
|
@@ -128,12 +133,7 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
128
133
|
stopWhen: {
|
|
129
134
|
stepCountIs?: number | undefined;
|
|
130
135
|
} | null;
|
|
131
|
-
createdAt: string;
|
|
132
|
-
updatedAt: string;
|
|
133
|
-
tenantId: string;
|
|
134
136
|
prompt: string | null;
|
|
135
|
-
projectId: string;
|
|
136
|
-
agentId: string;
|
|
137
137
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
138
138
|
}>;
|
|
139
139
|
declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -14,10 +14,10 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
14
14
|
}) => Promise<{
|
|
15
15
|
id: string;
|
|
16
16
|
name: string;
|
|
17
|
-
description: string | null;
|
|
18
17
|
createdAt: string;
|
|
19
18
|
updatedAt: string;
|
|
20
19
|
tenantId: string;
|
|
20
|
+
description: string | null;
|
|
21
21
|
projectId: string;
|
|
22
22
|
credentialReferenceId: string | null;
|
|
23
23
|
config: {
|
|
@@ -63,10 +63,10 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
63
63
|
declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
|
|
64
64
|
id: string;
|
|
65
65
|
name: string;
|
|
66
|
-
description: string | null;
|
|
67
66
|
createdAt: string;
|
|
68
67
|
updatedAt: string;
|
|
69
68
|
tenantId: string;
|
|
69
|
+
description: string | null;
|
|
70
70
|
projectId: string;
|
|
71
71
|
credentialReferenceId: string | null;
|
|
72
72
|
config: {
|
|
@@ -120,10 +120,10 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
120
120
|
createdAt: string;
|
|
121
121
|
updatedAt: string;
|
|
122
122
|
tenantId: string;
|
|
123
|
-
projectId: string;
|
|
124
123
|
agentId: string;
|
|
125
|
-
|
|
124
|
+
projectId: string;
|
|
126
125
|
subAgentId: string;
|
|
126
|
+
toolId: string;
|
|
127
127
|
headers: Record<string, string> | null;
|
|
128
128
|
selectedTools: string[] | null;
|
|
129
129
|
toolPolicies: Record<string, {
|
|
@@ -139,10 +139,10 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
|
|
|
139
139
|
createdAt: string;
|
|
140
140
|
updatedAt: string;
|
|
141
141
|
tenantId: string;
|
|
142
|
-
projectId: string;
|
|
143
142
|
agentId: string;
|
|
144
|
-
|
|
143
|
+
projectId: string;
|
|
145
144
|
subAgentId: string;
|
|
145
|
+
toolId: string;
|
|
146
146
|
headers: Record<string, string> | null;
|
|
147
147
|
selectedTools: string[] | null;
|
|
148
148
|
toolPolicies: Record<string, {
|
|
@@ -167,10 +167,10 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
167
167
|
createdAt: string;
|
|
168
168
|
updatedAt: string;
|
|
169
169
|
tenantId: string;
|
|
170
|
-
projectId: string;
|
|
171
170
|
agentId: string;
|
|
172
|
-
|
|
171
|
+
projectId: string;
|
|
173
172
|
subAgentId: string;
|
|
173
|
+
toolId: string;
|
|
174
174
|
headers: Record<string, string> | null;
|
|
175
175
|
selectedTools: string[] | null;
|
|
176
176
|
toolPolicies: Record<string, {
|
|
@@ -185,10 +185,10 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
185
185
|
}) => Promise<{
|
|
186
186
|
id: string;
|
|
187
187
|
name: string;
|
|
188
|
-
description: string | null;
|
|
189
188
|
createdAt: string;
|
|
190
189
|
updatedAt: string;
|
|
191
190
|
tenantId: string;
|
|
191
|
+
description: string | null;
|
|
192
192
|
projectId: string;
|
|
193
193
|
credentialReferenceId: string | null;
|
|
194
194
|
config: {
|
|
@@ -11,10 +11,10 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
11
11
|
name: string | null;
|
|
12
12
|
createdAt: string;
|
|
13
13
|
updatedAt: string;
|
|
14
|
+
expiresAt: string | null;
|
|
14
15
|
tenantId: string;
|
|
15
|
-
projectId: string;
|
|
16
16
|
agentId: string;
|
|
17
|
-
|
|
17
|
+
projectId: string;
|
|
18
18
|
publicId: string;
|
|
19
19
|
keyHash: string;
|
|
20
20
|
keyPrefix: string;
|
|
@@ -25,10 +25,10 @@ declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: s
|
|
|
25
25
|
name: string | null;
|
|
26
26
|
createdAt: string;
|
|
27
27
|
updatedAt: string;
|
|
28
|
+
expiresAt: string | null;
|
|
28
29
|
tenantId: string;
|
|
29
|
-
projectId: string;
|
|
30
30
|
agentId: string;
|
|
31
|
-
|
|
31
|
+
projectId: string;
|
|
32
32
|
publicId: string;
|
|
33
33
|
keyHash: string;
|
|
34
34
|
keyPrefix: string;
|
|
@@ -42,10 +42,10 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
42
42
|
name: string | null;
|
|
43
43
|
createdAt: string;
|
|
44
44
|
updatedAt: string;
|
|
45
|
+
expiresAt: string | null;
|
|
45
46
|
tenantId: string;
|
|
46
|
-
projectId: string;
|
|
47
47
|
agentId: string;
|
|
48
|
-
|
|
48
|
+
projectId: string;
|
|
49
49
|
publicId: string;
|
|
50
50
|
keyHash: string;
|
|
51
51
|
keyPrefix: string;
|
|
@@ -69,10 +69,10 @@ declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInse
|
|
|
69
69
|
name: string | null;
|
|
70
70
|
createdAt: string;
|
|
71
71
|
updatedAt: string;
|
|
72
|
+
expiresAt: string | null;
|
|
72
73
|
tenantId: string;
|
|
73
|
-
projectId: string;
|
|
74
74
|
agentId: string;
|
|
75
|
-
|
|
75
|
+
projectId: string;
|
|
76
76
|
publicId: string;
|
|
77
77
|
keyHash: string;
|
|
78
78
|
keyPrefix: string;
|
|
@@ -16,21 +16,21 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
16
16
|
}>;
|
|
17
17
|
declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
|
|
18
18
|
id: string;
|
|
19
|
-
title: string | null;
|
|
20
|
-
createdAt: string;
|
|
21
|
-
updatedAt: string;
|
|
22
|
-
tenantId: string;
|
|
23
|
-
projectId: string;
|
|
24
|
-
agentId: string | null;
|
|
25
|
-
userId: string | null;
|
|
26
|
-
metadata: ConversationMetadata | null;
|
|
27
19
|
ref: {
|
|
28
20
|
type: "commit" | "tag" | "branch";
|
|
29
21
|
name: string;
|
|
30
22
|
hash: string;
|
|
31
23
|
} | null;
|
|
24
|
+
createdAt: string;
|
|
25
|
+
updatedAt: string;
|
|
26
|
+
userId: string | null;
|
|
27
|
+
metadata: ConversationMetadata | null;
|
|
28
|
+
tenantId: string;
|
|
29
|
+
agentId: string | null;
|
|
32
30
|
activeSubAgentId: string;
|
|
31
|
+
title: string | null;
|
|
33
32
|
lastContextResolution: string | null;
|
|
33
|
+
projectId: string;
|
|
34
34
|
}>;
|
|
35
35
|
declare const updateConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
36
36
|
scopes: ProjectScopeConfig;
|
|
@@ -85,21 +85,21 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
85
85
|
conversationId: string;
|
|
86
86
|
}) => Promise<{
|
|
87
87
|
id: string;
|
|
88
|
-
title: string | null;
|
|
89
|
-
createdAt: string;
|
|
90
|
-
updatedAt: string;
|
|
91
|
-
tenantId: string;
|
|
92
|
-
projectId: string;
|
|
93
|
-
agentId: string | null;
|
|
94
|
-
userId: string | null;
|
|
95
|
-
metadata: ConversationMetadata | null;
|
|
96
88
|
ref: {
|
|
97
89
|
type: "commit" | "tag" | "branch";
|
|
98
90
|
name: string;
|
|
99
91
|
hash: string;
|
|
100
92
|
} | null;
|
|
93
|
+
createdAt: string;
|
|
94
|
+
updatedAt: string;
|
|
95
|
+
userId: string | null;
|
|
96
|
+
metadata: ConversationMetadata | null;
|
|
97
|
+
tenantId: string;
|
|
98
|
+
agentId: string | null;
|
|
101
99
|
activeSubAgentId: string;
|
|
100
|
+
title: string | null;
|
|
102
101
|
lastContextResolution: string | null;
|
|
102
|
+
projectId: string;
|
|
103
103
|
} | undefined>;
|
|
104
104
|
declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input: ConversationInsert) => Promise<{
|
|
105
105
|
activeSubAgentId: string;
|
|
@@ -121,21 +121,21 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
121
121
|
contextConfigId?: string | undefined;
|
|
122
122
|
} | {
|
|
123
123
|
id: string;
|
|
124
|
-
title: string | null;
|
|
125
|
-
createdAt: string;
|
|
126
|
-
updatedAt: string;
|
|
127
|
-
tenantId: string;
|
|
128
|
-
projectId: string;
|
|
129
|
-
agentId: string | null;
|
|
130
|
-
userId: string | null;
|
|
131
|
-
metadata: ConversationMetadata | null;
|
|
132
124
|
ref: {
|
|
133
125
|
type: "commit" | "tag" | "branch";
|
|
134
126
|
name: string;
|
|
135
127
|
hash: string;
|
|
136
128
|
} | null;
|
|
129
|
+
createdAt: string;
|
|
130
|
+
updatedAt: string;
|
|
131
|
+
userId: string | null;
|
|
132
|
+
metadata: ConversationMetadata | null;
|
|
133
|
+
tenantId: string;
|
|
134
|
+
agentId: string | null;
|
|
137
135
|
activeSubAgentId: string;
|
|
136
|
+
title: string | null;
|
|
138
137
|
lastContextResolution: string | null;
|
|
138
|
+
projectId: string;
|
|
139
139
|
}>;
|
|
140
140
|
/**
|
|
141
141
|
* Get conversation history with filtering and context management
|
|
@@ -153,21 +153,21 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
|
|
|
153
153
|
conversationId: string;
|
|
154
154
|
}) => Promise<{
|
|
155
155
|
id: string;
|
|
156
|
-
title: string | null;
|
|
157
|
-
createdAt: string;
|
|
158
|
-
updatedAt: string;
|
|
159
|
-
tenantId: string;
|
|
160
|
-
projectId: string;
|
|
161
|
-
agentId: string | null;
|
|
162
|
-
userId: string | null;
|
|
163
|
-
metadata: ConversationMetadata | null;
|
|
164
156
|
ref: {
|
|
165
157
|
type: "commit" | "tag" | "branch";
|
|
166
158
|
name: string;
|
|
167
159
|
hash: string;
|
|
168
160
|
} | null;
|
|
161
|
+
createdAt: string;
|
|
162
|
+
updatedAt: string;
|
|
163
|
+
userId: string | null;
|
|
164
|
+
metadata: ConversationMetadata | null;
|
|
165
|
+
tenantId: string;
|
|
166
|
+
agentId: string | null;
|
|
169
167
|
activeSubAgentId: string;
|
|
168
|
+
title: string | null;
|
|
170
169
|
lastContextResolution: string | null;
|
|
170
|
+
projectId: string;
|
|
171
171
|
} | undefined>;
|
|
172
172
|
/**
|
|
173
173
|
* Set active agent for a conversation (upsert operation)
|
|
@@ -12,23 +12,23 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
12
12
|
id: string;
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
|
+
metadata: MessageMetadata | null;
|
|
16
|
+
role: string;
|
|
15
17
|
tenantId: string;
|
|
16
18
|
projectId: string;
|
|
17
|
-
|
|
18
|
-
content: MessageContent;
|
|
19
|
+
conversationId: string;
|
|
19
20
|
fromSubAgentId: string | null;
|
|
20
21
|
toSubAgentId: string | null;
|
|
21
22
|
fromExternalAgentId: string | null;
|
|
22
23
|
toExternalAgentId: string | null;
|
|
23
|
-
taskId: string | null;
|
|
24
|
-
a2aTaskId: string | null;
|
|
25
|
-
role: string;
|
|
26
|
-
conversationId: string;
|
|
27
24
|
fromTeamAgentId: string | null;
|
|
28
25
|
toTeamAgentId: string | null;
|
|
26
|
+
content: MessageContent;
|
|
29
27
|
visibility: string;
|
|
30
28
|
messageType: string;
|
|
29
|
+
taskId: string | null;
|
|
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: {
|
|
@@ -143,23 +143,23 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageIn
|
|
|
143
143
|
id: string;
|
|
144
144
|
createdAt: string;
|
|
145
145
|
updatedAt: string;
|
|
146
|
+
metadata: MessageMetadata | null;
|
|
147
|
+
role: string;
|
|
146
148
|
tenantId: string;
|
|
147
149
|
projectId: string;
|
|
148
|
-
|
|
149
|
-
content: MessageContent;
|
|
150
|
+
conversationId: string;
|
|
150
151
|
fromSubAgentId: string | null;
|
|
151
152
|
toSubAgentId: string | null;
|
|
152
153
|
fromExternalAgentId: string | null;
|
|
153
154
|
toExternalAgentId: string | null;
|
|
154
|
-
taskId: string | null;
|
|
155
|
-
a2aTaskId: string | null;
|
|
156
|
-
role: string;
|
|
157
|
-
conversationId: string;
|
|
158
155
|
fromTeamAgentId: string | null;
|
|
159
156
|
toTeamAgentId: string | null;
|
|
157
|
+
content: MessageContent;
|
|
160
158
|
visibility: string;
|
|
161
159
|
messageType: string;
|
|
160
|
+
taskId: string | null;
|
|
162
161
|
parentMessageId: string | null;
|
|
162
|
+
a2aTaskId: string | null;
|
|
163
163
|
a2aSessionId: string | null;
|
|
164
164
|
}>;
|
|
165
165
|
declare const updateMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -196,23 +196,23 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
196
196
|
id: string;
|
|
197
197
|
createdAt: string;
|
|
198
198
|
updatedAt: string;
|
|
199
|
+
metadata: MessageMetadata | null;
|
|
200
|
+
role: string;
|
|
199
201
|
tenantId: string;
|
|
200
202
|
projectId: string;
|
|
201
|
-
|
|
202
|
-
content: MessageContent;
|
|
203
|
+
conversationId: string;
|
|
203
204
|
fromSubAgentId: string | null;
|
|
204
205
|
toSubAgentId: string | null;
|
|
205
206
|
fromExternalAgentId: string | null;
|
|
206
207
|
toExternalAgentId: string | null;
|
|
207
|
-
taskId: string | null;
|
|
208
|
-
a2aTaskId: string | null;
|
|
209
|
-
role: string;
|
|
210
|
-
conversationId: string;
|
|
211
208
|
fromTeamAgentId: string | null;
|
|
212
209
|
toTeamAgentId: string | null;
|
|
210
|
+
content: MessageContent;
|
|
213
211
|
visibility: string;
|
|
214
212
|
messageType: string;
|
|
213
|
+
taskId: string | null;
|
|
215
214
|
parentMessageId: string | null;
|
|
215
|
+
a2aTaskId: string | null;
|
|
216
216
|
a2aSessionId: string | null;
|
|
217
217
|
}>;
|
|
218
218
|
declare const countMessagesByConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -7,20 +7,20 @@ import { TaskInsert, TaskSelect } from "../../types/entities.js";
|
|
|
7
7
|
//#region src/data-access/runtime/tasks.d.ts
|
|
8
8
|
declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert) => Promise<{
|
|
9
9
|
id: string;
|
|
10
|
-
createdAt: string;
|
|
11
|
-
updatedAt: string;
|
|
12
|
-
tenantId: string;
|
|
13
|
-
projectId: string;
|
|
14
|
-
agentId: string;
|
|
15
|
-
subAgentId: string;
|
|
16
|
-
metadata: TaskMetadataConfig | null;
|
|
17
|
-
status: string;
|
|
18
10
|
ref: {
|
|
19
11
|
type: "commit" | "tag" | "branch";
|
|
20
12
|
name: string;
|
|
21
13
|
hash: string;
|
|
22
14
|
} | null;
|
|
15
|
+
createdAt: string;
|
|
16
|
+
updatedAt: string;
|
|
17
|
+
status: string;
|
|
18
|
+
metadata: TaskMetadataConfig | null;
|
|
19
|
+
tenantId: string;
|
|
20
|
+
agentId: string;
|
|
21
|
+
projectId: string;
|
|
23
22
|
contextId: string;
|
|
23
|
+
subAgentId: string;
|
|
24
24
|
}>;
|
|
25
25
|
declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
|
|
26
26
|
id: string;
|