@inkeep/agents-core 0.0.0-dev-20260120193424 → 0.0.0-dev-20260120221941
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-validation-schemas.d.ts +17 -17
- package/dist/data-access/manage/agents.d.ts +16 -16
- package/dist/data-access/manage/artifactComponents.d.ts +6 -6
- package/dist/data-access/manage/contextConfigs.d.ts +4 -4
- package/dist/data-access/manage/dataComponents.d.ts +2 -2
- package/dist/data-access/manage/functionTools.d.ts +6 -6
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgentRelations.d.ts +14 -14
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgents.d.ts +12 -12
- package/dist/data-access/manage/tools.d.ts +21 -21
- package/dist/data-access/runtime/apiKeys.d.ts +12 -12
- package/dist/data-access/runtime/conversations.d.ts +19 -19
- package/dist/data-access/runtime/messages.d.ts +12 -12
- package/dist/data-access/runtime/tasks.d.ts +4 -4
- package/dist/db/manage/manage-schema.d.ts +299 -299
- package/dist/db/runtime/runtime-schema.d.ts +163 -163
- package/dist/validation/dolt-schemas.d.ts +1 -1
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas.d.ts +1358 -1358
- package/package.json +1 -1
|
@@ -11,11 +11,11 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
11
11
|
tenantId: string;
|
|
12
12
|
projectId: string;
|
|
13
13
|
id: string;
|
|
14
|
-
agentId: string;
|
|
15
14
|
createdAt: string;
|
|
16
15
|
updatedAt: string;
|
|
17
|
-
headers: Record<string, string> | null;
|
|
18
16
|
subAgentId: string;
|
|
17
|
+
headers: Record<string, string> | null;
|
|
18
|
+
agentId: string;
|
|
19
19
|
targetAgentId: string;
|
|
20
20
|
} | undefined>;
|
|
21
21
|
declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -46,11 +46,11 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
|
|
|
46
46
|
tenantId: string;
|
|
47
47
|
projectId: string;
|
|
48
48
|
id: string;
|
|
49
|
-
agentId: string;
|
|
50
49
|
createdAt: string;
|
|
51
50
|
updatedAt: string;
|
|
52
|
-
headers: Record<string, string> | null;
|
|
53
51
|
subAgentId: string;
|
|
52
|
+
headers: Record<string, string> | null;
|
|
53
|
+
agentId: string;
|
|
54
54
|
targetAgentId: string;
|
|
55
55
|
}[]>;
|
|
56
56
|
declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -59,11 +59,11 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
|
|
|
59
59
|
tenantId: string;
|
|
60
60
|
projectId: string;
|
|
61
61
|
id: string;
|
|
62
|
-
agentId: string;
|
|
63
62
|
createdAt: string;
|
|
64
63
|
updatedAt: string;
|
|
65
|
-
headers: Record<string, string> | null;
|
|
66
64
|
subAgentId: string;
|
|
65
|
+
headers: Record<string, string> | null;
|
|
66
|
+
agentId: string;
|
|
67
67
|
targetAgentId: string;
|
|
68
68
|
}[]>;
|
|
69
69
|
declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -212,11 +212,11 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
212
212
|
tenantId: string;
|
|
213
213
|
projectId: string;
|
|
214
214
|
id: string;
|
|
215
|
-
agentId: string;
|
|
216
215
|
createdAt: string;
|
|
217
216
|
updatedAt: string;
|
|
218
|
-
headers: Record<string, string> | null;
|
|
219
217
|
subAgentId: string;
|
|
218
|
+
headers: Record<string, string> | null;
|
|
219
|
+
agentId: string;
|
|
220
220
|
targetAgentId: string;
|
|
221
221
|
}>;
|
|
222
222
|
/**
|
|
@@ -229,11 +229,11 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
|
|
|
229
229
|
tenantId: string;
|
|
230
230
|
projectId: string;
|
|
231
231
|
id: string;
|
|
232
|
-
agentId: string;
|
|
233
232
|
createdAt: string;
|
|
234
233
|
updatedAt: string;
|
|
235
|
-
headers: Record<string, string> | null;
|
|
236
234
|
subAgentId: string;
|
|
235
|
+
headers: Record<string, string> | null;
|
|
236
|
+
agentId: string;
|
|
237
237
|
targetAgentId: string;
|
|
238
238
|
} | undefined>;
|
|
239
239
|
/**
|
|
@@ -250,11 +250,11 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
250
250
|
tenantId: string;
|
|
251
251
|
projectId: string;
|
|
252
252
|
id: string;
|
|
253
|
-
agentId: string;
|
|
254
253
|
createdAt: string;
|
|
255
254
|
updatedAt: string;
|
|
256
|
-
headers: Record<string, string> | null;
|
|
257
255
|
subAgentId: string;
|
|
256
|
+
headers: Record<string, string> | null;
|
|
257
|
+
agentId: string;
|
|
258
258
|
targetAgentId: string;
|
|
259
259
|
}>;
|
|
260
260
|
declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -11,12 +11,10 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
11
11
|
tenantId: string;
|
|
12
12
|
projectId: string;
|
|
13
13
|
id: string;
|
|
14
|
-
name: string;
|
|
15
|
-
description: string | null;
|
|
16
|
-
prompt: string | null;
|
|
17
|
-
agentId: string;
|
|
18
14
|
createdAt: string;
|
|
15
|
+
name: string;
|
|
19
16
|
updatedAt: string;
|
|
17
|
+
description: string | null;
|
|
20
18
|
models: {
|
|
21
19
|
base?: {
|
|
22
20
|
model?: string | undefined;
|
|
@@ -34,6 +32,8 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
34
32
|
stopWhen: {
|
|
35
33
|
stepCountIs?: number | undefined;
|
|
36
34
|
} | null;
|
|
35
|
+
agentId: string;
|
|
36
|
+
prompt: string | null;
|
|
37
37
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
38
38
|
} | undefined>;
|
|
39
39
|
declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -42,12 +42,10 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
42
42
|
tenantId: string;
|
|
43
43
|
projectId: string;
|
|
44
44
|
id: string;
|
|
45
|
-
name: string;
|
|
46
|
-
description: string | null;
|
|
47
|
-
prompt: string | null;
|
|
48
|
-
agentId: string;
|
|
49
45
|
createdAt: string;
|
|
46
|
+
name: string;
|
|
50
47
|
updatedAt: string;
|
|
48
|
+
description: string | null;
|
|
51
49
|
models: {
|
|
52
50
|
base?: {
|
|
53
51
|
model?: string | undefined;
|
|
@@ -65,6 +63,8 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
65
63
|
stopWhen: {
|
|
66
64
|
stepCountIs?: number | undefined;
|
|
67
65
|
} | null;
|
|
66
|
+
agentId: string;
|
|
67
|
+
prompt: string | null;
|
|
68
68
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -111,12 +111,10 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
111
111
|
tenantId: string;
|
|
112
112
|
projectId: string;
|
|
113
113
|
id: string;
|
|
114
|
-
name: string;
|
|
115
|
-
description: string | null;
|
|
116
|
-
prompt: string | null;
|
|
117
|
-
agentId: string;
|
|
118
114
|
createdAt: string;
|
|
115
|
+
name: string;
|
|
119
116
|
updatedAt: string;
|
|
117
|
+
description: string | null;
|
|
120
118
|
models: {
|
|
121
119
|
base?: {
|
|
122
120
|
model?: string | undefined;
|
|
@@ -134,6 +132,8 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
134
132
|
stopWhen: {
|
|
135
133
|
stepCountIs?: number | undefined;
|
|
136
134
|
} | null;
|
|
135
|
+
agentId: string;
|
|
136
|
+
prompt: string | null;
|
|
137
137
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
138
138
|
}>;
|
|
139
139
|
declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -15,16 +15,16 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
15
15
|
tenantId: string;
|
|
16
16
|
projectId: string;
|
|
17
17
|
id: string;
|
|
18
|
+
createdAt: string;
|
|
18
19
|
name: string;
|
|
20
|
+
updatedAt: string;
|
|
19
21
|
description: string | null;
|
|
22
|
+
headers: Record<string, string> | null;
|
|
20
23
|
config: {
|
|
21
24
|
type: "mcp";
|
|
22
25
|
mcp: ToolMcpConfig;
|
|
23
26
|
};
|
|
24
27
|
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;
|
|
@@ -64,16 +64,16 @@ declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInser
|
|
|
64
64
|
tenantId: string;
|
|
65
65
|
projectId: string;
|
|
66
66
|
id: string;
|
|
67
|
+
createdAt: string;
|
|
67
68
|
name: string;
|
|
69
|
+
updatedAt: string;
|
|
68
70
|
description: string | null;
|
|
71
|
+
headers: Record<string, string> | null;
|
|
69
72
|
config: {
|
|
70
73
|
type: "mcp";
|
|
71
74
|
mcp: ToolMcpConfig;
|
|
72
75
|
};
|
|
73
76
|
credentialReferenceId: string | null;
|
|
74
|
-
createdAt: string;
|
|
75
|
-
updatedAt: string;
|
|
76
|
-
headers: Record<string, string> | null;
|
|
77
77
|
credentialScope: string;
|
|
78
78
|
imageUrl: string | null;
|
|
79
79
|
capabilities: ToolServerCapabilities | null;
|
|
@@ -119,16 +119,16 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
119
119
|
tenantId: string;
|
|
120
120
|
projectId: string;
|
|
121
121
|
id: string;
|
|
122
|
-
agentId: string;
|
|
123
122
|
createdAt: string;
|
|
124
123
|
updatedAt: string;
|
|
125
|
-
|
|
124
|
+
subAgentId: string;
|
|
126
125
|
headers: Record<string, string> | null;
|
|
126
|
+
agentId: string;
|
|
127
|
+
toolId: string;
|
|
128
|
+
selectedTools: string[] | null;
|
|
127
129
|
toolPolicies: Record<string, {
|
|
128
130
|
needsApproval?: boolean;
|
|
129
131
|
}> | null;
|
|
130
|
-
subAgentId: string;
|
|
131
|
-
selectedTools: string[] | null;
|
|
132
132
|
}>;
|
|
133
133
|
declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
134
134
|
scopes: AgentScopeConfig;
|
|
@@ -138,16 +138,16 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
|
|
|
138
138
|
tenantId: string;
|
|
139
139
|
projectId: string;
|
|
140
140
|
id: string;
|
|
141
|
-
agentId: string;
|
|
142
141
|
createdAt: string;
|
|
143
142
|
updatedAt: string;
|
|
144
|
-
|
|
143
|
+
subAgentId: string;
|
|
145
144
|
headers: Record<string, string> | null;
|
|
145
|
+
agentId: string;
|
|
146
|
+
toolId: string;
|
|
147
|
+
selectedTools: string[] | null;
|
|
146
148
|
toolPolicies: Record<string, {
|
|
147
149
|
needsApproval?: boolean;
|
|
148
150
|
}> | null;
|
|
149
|
-
subAgentId: string;
|
|
150
|
-
selectedTools: string[] | null;
|
|
151
151
|
}>;
|
|
152
152
|
/**
|
|
153
153
|
* Upsert agent-tool relation (create if it doesn't exist, update if it does)
|
|
@@ -166,16 +166,16 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
166
166
|
tenantId: string;
|
|
167
167
|
projectId: string;
|
|
168
168
|
id: string;
|
|
169
|
-
agentId: string;
|
|
170
169
|
createdAt: string;
|
|
171
170
|
updatedAt: string;
|
|
172
|
-
|
|
171
|
+
subAgentId: string;
|
|
173
172
|
headers: Record<string, string> | null;
|
|
173
|
+
agentId: string;
|
|
174
|
+
toolId: string;
|
|
175
|
+
selectedTools: string[] | null;
|
|
174
176
|
toolPolicies: Record<string, {
|
|
175
177
|
needsApproval?: boolean;
|
|
176
178
|
}> | null;
|
|
177
|
-
subAgentId: string;
|
|
178
|
-
selectedTools: string[] | null;
|
|
179
179
|
}>;
|
|
180
180
|
/**
|
|
181
181
|
* Upsert a tool (create if it doesn't exist, update if it does)
|
|
@@ -186,16 +186,16 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
186
186
|
tenantId: string;
|
|
187
187
|
projectId: string;
|
|
188
188
|
id: string;
|
|
189
|
+
createdAt: string;
|
|
189
190
|
name: string;
|
|
191
|
+
updatedAt: string;
|
|
190
192
|
description: string | null;
|
|
193
|
+
headers: Record<string, string> | null;
|
|
191
194
|
config: {
|
|
192
195
|
type: "mcp";
|
|
193
196
|
mcp: ToolMcpConfig;
|
|
194
197
|
};
|
|
195
198
|
credentialReferenceId: string | null;
|
|
196
|
-
createdAt: string;
|
|
197
|
-
updatedAt: string;
|
|
198
|
-
headers: Record<string, string> | null;
|
|
199
199
|
credentialScope: string;
|
|
200
200
|
imageUrl: string | null;
|
|
201
201
|
capabilities: ToolServerCapabilities | null;
|
|
@@ -10,29 +10,29 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
10
10
|
tenantId: string;
|
|
11
11
|
projectId: string;
|
|
12
12
|
id: string;
|
|
13
|
+
createdAt: string;
|
|
13
14
|
name: string | null;
|
|
15
|
+
updatedAt: string;
|
|
16
|
+
expiresAt: string | null;
|
|
14
17
|
agentId: string;
|
|
15
18
|
publicId: string;
|
|
16
19
|
keyHash: string;
|
|
17
20
|
keyPrefix: string;
|
|
18
21
|
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
24
|
tenantId: string;
|
|
25
25
|
projectId: string;
|
|
26
26
|
id: string;
|
|
27
|
+
createdAt: string;
|
|
27
28
|
name: string | null;
|
|
29
|
+
updatedAt: string;
|
|
30
|
+
expiresAt: string | null;
|
|
28
31
|
agentId: string;
|
|
29
32
|
publicId: string;
|
|
30
33
|
keyHash: string;
|
|
31
34
|
keyPrefix: string;
|
|
32
35
|
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;
|
|
@@ -41,15 +41,15 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
41
41
|
tenantId: string;
|
|
42
42
|
projectId: string;
|
|
43
43
|
id: string;
|
|
44
|
+
createdAt: string;
|
|
44
45
|
name: string | null;
|
|
46
|
+
updatedAt: string;
|
|
47
|
+
expiresAt: string | null;
|
|
45
48
|
agentId: string;
|
|
46
49
|
publicId: string;
|
|
47
50
|
keyHash: string;
|
|
48
51
|
keyPrefix: string;
|
|
49
52
|
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;
|
|
@@ -68,15 +68,15 @@ declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInse
|
|
|
68
68
|
tenantId: string;
|
|
69
69
|
projectId: string;
|
|
70
70
|
id: string;
|
|
71
|
+
createdAt: string;
|
|
71
72
|
name: string | null;
|
|
73
|
+
updatedAt: string;
|
|
74
|
+
expiresAt: string | null;
|
|
72
75
|
agentId: string;
|
|
73
76
|
publicId: string;
|
|
74
77
|
keyHash: string;
|
|
75
78
|
keyPrefix: string;
|
|
76
79
|
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;
|
|
@@ -18,17 +18,17 @@ declare const createConversation: (db: AgentsRunDatabaseClient) => (params: Conv
|
|
|
18
18
|
tenantId: string;
|
|
19
19
|
projectId: string;
|
|
20
20
|
id: string;
|
|
21
|
-
title: string | null;
|
|
22
|
-
agentId: string | null;
|
|
23
21
|
createdAt: string;
|
|
24
22
|
updatedAt: string;
|
|
25
|
-
|
|
23
|
+
title: string | null;
|
|
26
24
|
metadata: ConversationMetadata | null;
|
|
27
25
|
ref: {
|
|
28
|
-
type: "
|
|
26
|
+
type: "commit" | "tag" | "branch";
|
|
29
27
|
name: string;
|
|
30
28
|
hash: string;
|
|
31
29
|
} | null;
|
|
30
|
+
userId: string | null;
|
|
31
|
+
agentId: string | null;
|
|
32
32
|
activeSubAgentId: string;
|
|
33
33
|
lastContextResolution: string | null;
|
|
34
34
|
}>;
|
|
@@ -43,7 +43,7 @@ declare const updateConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
43
43
|
agentId: string | null;
|
|
44
44
|
activeSubAgentId: string;
|
|
45
45
|
ref: {
|
|
46
|
-
type: "
|
|
46
|
+
type: "commit" | "tag" | "branch";
|
|
47
47
|
name: string;
|
|
48
48
|
hash: string;
|
|
49
49
|
} | null;
|
|
@@ -69,7 +69,7 @@ declare const updateConversationActiveSubAgent: (db: AgentsRunDatabaseClient) =>
|
|
|
69
69
|
agentId: string | null;
|
|
70
70
|
activeSubAgentId: string;
|
|
71
71
|
ref: {
|
|
72
|
-
type: "
|
|
72
|
+
type: "commit" | "tag" | "branch";
|
|
73
73
|
name: string;
|
|
74
74
|
hash: string;
|
|
75
75
|
} | null;
|
|
@@ -87,17 +87,17 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
87
87
|
tenantId: string;
|
|
88
88
|
projectId: string;
|
|
89
89
|
id: string;
|
|
90
|
-
title: string | null;
|
|
91
|
-
agentId: string | null;
|
|
92
90
|
createdAt: string;
|
|
93
91
|
updatedAt: string;
|
|
94
|
-
|
|
92
|
+
title: string | null;
|
|
95
93
|
metadata: ConversationMetadata | null;
|
|
96
94
|
ref: {
|
|
97
|
-
type: "
|
|
95
|
+
type: "commit" | "tag" | "branch";
|
|
98
96
|
name: string;
|
|
99
97
|
hash: string;
|
|
100
98
|
} | null;
|
|
99
|
+
userId: string | null;
|
|
100
|
+
agentId: string | null;
|
|
101
101
|
activeSubAgentId: string;
|
|
102
102
|
lastContextResolution: string | null;
|
|
103
103
|
} | undefined>;
|
|
@@ -107,7 +107,7 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
107
107
|
tenantId: string;
|
|
108
108
|
id: string;
|
|
109
109
|
ref: {
|
|
110
|
-
type: "
|
|
110
|
+
type: "commit" | "tag" | "branch";
|
|
111
111
|
name: string;
|
|
112
112
|
hash: string;
|
|
113
113
|
};
|
|
@@ -123,17 +123,17 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
123
123
|
tenantId: string;
|
|
124
124
|
projectId: string;
|
|
125
125
|
id: string;
|
|
126
|
-
title: string | null;
|
|
127
|
-
agentId: string | null;
|
|
128
126
|
createdAt: string;
|
|
129
127
|
updatedAt: string;
|
|
130
|
-
|
|
128
|
+
title: string | null;
|
|
131
129
|
metadata: ConversationMetadata | null;
|
|
132
130
|
ref: {
|
|
133
|
-
type: "
|
|
131
|
+
type: "commit" | "tag" | "branch";
|
|
134
132
|
name: string;
|
|
135
133
|
hash: string;
|
|
136
134
|
} | null;
|
|
135
|
+
userId: string | null;
|
|
136
|
+
agentId: string | null;
|
|
137
137
|
activeSubAgentId: string;
|
|
138
138
|
lastContextResolution: string | null;
|
|
139
139
|
}>;
|
|
@@ -155,17 +155,17 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
|
|
|
155
155
|
tenantId: string;
|
|
156
156
|
projectId: string;
|
|
157
157
|
id: string;
|
|
158
|
-
title: string | null;
|
|
159
|
-
agentId: string | null;
|
|
160
158
|
createdAt: string;
|
|
161
159
|
updatedAt: string;
|
|
162
|
-
|
|
160
|
+
title: string | null;
|
|
163
161
|
metadata: ConversationMetadata | null;
|
|
164
162
|
ref: {
|
|
165
|
-
type: "
|
|
163
|
+
type: "commit" | "tag" | "branch";
|
|
166
164
|
name: string;
|
|
167
165
|
hash: string;
|
|
168
166
|
} | null;
|
|
167
|
+
userId: string | null;
|
|
168
|
+
agentId: string | null;
|
|
169
169
|
activeSubAgentId: string;
|
|
170
170
|
lastContextResolution: string | null;
|
|
171
171
|
} | undefined>;
|
|
@@ -16,19 +16,19 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
16
16
|
updatedAt: string;
|
|
17
17
|
metadata: MessageMetadata | null;
|
|
18
18
|
content: MessageContent;
|
|
19
|
-
role: string;
|
|
20
|
-
conversationId: string;
|
|
21
19
|
fromSubAgentId: string | null;
|
|
22
20
|
toSubAgentId: string | null;
|
|
23
21
|
fromExternalAgentId: string | null;
|
|
24
22
|
toExternalAgentId: string | null;
|
|
23
|
+
taskId: string | null;
|
|
24
|
+
a2aTaskId: string | null;
|
|
25
|
+
role: string;
|
|
26
|
+
conversationId: string;
|
|
25
27
|
fromTeamAgentId: string | null;
|
|
26
28
|
toTeamAgentId: string | null;
|
|
27
29
|
visibility: string;
|
|
28
30
|
messageType: string;
|
|
29
|
-
taskId: string | null;
|
|
30
31
|
parentMessageId: string | null;
|
|
31
|
-
a2aTaskId: string | null;
|
|
32
32
|
a2aSessionId: string | null;
|
|
33
33
|
} | undefined>;
|
|
34
34
|
declare const listMessages: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -147,19 +147,19 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageIn
|
|
|
147
147
|
updatedAt: string;
|
|
148
148
|
metadata: MessageMetadata | null;
|
|
149
149
|
content: MessageContent;
|
|
150
|
-
role: string;
|
|
151
|
-
conversationId: string;
|
|
152
150
|
fromSubAgentId: string | null;
|
|
153
151
|
toSubAgentId: string | null;
|
|
154
152
|
fromExternalAgentId: string | null;
|
|
155
153
|
toExternalAgentId: string | null;
|
|
154
|
+
taskId: string | null;
|
|
155
|
+
a2aTaskId: string | null;
|
|
156
|
+
role: string;
|
|
157
|
+
conversationId: string;
|
|
156
158
|
fromTeamAgentId: string | null;
|
|
157
159
|
toTeamAgentId: string | null;
|
|
158
160
|
visibility: string;
|
|
159
161
|
messageType: string;
|
|
160
|
-
taskId: string | null;
|
|
161
162
|
parentMessageId: string | null;
|
|
162
|
-
a2aTaskId: string | null;
|
|
163
163
|
a2aSessionId: string | null;
|
|
164
164
|
}>;
|
|
165
165
|
declare const updateMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -200,19 +200,19 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
200
200
|
updatedAt: string;
|
|
201
201
|
metadata: MessageMetadata | null;
|
|
202
202
|
content: MessageContent;
|
|
203
|
-
role: string;
|
|
204
|
-
conversationId: string;
|
|
205
203
|
fromSubAgentId: string | null;
|
|
206
204
|
toSubAgentId: string | null;
|
|
207
205
|
fromExternalAgentId: string | null;
|
|
208
206
|
toExternalAgentId: string | null;
|
|
207
|
+
taskId: string | null;
|
|
208
|
+
a2aTaskId: string | null;
|
|
209
|
+
role: string;
|
|
210
|
+
conversationId: string;
|
|
209
211
|
fromTeamAgentId: string | null;
|
|
210
212
|
toTeamAgentId: string | null;
|
|
211
213
|
visibility: string;
|
|
212
214
|
messageType: string;
|
|
213
|
-
taskId: string | null;
|
|
214
215
|
parentMessageId: string | null;
|
|
215
|
-
a2aTaskId: string | null;
|
|
216
216
|
a2aSessionId: string | null;
|
|
217
217
|
}>;
|
|
218
218
|
declare const countMessagesByConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -9,17 +9,17 @@ declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert)
|
|
|
9
9
|
tenantId: string;
|
|
10
10
|
projectId: string;
|
|
11
11
|
id: string;
|
|
12
|
-
agentId: string;
|
|
13
12
|
createdAt: string;
|
|
14
13
|
updatedAt: string;
|
|
15
14
|
metadata: TaskMetadataConfig | null;
|
|
15
|
+
subAgentId: string;
|
|
16
16
|
ref: {
|
|
17
|
-
type: "
|
|
17
|
+
type: "commit" | "tag" | "branch";
|
|
18
18
|
name: string;
|
|
19
19
|
hash: string;
|
|
20
20
|
} | null;
|
|
21
21
|
status: string;
|
|
22
|
-
|
|
22
|
+
agentId: string;
|
|
23
23
|
contextId: string;
|
|
24
24
|
}>;
|
|
25
25
|
declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -36,7 +36,7 @@ declare const updateTask: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
36
36
|
updatedAt: string;
|
|
37
37
|
contextId: string;
|
|
38
38
|
ref: {
|
|
39
|
-
type: "
|
|
39
|
+
type: "commit" | "tag" | "branch";
|
|
40
40
|
name: string;
|
|
41
41
|
hash: string;
|
|
42
42
|
} | null;
|