@inkeep/agents-core 0.74.0 → 0.74.2
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 +227 -227
- package/dist/auth/auth-validation-schemas.d.ts +154 -154
- package/dist/data-access/manage/agents.d.ts +5 -5
- package/dist/data-access/manage/agents.js +12 -10
- package/dist/data-access/manage/functionTools.d.ts +2 -2
- package/dist/data-access/manage/skills.d.ts +2 -2
- package/dist/data-access/manage/subAgents.d.ts +3 -3
- package/dist/data-access/manage/triggers.d.ts +4 -4
- package/dist/data-access/runtime/apiKeys.d.ts +4 -4
- package/dist/data-access/runtime/apps.d.ts +3 -3
- package/dist/data-access/runtime/conversations.d.ts +8 -8
- package/dist/data-access/runtime/events.d.ts +1 -1
- package/dist/data-access/runtime/messages.d.ts +6 -6
- package/dist/data-access/runtime/tasks.d.ts +2 -2
- package/dist/db/manage/manage-schema.d.ts +488 -488
- package/dist/db/runtime/runtime-schema.d.ts +449 -449
- package/dist/utils/error.d.ts +51 -51
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas/skills.d.ts +34 -34
- package/dist/validation/schemas.d.ts +1908 -1888
- package/dist/validation/schemas.js +5 -1
- package/package.json +1 -1
|
@@ -17,7 +17,6 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
17
17
|
id: string;
|
|
18
18
|
createdAt: string;
|
|
19
19
|
updatedAt: string;
|
|
20
|
-
prompt: string | null;
|
|
21
20
|
models: {
|
|
22
21
|
base?: {
|
|
23
22
|
model?: string | undefined;
|
|
@@ -43,6 +42,7 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
43
42
|
} | null;
|
|
44
43
|
defaultSubAgentId: string | null;
|
|
45
44
|
contextConfigId: string | null;
|
|
45
|
+
prompt: string | null;
|
|
46
46
|
statusUpdates: {
|
|
47
47
|
enabled?: boolean | undefined;
|
|
48
48
|
numEvents?: number | undefined;
|
|
@@ -70,7 +70,6 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
70
70
|
id: string;
|
|
71
71
|
createdAt: string;
|
|
72
72
|
updatedAt: string;
|
|
73
|
-
prompt: string | null;
|
|
74
73
|
models: {
|
|
75
74
|
base?: {
|
|
76
75
|
model?: string | undefined;
|
|
@@ -96,6 +95,7 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
96
95
|
} | null;
|
|
97
96
|
defaultSubAgentId: string | null;
|
|
98
97
|
contextConfigId: string | null;
|
|
98
|
+
prompt: string | null;
|
|
99
99
|
statusUpdates: {
|
|
100
100
|
enabled?: boolean | undefined;
|
|
101
101
|
numEvents?: number | undefined;
|
|
@@ -121,7 +121,6 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
121
121
|
id: string;
|
|
122
122
|
createdAt: string;
|
|
123
123
|
updatedAt: string;
|
|
124
|
-
prompt: string | null;
|
|
125
124
|
models: {
|
|
126
125
|
base?: {
|
|
127
126
|
model?: string | undefined;
|
|
@@ -145,6 +144,7 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
145
144
|
stopWhen: {
|
|
146
145
|
stepCountIs?: number | undefined;
|
|
147
146
|
} | null;
|
|
147
|
+
prompt: string | null;
|
|
148
148
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
149
149
|
outputContract: {
|
|
150
150
|
[x: string]: unknown;
|
|
@@ -167,7 +167,6 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
167
167
|
id: string;
|
|
168
168
|
createdAt: string;
|
|
169
169
|
updatedAt: string;
|
|
170
|
-
prompt: string | null;
|
|
171
170
|
models: {
|
|
172
171
|
base?: {
|
|
173
172
|
model?: string | undefined;
|
|
@@ -193,6 +192,7 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
193
192
|
} | null;
|
|
194
193
|
defaultSubAgentId: string | null;
|
|
195
194
|
contextConfigId: string | null;
|
|
195
|
+
prompt: string | null;
|
|
196
196
|
statusUpdates: {
|
|
197
197
|
enabled?: boolean | undefined;
|
|
198
198
|
numEvents?: number | undefined;
|
|
@@ -297,7 +297,6 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
297
297
|
id: string;
|
|
298
298
|
createdAt: string;
|
|
299
299
|
updatedAt: string;
|
|
300
|
-
prompt: string | null;
|
|
301
300
|
models: {
|
|
302
301
|
base?: {
|
|
303
302
|
model?: string | undefined;
|
|
@@ -323,6 +322,7 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
323
322
|
} | null;
|
|
324
323
|
defaultSubAgentId: string | null;
|
|
325
324
|
contextConfigId: string | null;
|
|
325
|
+
prompt: string | null;
|
|
326
326
|
statusUpdates: {
|
|
327
327
|
enabled?: boolean | undefined;
|
|
328
328
|
numEvents?: number | undefined;
|
|
@@ -61,20 +61,22 @@ const agentsLogger = getLogger("agents-data-access");
|
|
|
61
61
|
*/
|
|
62
62
|
async function listAgentsAcrossProjectMainBranches(db, params) {
|
|
63
63
|
const { tenantId, projectIds } = params;
|
|
64
|
-
const
|
|
65
|
-
for (const projectId of projectIds) try {
|
|
64
|
+
const results = await Promise.allSettled(projectIds.map(async (projectId) => {
|
|
66
65
|
const branchName = getProjectMainBranchName(tenantId, projectId);
|
|
67
|
-
|
|
66
|
+
return (await db.execute(sql`
|
|
68
67
|
SELECT id as "agentId", name as "agentName", project_id as "projectId"
|
|
69
|
-
FROM agent AS OF ${branchName}
|
|
68
|
+
FROM ${sql.raw(`agent AS OF '${branchName}'`)}
|
|
70
69
|
WHERE tenant_id = ${tenantId} AND project_id = ${projectId}
|
|
71
70
|
ORDER BY name
|
|
72
|
-
`);
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
71
|
+
`)).rows;
|
|
72
|
+
}));
|
|
73
|
+
const allAgents = [];
|
|
74
|
+
for (let i = 0; i < results.length; i++) {
|
|
75
|
+
const result = results[i];
|
|
76
|
+
if (result.status === "fulfilled") allAgents.push(...result.value);
|
|
77
|
+
else agentsLogger.warn({
|
|
78
|
+
error: result.reason,
|
|
79
|
+
projectId: projectIds[i]
|
|
78
80
|
}, "Failed to fetch agents for project, skipping");
|
|
79
81
|
}
|
|
80
82
|
return allAgents;
|
|
@@ -164,10 +164,10 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
|
|
|
164
164
|
id: string;
|
|
165
165
|
createdAt: string;
|
|
166
166
|
updatedAt: string;
|
|
167
|
-
functionToolId: string;
|
|
168
167
|
toolPolicies: Record<string, {
|
|
169
168
|
needsApproval?: boolean;
|
|
170
169
|
}> | null;
|
|
170
|
+
functionToolId: string;
|
|
171
171
|
}>;
|
|
172
172
|
/**
|
|
173
173
|
* Update an agent-function tool relation
|
|
@@ -229,10 +229,10 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
|
|
|
229
229
|
id: string;
|
|
230
230
|
createdAt: string;
|
|
231
231
|
updatedAt: string;
|
|
232
|
-
functionToolId: string;
|
|
233
232
|
toolPolicies: Record<string, {
|
|
234
233
|
needsApproval?: boolean;
|
|
235
234
|
}> | null;
|
|
235
|
+
functionToolId: string;
|
|
236
236
|
}>;
|
|
237
237
|
//#endregion
|
|
238
238
|
export { addFunctionToolToSubAgent, associateFunctionToolWithSubAgent, createFunctionTool, deleteFunctionTool, getFunctionToolById, getFunctionToolsForSubAgent, getSubAgentsUsingFunctionTool, isFunctionToolAssociatedWithSubAgent, listFunctionTools, removeFunctionToolFromSubAgent, updateFunctionTool, updateSubAgentFunctionToolRelation, upsertFunctionTool, upsertSubAgentFunctionToolRelation };
|
|
@@ -21,9 +21,9 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
21
21
|
name: string;
|
|
22
22
|
id: string;
|
|
23
23
|
createdAt: string;
|
|
24
|
-
updatedAt: string;
|
|
25
24
|
metadata: Record<string, string> | null;
|
|
26
25
|
content: string;
|
|
26
|
+
updatedAt: string;
|
|
27
27
|
} | null>;
|
|
28
28
|
declare const getSkillByIdWithFiles: (db: AgentsManageDatabaseClient) => (params: {
|
|
29
29
|
scopes: ProjectScopeConfig;
|
|
@@ -116,9 +116,9 @@ declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillApiIn
|
|
|
116
116
|
name: string;
|
|
117
117
|
id: string;
|
|
118
118
|
createdAt: string;
|
|
119
|
-
updatedAt: string;
|
|
120
119
|
metadata: Record<string, string> | null;
|
|
121
120
|
content: string;
|
|
121
|
+
updatedAt: string;
|
|
122
122
|
}>;
|
|
123
123
|
declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
|
|
124
124
|
scopes: ProjectScopeConfig;
|
|
@@ -17,7 +17,6 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
17
17
|
id: string;
|
|
18
18
|
createdAt: string;
|
|
19
19
|
updatedAt: string;
|
|
20
|
-
prompt: string | null;
|
|
21
20
|
models: {
|
|
22
21
|
base?: {
|
|
23
22
|
model?: string | undefined;
|
|
@@ -41,6 +40,7 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
41
40
|
stopWhen: {
|
|
42
41
|
stepCountIs?: number | undefined;
|
|
43
42
|
} | null;
|
|
43
|
+
prompt: string | null;
|
|
44
44
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
45
45
|
outputContract: {
|
|
46
46
|
[x: string]: unknown;
|
|
@@ -63,7 +63,6 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
63
63
|
id: string;
|
|
64
64
|
createdAt: string;
|
|
65
65
|
updatedAt: string;
|
|
66
|
-
prompt: string | null;
|
|
67
66
|
models: {
|
|
68
67
|
base?: {
|
|
69
68
|
model?: string | undefined;
|
|
@@ -87,6 +86,7 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
87
86
|
stopWhen: {
|
|
88
87
|
stepCountIs?: number | undefined;
|
|
89
88
|
} | null;
|
|
89
|
+
prompt: string | null;
|
|
90
90
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
91
91
|
outputContract: {
|
|
92
92
|
[x: string]: unknown;
|
|
@@ -162,7 +162,6 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
162
162
|
id: string;
|
|
163
163
|
createdAt: string;
|
|
164
164
|
updatedAt: string;
|
|
165
|
-
prompt: string | null;
|
|
166
165
|
models: {
|
|
167
166
|
base?: {
|
|
168
167
|
model?: string | undefined;
|
|
@@ -186,6 +185,7 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
186
185
|
stopWhen: {
|
|
187
186
|
stepCountIs?: number | undefined;
|
|
188
187
|
} | null;
|
|
188
|
+
prompt: string | null;
|
|
189
189
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
190
190
|
outputContract: {
|
|
191
191
|
[x: string]: unknown;
|
|
@@ -37,16 +37,16 @@ declare const listTriggersPaginated: (db: AgentsManageDatabaseClient) => (params
|
|
|
37
37
|
authentication: unknown;
|
|
38
38
|
signingSecretCredentialReferenceId: string | null;
|
|
39
39
|
signatureVerification: {
|
|
40
|
-
algorithm: "
|
|
41
|
-
encoding: "
|
|
40
|
+
algorithm: "sha256" | "sha512" | "sha384" | "sha1" | "md5";
|
|
41
|
+
encoding: "hex" | "base64";
|
|
42
42
|
signature: {
|
|
43
|
-
source: "query" | "
|
|
43
|
+
source: "query" | "header" | "body";
|
|
44
44
|
key: string;
|
|
45
45
|
prefix?: string | undefined;
|
|
46
46
|
regex?: string | undefined;
|
|
47
47
|
};
|
|
48
48
|
signedComponents: {
|
|
49
|
-
source: "literal" | "
|
|
49
|
+
source: "literal" | "header" | "body";
|
|
50
50
|
required: boolean;
|
|
51
51
|
key?: string | undefined;
|
|
52
52
|
value?: string | undefined;
|
|
@@ -15,11 +15,11 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
15
15
|
id: string;
|
|
16
16
|
createdAt: string;
|
|
17
17
|
updatedAt: string;
|
|
18
|
-
expiresAt: string | null;
|
|
19
18
|
publicId: string;
|
|
20
19
|
keyHash: string;
|
|
21
20
|
keyPrefix: string;
|
|
22
21
|
lastUsedAt: string | null;
|
|
22
|
+
expiresAt: string | null;
|
|
23
23
|
} | undefined>;
|
|
24
24
|
declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
|
|
25
25
|
tenantId: string;
|
|
@@ -29,11 +29,11 @@ declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: s
|
|
|
29
29
|
id: string;
|
|
30
30
|
createdAt: string;
|
|
31
31
|
updatedAt: string;
|
|
32
|
-
expiresAt: string | null;
|
|
33
32
|
publicId: string;
|
|
34
33
|
keyHash: string;
|
|
35
34
|
keyPrefix: string;
|
|
36
35
|
lastUsedAt: string | null;
|
|
36
|
+
expiresAt: string | null;
|
|
37
37
|
} | undefined>;
|
|
38
38
|
declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
39
39
|
scopes: ProjectScopeConfig;
|
|
@@ -46,11 +46,11 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
46
46
|
id: string;
|
|
47
47
|
createdAt: string;
|
|
48
48
|
updatedAt: string;
|
|
49
|
-
expiresAt: string | null;
|
|
50
49
|
publicId: string;
|
|
51
50
|
keyHash: string;
|
|
52
51
|
keyPrefix: string;
|
|
53
52
|
lastUsedAt: string | null;
|
|
53
|
+
expiresAt: string | null;
|
|
54
54
|
}[]>;
|
|
55
55
|
declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
56
56
|
scopes: ProjectScopeConfig;
|
|
@@ -73,11 +73,11 @@ declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInse
|
|
|
73
73
|
id: string;
|
|
74
74
|
createdAt: string;
|
|
75
75
|
updatedAt: string;
|
|
76
|
-
expiresAt: string | null;
|
|
77
76
|
publicId: string;
|
|
78
77
|
keyHash: string;
|
|
79
78
|
keyPrefix: string;
|
|
80
79
|
lastUsedAt: string | null;
|
|
80
|
+
expiresAt: string | null;
|
|
81
81
|
}>;
|
|
82
82
|
declare const updateApiKey: (db: AgentsRunDatabaseClient) => (params: {
|
|
83
83
|
scopes: ProjectScopeConfig;
|
|
@@ -22,7 +22,7 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
|
|
|
22
22
|
publicKeys: {
|
|
23
23
|
kid: string;
|
|
24
24
|
publicKey: string;
|
|
25
|
-
algorithm: "
|
|
25
|
+
algorithm: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "EdDSA";
|
|
26
26
|
addedAt: string;
|
|
27
27
|
}[];
|
|
28
28
|
allowAnonymous: boolean;
|
|
@@ -91,7 +91,7 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
|
|
|
91
91
|
publicKeys: {
|
|
92
92
|
kid: string;
|
|
93
93
|
publicKey: string;
|
|
94
|
-
algorithm: "
|
|
94
|
+
algorithm: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "EdDSA";
|
|
95
95
|
addedAt: string;
|
|
96
96
|
}[];
|
|
97
97
|
allowAnonymous: boolean;
|
|
@@ -174,7 +174,7 @@ declare const updateApp: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
174
174
|
publicKeys: {
|
|
175
175
|
kid: string;
|
|
176
176
|
publicKey: string;
|
|
177
|
-
algorithm: "
|
|
177
|
+
algorithm: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "EdDSA";
|
|
178
178
|
addedAt: string;
|
|
179
179
|
}[];
|
|
180
180
|
allowAnonymous: boolean;
|
|
@@ -22,14 +22,14 @@ declare const createConversation: (db: AgentsRunDatabaseClient) => (params: Conv
|
|
|
22
22
|
agentId: string | null;
|
|
23
23
|
id: string;
|
|
24
24
|
createdAt: string;
|
|
25
|
+
metadata: ConversationMetadata | null;
|
|
25
26
|
updatedAt: string;
|
|
27
|
+
userId: string | null;
|
|
26
28
|
ref: {
|
|
27
29
|
type: "commit" | "tag" | "branch";
|
|
28
30
|
name: string;
|
|
29
31
|
hash: string;
|
|
30
32
|
} | null;
|
|
31
|
-
userId: string | null;
|
|
32
|
-
metadata: ConversationMetadata | null;
|
|
33
33
|
userProperties: Record<string, unknown> | null;
|
|
34
34
|
activeSubAgentId: string;
|
|
35
35
|
lastContextResolution: string | null;
|
|
@@ -97,14 +97,14 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
97
97
|
agentId: string | null;
|
|
98
98
|
id: string;
|
|
99
99
|
createdAt: string;
|
|
100
|
+
metadata: ConversationMetadata | null;
|
|
100
101
|
updatedAt: string;
|
|
102
|
+
userId: string | null;
|
|
101
103
|
ref: {
|
|
102
104
|
type: "commit" | "tag" | "branch";
|
|
103
105
|
name: string;
|
|
104
106
|
hash: string;
|
|
105
107
|
} | null;
|
|
106
|
-
userId: string | null;
|
|
107
|
-
metadata: ConversationMetadata | null;
|
|
108
108
|
userProperties: Record<string, unknown> | null;
|
|
109
109
|
activeSubAgentId: string;
|
|
110
110
|
lastContextResolution: string | null;
|
|
@@ -137,14 +137,14 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
137
137
|
agentId: string | null;
|
|
138
138
|
id: string;
|
|
139
139
|
createdAt: string;
|
|
140
|
+
metadata: ConversationMetadata | null;
|
|
140
141
|
updatedAt: string;
|
|
142
|
+
userId: string | null;
|
|
141
143
|
ref: {
|
|
142
144
|
type: "commit" | "tag" | "branch";
|
|
143
145
|
name: string;
|
|
144
146
|
hash: string;
|
|
145
147
|
} | null;
|
|
146
|
-
userId: string | null;
|
|
147
|
-
metadata: ConversationMetadata | null;
|
|
148
148
|
userProperties: Record<string, unknown> | null;
|
|
149
149
|
activeSubAgentId: string;
|
|
150
150
|
lastContextResolution: string | null;
|
|
@@ -171,14 +171,14 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
|
|
|
171
171
|
agentId: string | null;
|
|
172
172
|
id: string;
|
|
173
173
|
createdAt: string;
|
|
174
|
+
metadata: ConversationMetadata | null;
|
|
174
175
|
updatedAt: string;
|
|
176
|
+
userId: string | null;
|
|
175
177
|
ref: {
|
|
176
178
|
type: "commit" | "tag" | "branch";
|
|
177
179
|
name: string;
|
|
178
180
|
hash: string;
|
|
179
181
|
} | null;
|
|
180
|
-
userId: string | null;
|
|
181
|
-
metadata: ConversationMetadata | null;
|
|
182
182
|
userProperties: Record<string, unknown> | null;
|
|
183
183
|
activeSubAgentId: string;
|
|
184
184
|
lastContextResolution: string | null;
|
|
@@ -14,8 +14,8 @@ declare const createEvent: (db: AgentsRunDatabaseClient) => (params: EventInsert
|
|
|
14
14
|
agentId: string | null;
|
|
15
15
|
id: string;
|
|
16
16
|
createdAt: string;
|
|
17
|
-
updatedAt: string;
|
|
18
17
|
metadata: Record<string, unknown> | null;
|
|
18
|
+
updatedAt: string;
|
|
19
19
|
conversationId: string | null;
|
|
20
20
|
userProperties: Record<string, unknown> | null;
|
|
21
21
|
messageId: string | null;
|
|
@@ -15,10 +15,9 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
15
15
|
projectId: string;
|
|
16
16
|
id: string;
|
|
17
17
|
createdAt: string;
|
|
18
|
-
updatedAt: string;
|
|
19
18
|
metadata: MessageMetadata | null;
|
|
20
|
-
role: string;
|
|
21
19
|
content: MessageContent;
|
|
20
|
+
updatedAt: string;
|
|
22
21
|
fromSubAgentId: string | null;
|
|
23
22
|
toSubAgentId: string | null;
|
|
24
23
|
fromExternalAgentId: string | null;
|
|
@@ -26,6 +25,7 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
26
25
|
taskId: string | null;
|
|
27
26
|
a2aTaskId: string | null;
|
|
28
27
|
conversationId: string;
|
|
28
|
+
role: string;
|
|
29
29
|
userProperties: Record<string, unknown> | null;
|
|
30
30
|
fromTeamAgentId: string | null;
|
|
31
31
|
toTeamAgentId: string | null;
|
|
@@ -159,10 +159,9 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
159
159
|
projectId: string;
|
|
160
160
|
id: string;
|
|
161
161
|
createdAt: string;
|
|
162
|
-
updatedAt: string;
|
|
163
162
|
metadata: MessageMetadata | null;
|
|
164
|
-
role: string;
|
|
165
163
|
content: MessageContent;
|
|
164
|
+
updatedAt: string;
|
|
166
165
|
fromSubAgentId: string | null;
|
|
167
166
|
toSubAgentId: string | null;
|
|
168
167
|
fromExternalAgentId: string | null;
|
|
@@ -170,6 +169,7 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
170
169
|
taskId: string | null;
|
|
171
170
|
a2aTaskId: string | null;
|
|
172
171
|
conversationId: string;
|
|
172
|
+
role: string;
|
|
173
173
|
userProperties: Record<string, unknown> | null;
|
|
174
174
|
fromTeamAgentId: string | null;
|
|
175
175
|
toTeamAgentId: string | null;
|
|
@@ -216,10 +216,9 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
216
216
|
projectId: string;
|
|
217
217
|
id: string;
|
|
218
218
|
createdAt: string;
|
|
219
|
-
updatedAt: string;
|
|
220
219
|
metadata: MessageMetadata | null;
|
|
221
|
-
role: string;
|
|
222
220
|
content: MessageContent;
|
|
221
|
+
updatedAt: string;
|
|
223
222
|
fromSubAgentId: string | null;
|
|
224
223
|
toSubAgentId: string | null;
|
|
225
224
|
fromExternalAgentId: string | null;
|
|
@@ -227,6 +226,7 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
227
226
|
taskId: string | null;
|
|
228
227
|
a2aTaskId: string | null;
|
|
229
228
|
conversationId: string;
|
|
229
|
+
role: string;
|
|
230
230
|
userProperties: Record<string, unknown> | null;
|
|
231
231
|
fromTeamAgentId: string | null;
|
|
232
232
|
toTeamAgentId: string | null;
|
|
@@ -11,16 +11,16 @@ declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert)
|
|
|
11
11
|
projectId: string;
|
|
12
12
|
agentId: string;
|
|
13
13
|
subAgentId: string;
|
|
14
|
+
status: string;
|
|
14
15
|
id: string;
|
|
15
16
|
createdAt: string;
|
|
17
|
+
metadata: TaskMetadataConfig | null;
|
|
16
18
|
updatedAt: string;
|
|
17
19
|
ref: {
|
|
18
20
|
type: "commit" | "tag" | "branch";
|
|
19
21
|
name: string;
|
|
20
22
|
hash: string;
|
|
21
23
|
} | null;
|
|
22
|
-
metadata: TaskMetadataConfig | null;
|
|
23
|
-
status: string;
|
|
24
24
|
contextId: string;
|
|
25
25
|
}>;
|
|
26
26
|
declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
|