@inkeep/agents-core 0.0.0-dev-20260122101439 → 0.0.0-dev-20260122105802

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.
@@ -11,9 +11,9 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
11
11
  id: string;
12
12
  createdAt: string;
13
13
  updatedAt: string;
14
- agentId: string;
15
14
  projectId: string;
16
15
  tenantId: string;
16
+ agentId: string;
17
17
  subAgentId: string;
18
18
  headers: Record<string, string> | null;
19
19
  externalAgentId: string;
@@ -46,9 +46,9 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
46
46
  id: string;
47
47
  createdAt: string;
48
48
  updatedAt: string;
49
- agentId: string;
50
49
  projectId: string;
51
50
  tenantId: string;
51
+ agentId: string;
52
52
  subAgentId: string;
53
53
  headers: Record<string, string> | null;
54
54
  externalAgentId: string;
@@ -59,9 +59,9 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
59
59
  id: string;
60
60
  createdAt: string;
61
61
  updatedAt: string;
62
- agentId: string;
63
62
  projectId: string;
64
63
  tenantId: string;
64
+ agentId: string;
65
65
  subAgentId: string;
66
66
  headers: Record<string, string> | null;
67
67
  externalAgentId: string;
@@ -182,9 +182,9 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
182
182
  id: string;
183
183
  createdAt: string;
184
184
  updatedAt: string;
185
- agentId: string;
186
185
  projectId: string;
187
186
  tenantId: string;
187
+ agentId: string;
188
188
  subAgentId: string;
189
189
  headers: Record<string, string> | null;
190
190
  externalAgentId: string;
@@ -199,9 +199,9 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
199
199
  id: string;
200
200
  createdAt: string;
201
201
  updatedAt: string;
202
- agentId: string;
203
202
  projectId: string;
204
203
  tenantId: string;
204
+ agentId: string;
205
205
  subAgentId: string;
206
206
  headers: Record<string, string> | null;
207
207
  externalAgentId: string;
@@ -220,9 +220,9 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
220
220
  id: string;
221
221
  createdAt: string;
222
222
  updatedAt: string;
223
- agentId: string;
224
223
  projectId: string;
225
224
  tenantId: string;
225
+ agentId: string;
226
226
  subAgentId: string;
227
227
  headers: Record<string, string> | null;
228
228
  externalAgentId: string;
@@ -11,12 +11,12 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
11
11
  id: string;
12
12
  createdAt: string;
13
13
  updatedAt: string;
14
- agentId: string;
15
14
  projectId: string;
16
15
  tenantId: string;
16
+ agentId: 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;
@@ -46,12 +46,12 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
46
46
  id: string;
47
47
  createdAt: string;
48
48
  updatedAt: string;
49
- agentId: string;
50
49
  projectId: string;
51
50
  tenantId: string;
51
+ agentId: 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;
@@ -59,12 +59,12 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
59
59
  id: string;
60
60
  createdAt: string;
61
61
  updatedAt: string;
62
- agentId: string;
63
62
  projectId: string;
64
63
  tenantId: string;
64
+ agentId: 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;
@@ -128,12 +128,12 @@ declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
128
128
  id: string;
129
129
  createdAt: string;
130
130
  updatedAt: string;
131
- agentId: string;
132
131
  projectId: string;
133
132
  tenantId: string;
133
+ agentId: 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
@@ -147,12 +147,12 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
147
147
  id: string;
148
148
  createdAt: string;
149
149
  updatedAt: string;
150
- agentId: string;
151
150
  projectId: string;
152
151
  tenantId: string;
152
+ agentId: 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)
@@ -161,12 +161,12 @@ declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
161
161
  id: string;
162
162
  createdAt: string;
163
163
  updatedAt: string;
164
- agentId: string;
165
164
  projectId: string;
166
165
  tenantId: string;
166
+ agentId: 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;
@@ -206,11 +206,11 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
206
206
  id: string;
207
207
  createdAt: string;
208
208
  updatedAt: string;
209
- agentId: string;
210
209
  projectId: string;
211
210
  tenantId: string;
212
- subAgentId: string;
213
211
  toolId: string;
212
+ agentId: string;
213
+ subAgentId: string;
214
214
  headers: Record<string, string> | null;
215
215
  toolPolicies: Record<string, {
216
216
  needsApproval?: boolean;
@@ -250,11 +250,11 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
250
250
  id: string;
251
251
  createdAt: string;
252
252
  updatedAt: string;
253
- agentId: string;
254
253
  projectId: string;
255
254
  tenantId: string;
256
- subAgentId: string;
257
255
  toolId: string;
256
+ agentId: string;
257
+ subAgentId: string;
258
258
  headers: Record<string, string> | null;
259
259
  toolPolicies: Record<string, {
260
260
  needsApproval?: boolean;
@@ -11,9 +11,9 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
11
11
  id: string;
12
12
  createdAt: string;
13
13
  updatedAt: string;
14
- agentId: string;
15
14
  projectId: string;
16
15
  tenantId: string;
16
+ agentId: string;
17
17
  subAgentId: string;
18
18
  headers: Record<string, string> | null;
19
19
  targetAgentId: string;
@@ -46,9 +46,9 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
46
46
  id: string;
47
47
  createdAt: string;
48
48
  updatedAt: string;
49
- agentId: string;
50
49
  projectId: string;
51
50
  tenantId: string;
51
+ agentId: string;
52
52
  subAgentId: string;
53
53
  headers: Record<string, string> | null;
54
54
  targetAgentId: string;
@@ -59,9 +59,9 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
59
59
  id: string;
60
60
  createdAt: string;
61
61
  updatedAt: string;
62
- agentId: string;
63
62
  projectId: string;
64
63
  tenantId: string;
64
+ agentId: string;
65
65
  subAgentId: string;
66
66
  headers: Record<string, string> | null;
67
67
  targetAgentId: string;
@@ -212,9 +212,9 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
212
212
  id: string;
213
213
  createdAt: string;
214
214
  updatedAt: string;
215
- agentId: string;
216
215
  projectId: string;
217
216
  tenantId: string;
217
+ agentId: string;
218
218
  subAgentId: string;
219
219
  headers: Record<string, string> | null;
220
220
  targetAgentId: string;
@@ -229,9 +229,9 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
229
229
  id: string;
230
230
  createdAt: string;
231
231
  updatedAt: string;
232
- agentId: string;
233
232
  projectId: string;
234
233
  tenantId: string;
234
+ agentId: string;
235
235
  subAgentId: string;
236
236
  headers: Record<string, string> | null;
237
237
  targetAgentId: string;
@@ -250,9 +250,9 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
250
250
  id: string;
251
251
  createdAt: string;
252
252
  updatedAt: string;
253
- agentId: string;
254
253
  projectId: string;
255
254
  tenantId: string;
255
+ agentId: string;
256
256
  subAgentId: string;
257
257
  headers: Record<string, string> | null;
258
258
  targetAgentId: string;
@@ -13,7 +13,6 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
13
13
  description: string | null;
14
14
  createdAt: string;
15
15
  updatedAt: string;
16
- agentId: string;
17
16
  projectId: string;
18
17
  tenantId: string;
19
18
  models: {
@@ -30,10 +29,11 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
30
29
  providerOptions?: Record<string, any> | undefined;
31
30
  } | undefined;
32
31
  } | null;
33
- prompt: string | null;
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: {
@@ -44,7 +44,6 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
44
44
  description: string | null;
45
45
  createdAt: string;
46
46
  updatedAt: string;
47
- agentId: string;
48
47
  projectId: string;
49
48
  tenantId: string;
50
49
  models: {
@@ -61,10 +60,11 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
61
60
  providerOptions?: Record<string, any> | undefined;
62
61
  } | undefined;
63
62
  } | null;
64
- prompt: string | null;
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: {
@@ -113,7 +113,6 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
113
113
  description: string | null;
114
114
  createdAt: string;
115
115
  updatedAt: string;
116
- agentId: string;
117
116
  projectId: string;
118
117
  tenantId: string;
119
118
  models: {
@@ -130,10 +129,11 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
130
129
  providerOptions?: Record<string, any> | undefined;
131
130
  } | undefined;
132
131
  } | null;
133
- prompt: string | null;
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,6 +15,7 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
15
15
  id: string;
16
16
  name: string;
17
17
  description: string | null;
18
+ credentialReferenceId: string | null;
18
19
  createdAt: string;
19
20
  updatedAt: string;
20
21
  projectId: string;
@@ -24,7 +25,6 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
24
25
  type: "mcp";
25
26
  mcp: ToolMcpConfig;
26
27
  };
27
- credentialReferenceId: string | null;
28
28
  credentialScope: string;
29
29
  imageUrl: string | null;
30
30
  capabilities: ToolServerCapabilities | null;
@@ -71,6 +71,7 @@ declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInser
71
71
  id: string;
72
72
  name: string;
73
73
  description: string | null;
74
+ credentialReferenceId: string | null;
74
75
  createdAt: string;
75
76
  updatedAt: string;
76
77
  projectId: string;
@@ -80,7 +81,6 @@ declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInser
80
81
  type: "mcp";
81
82
  mcp: ToolMcpConfig;
82
83
  };
83
- credentialReferenceId: string | null;
84
84
  credentialScope: string;
85
85
  imageUrl: string | null;
86
86
  capabilities: ToolServerCapabilities | null;
@@ -126,11 +126,11 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
126
126
  id: string;
127
127
  createdAt: string;
128
128
  updatedAt: string;
129
- agentId: string;
130
129
  projectId: string;
131
130
  tenantId: string;
132
- subAgentId: string;
133
131
  toolId: string;
132
+ agentId: string;
133
+ subAgentId: string;
134
134
  headers: Record<string, string> | null;
135
135
  toolPolicies: Record<string, {
136
136
  needsApproval?: boolean;
@@ -145,11 +145,11 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
145
145
  id: string;
146
146
  createdAt: string;
147
147
  updatedAt: string;
148
- agentId: string;
149
148
  projectId: string;
150
149
  tenantId: string;
151
- subAgentId: string;
152
150
  toolId: string;
151
+ agentId: string;
152
+ subAgentId: string;
153
153
  headers: Record<string, string> | null;
154
154
  toolPolicies: Record<string, {
155
155
  needsApproval?: boolean;
@@ -173,11 +173,11 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
173
173
  id: string;
174
174
  createdAt: string;
175
175
  updatedAt: string;
176
- agentId: string;
177
176
  projectId: string;
178
177
  tenantId: string;
179
- subAgentId: string;
180
178
  toolId: string;
179
+ agentId: string;
180
+ subAgentId: string;
181
181
  headers: Record<string, string> | null;
182
182
  toolPolicies: Record<string, {
183
183
  needsApproval?: boolean;
@@ -193,6 +193,7 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
193
193
  id: string;
194
194
  name: string;
195
195
  description: string | null;
196
+ credentialReferenceId: string | null;
196
197
  createdAt: string;
197
198
  updatedAt: string;
198
199
  projectId: string;
@@ -202,7 +203,6 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
202
203
  type: "mcp";
203
204
  mcp: ToolMcpConfig;
204
205
  };
205
- credentialReferenceId: string | null;
206
206
  credentialScope: string;
207
207
  imageUrl: string | null;
208
208
  capabilities: ToolServerCapabilities | null;
@@ -11,9 +11,9 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
11
11
  name: string | null;
12
12
  createdAt: string;
13
13
  updatedAt: string;
14
- agentId: string;
15
14
  projectId: string;
16
15
  tenantId: string;
16
+ agentId: string;
17
17
  expiresAt: string | null;
18
18
  publicId: string;
19
19
  keyHash: string;
@@ -25,9 +25,9 @@ declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: s
25
25
  name: string | null;
26
26
  createdAt: string;
27
27
  updatedAt: string;
28
- agentId: string;
29
28
  projectId: string;
30
29
  tenantId: string;
30
+ agentId: string;
31
31
  expiresAt: string | null;
32
32
  publicId: string;
33
33
  keyHash: string;
@@ -42,9 +42,9 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
42
42
  name: string | null;
43
43
  createdAt: string;
44
44
  updatedAt: string;
45
- agentId: string;
46
45
  projectId: string;
47
46
  tenantId: string;
47
+ agentId: string;
48
48
  expiresAt: string | null;
49
49
  publicId: string;
50
50
  keyHash: string;
@@ -69,9 +69,9 @@ declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInse
69
69
  name: string | null;
70
70
  createdAt: string;
71
71
  updatedAt: string;
72
- agentId: string;
73
72
  projectId: string;
74
73
  tenantId: string;
74
+ agentId: string;
75
75
  expiresAt: string | null;
76
76
  publicId: string;
77
77
  keyHash: string;
@@ -18,18 +18,18 @@ declare const createConversation: (db: AgentsRunDatabaseClient) => (params: Conv
18
18
  id: string;
19
19
  createdAt: string;
20
20
  updatedAt: string;
21
- agentId: string | null;
22
21
  projectId: string;
23
22
  tenantId: string;
24
23
  title: string | null;
25
- metadata: ConversationMetadata | null;
26
24
  userId: string | null;
25
+ metadata: ConversationMetadata | null;
26
+ agentId: string | null;
27
+ activeSubAgentId: string;
27
28
  ref: {
28
29
  type: "commit" | "tag" | "branch";
29
30
  name: string;
30
31
  hash: string;
31
32
  } | null;
32
- activeSubAgentId: string;
33
33
  lastContextResolution: string | null;
34
34
  }>;
35
35
  declare const updateConversation: (db: AgentsRunDatabaseClient) => (params: {
@@ -87,18 +87,18 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
87
87
  id: string;
88
88
  createdAt: string;
89
89
  updatedAt: string;
90
- agentId: string | null;
91
90
  projectId: string;
92
91
  tenantId: string;
93
92
  title: string | null;
94
- metadata: ConversationMetadata | null;
95
93
  userId: string | null;
94
+ metadata: ConversationMetadata | null;
95
+ agentId: string | null;
96
+ activeSubAgentId: string;
96
97
  ref: {
97
98
  type: "commit" | "tag" | "branch";
98
99
  name: string;
99
100
  hash: string;
100
101
  } | null;
101
- activeSubAgentId: string;
102
102
  lastContextResolution: string | null;
103
103
  } | undefined>;
104
104
  declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input: ConversationInsert) => Promise<{
@@ -123,18 +123,18 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
123
123
  id: string;
124
124
  createdAt: string;
125
125
  updatedAt: string;
126
- agentId: string | null;
127
126
  projectId: string;
128
127
  tenantId: string;
129
128
  title: string | null;
130
- metadata: ConversationMetadata | null;
131
129
  userId: string | null;
130
+ metadata: ConversationMetadata | null;
131
+ agentId: string | null;
132
+ activeSubAgentId: string;
132
133
  ref: {
133
134
  type: "commit" | "tag" | "branch";
134
135
  name: string;
135
136
  hash: string;
136
137
  } | null;
137
- activeSubAgentId: string;
138
138
  lastContextResolution: string | null;
139
139
  }>;
140
140
  /**
@@ -155,18 +155,18 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
155
155
  id: string;
156
156
  createdAt: string;
157
157
  updatedAt: string;
158
- agentId: string | null;
159
158
  projectId: string;
160
159
  tenantId: string;
161
160
  title: string | null;
162
- metadata: ConversationMetadata | null;
163
161
  userId: string | null;
162
+ metadata: ConversationMetadata | null;
163
+ agentId: string | null;
164
+ activeSubAgentId: string;
164
165
  ref: {
165
166
  type: "commit" | "tag" | "branch";
166
167
  name: string;
167
168
  hash: string;
168
169
  } | null;
169
- activeSubAgentId: string;
170
170
  lastContextResolution: string | null;
171
171
  } | undefined>;
172
172
  /**
@@ -16,8 +16,8 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
16
16
  tenantId: string;
17
17
  metadata: MessageMetadata | null;
18
18
  content: MessageContent;
19
- role: string;
20
19
  conversationId: string;
20
+ role: string;
21
21
  fromSubAgentId: string | null;
22
22
  toSubAgentId: string | null;
23
23
  fromExternalAgentId: string | null;
@@ -147,8 +147,8 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageIn
147
147
  tenantId: string;
148
148
  metadata: MessageMetadata | null;
149
149
  content: MessageContent;
150
- role: string;
151
150
  conversationId: string;
151
+ role: string;
152
152
  fromSubAgentId: string | null;
153
153
  toSubAgentId: string | null;
154
154
  fromExternalAgentId: string | null;
@@ -200,8 +200,8 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
200
200
  tenantId: string;
201
201
  metadata: MessageMetadata | null;
202
202
  content: MessageContent;
203
- role: string;
204
203
  conversationId: string;
204
+ role: string;
205
205
  fromSubAgentId: string | null;
206
206
  toSubAgentId: string | null;
207
207
  fromExternalAgentId: string | null;
@@ -9,18 +9,18 @@ declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert)
9
9
  id: string;
10
10
  createdAt: string;
11
11
  updatedAt: string;
12
- agentId: string;
13
12
  projectId: string;
14
13
  tenantId: string;
15
14
  metadata: TaskMetadataConfig | null;
16
- subAgentId: string;
17
- status: string;
15
+ agentId: string;
18
16
  ref: {
19
17
  type: "commit" | "tag" | "branch";
20
18
  name: string;
21
19
  hash: string;
22
20
  } | null;
21
+ status: string;
23
22
  contextId: string;
23
+ subAgentId: string;
24
24
  }>;
25
25
  declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
26
26
  id: string;