@inkeep/agents-core 0.0.0-dev-20260116175045 → 0.0.0-dev-20260116203411

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.
@@ -14,8 +14,8 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
14
14
  tenantId: string;
15
15
  projectId: string;
16
16
  agentId: string;
17
- subAgentId: string;
18
17
  headers: Record<string, string> | null;
18
+ subAgentId: string;
19
19
  targetAgentId: string;
20
20
  } | undefined>;
21
21
  declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
@@ -49,8 +49,8 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
49
49
  tenantId: string;
50
50
  projectId: string;
51
51
  agentId: string;
52
- subAgentId: string;
53
52
  headers: Record<string, string> | null;
53
+ subAgentId: string;
54
54
  targetAgentId: string;
55
55
  }[]>;
56
56
  declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -62,8 +62,8 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
62
62
  tenantId: string;
63
63
  projectId: string;
64
64
  agentId: string;
65
- subAgentId: string;
66
65
  headers: Record<string, string> | null;
66
+ subAgentId: string;
67
67
  targetAgentId: string;
68
68
  }[]>;
69
69
  declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -215,8 +215,8 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
215
215
  tenantId: string;
216
216
  projectId: string;
217
217
  agentId: string;
218
- subAgentId: string;
219
218
  headers: Record<string, string> | null;
219
+ subAgentId: string;
220
220
  targetAgentId: string;
221
221
  }>;
222
222
  /**
@@ -232,8 +232,8 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
232
232
  tenantId: string;
233
233
  projectId: string;
234
234
  agentId: string;
235
- subAgentId: string;
236
235
  headers: Record<string, string> | null;
236
+ subAgentId: string;
237
237
  targetAgentId: string;
238
238
  } | undefined>;
239
239
  /**
@@ -253,8 +253,8 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
253
253
  tenantId: string;
254
254
  projectId: string;
255
255
  agentId: string;
256
- subAgentId: string;
257
256
  headers: Record<string, string> | null;
257
+ subAgentId: string;
258
258
  targetAgentId: string;
259
259
  }>;
260
260
  declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -10,7 +10,13 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
10
10
  }) => Promise<{
11
11
  id: string;
12
12
  name: string;
13
+ createdAt: string;
14
+ updatedAt: string;
13
15
  description: string | null;
16
+ tenantId: string;
17
+ projectId: string;
18
+ prompt: string | null;
19
+ agentId: string;
14
20
  models: {
15
21
  base?: {
16
22
  model?: string | undefined;
@@ -28,12 +34,6 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
28
34
  stopWhen: {
29
35
  stepCountIs?: number | undefined;
30
36
  } | null;
31
- createdAt: string;
32
- updatedAt: string;
33
- tenantId: string;
34
- 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,13 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
41
41
  }) => Promise<{
42
42
  id: string;
43
43
  name: string;
44
+ createdAt: string;
45
+ updatedAt: string;
44
46
  description: string | null;
47
+ tenantId: string;
48
+ projectId: string;
49
+ prompt: string | null;
50
+ agentId: string;
45
51
  models: {
46
52
  base?: {
47
53
  model?: string | undefined;
@@ -59,12 +65,6 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
59
65
  stopWhen: {
60
66
  stepCountIs?: number | undefined;
61
67
  } | null;
62
- createdAt: string;
63
- updatedAt: string;
64
- tenantId: string;
65
- 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,13 @@ 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;
113
115
  description: string | null;
116
+ tenantId: string;
117
+ projectId: string;
118
+ prompt: string | null;
119
+ agentId: string;
114
120
  models: {
115
121
  base?: {
116
122
  model?: string | undefined;
@@ -128,12 +134,6 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
128
134
  stopWhen: {
129
135
  stepCountIs?: number | undefined;
130
136
  } | null;
131
- createdAt: string;
132
- updatedAt: string;
133
- tenantId: string;
134
- 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,18 +14,18 @@ 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;
19
+ description: string | null;
20
20
  tenantId: string;
21
21
  projectId: string;
22
- credentialReferenceId: string | null;
23
22
  config: {
24
23
  type: "mcp";
25
24
  mcp: ToolMcpConfig;
26
25
  };
27
- credentialScope: string;
26
+ credentialReferenceId: string | null;
28
27
  headers: Record<string, string> | null;
28
+ credentialScope: string;
29
29
  imageUrl: string | null;
30
30
  capabilities: ToolServerCapabilities | null;
31
31
  lastError: string | null;
@@ -63,18 +63,18 @@ 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;
68
+ description: string | null;
69
69
  tenantId: string;
70
70
  projectId: string;
71
- credentialReferenceId: string | null;
72
71
  config: {
73
72
  type: "mcp";
74
73
  mcp: ToolMcpConfig;
75
74
  };
76
- credentialScope: string;
75
+ credentialReferenceId: string | null;
77
76
  headers: Record<string, string> | null;
77
+ credentialScope: string;
78
78
  imageUrl: string | null;
79
79
  capabilities: ToolServerCapabilities | null;
80
80
  lastError: string | null;
@@ -123,12 +123,12 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
123
123
  projectId: string;
124
124
  agentId: string;
125
125
  toolId: string;
126
- subAgentId: string;
127
126
  headers: Record<string, string> | null;
128
- selectedTools: string[] | null;
129
127
  toolPolicies: Record<string, {
130
128
  needsApproval?: boolean;
131
129
  }> | null;
130
+ subAgentId: string;
131
+ selectedTools: string[] | null;
132
132
  }>;
133
133
  declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
134
134
  scopes: AgentScopeConfig;
@@ -142,12 +142,12 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
142
142
  projectId: string;
143
143
  agentId: string;
144
144
  toolId: string;
145
- subAgentId: string;
146
145
  headers: Record<string, string> | null;
147
- selectedTools: string[] | null;
148
146
  toolPolicies: Record<string, {
149
147
  needsApproval?: boolean;
150
148
  }> | 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)
@@ -170,12 +170,12 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
170
170
  projectId: string;
171
171
  agentId: string;
172
172
  toolId: string;
173
- subAgentId: string;
174
173
  headers: Record<string, string> | null;
175
- selectedTools: string[] | null;
176
174
  toolPolicies: Record<string, {
177
175
  needsApproval?: boolean;
178
176
  }> | 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)
@@ -185,18 +185,18 @@ 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;
190
+ description: string | null;
191
191
  tenantId: string;
192
192
  projectId: string;
193
- credentialReferenceId: string | null;
194
193
  config: {
195
194
  type: "mcp";
196
195
  mcp: ToolMcpConfig;
197
196
  };
198
- credentialScope: string;
197
+ credentialReferenceId: string | null;
199
198
  headers: Record<string, string> | null;
199
+ credentialScope: string;
200
200
  imageUrl: string | null;
201
201
  capabilities: ToolServerCapabilities | null;
202
202
  lastError: string | null;
@@ -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
16
  projectId: string;
16
17
  agentId: string;
17
- expiresAt: string | null;
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
30
  projectId: string;
30
31
  agentId: string;
31
- expiresAt: string | null;
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
47
  projectId: string;
47
48
  agentId: string;
48
- expiresAt: string | null;
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
74
  projectId: string;
74
75
  agentId: string;
75
- expiresAt: string | null;
76
76
  publicId: string;
77
77
  keyHash: string;
78
78
  keyPrefix: string;
@@ -16,19 +16,19 @@ 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
19
  createdAt: string;
21
20
  updatedAt: string;
22
- tenantId: string;
23
- projectId: string;
24
- agentId: string | null;
25
- userId: string | null;
26
- metadata: ConversationMetadata | null;
27
21
  ref: {
28
22
  type: "commit" | "tag" | "branch";
29
23
  name: string;
30
24
  hash: string;
31
25
  } | null;
26
+ userId: string | null;
27
+ metadata: ConversationMetadata | null;
28
+ tenantId: string;
29
+ projectId: string;
30
+ title: string | null;
31
+ agentId: string | null;
32
32
  activeSubAgentId: string;
33
33
  lastContextResolution: string | null;
34
34
  }>;
@@ -85,19 +85,19 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
85
85
  conversationId: string;
86
86
  }) => Promise<{
87
87
  id: string;
88
- title: string | null;
89
88
  createdAt: string;
90
89
  updatedAt: string;
91
- tenantId: string;
92
- projectId: string;
93
- agentId: string | null;
94
- userId: string | null;
95
- metadata: ConversationMetadata | null;
96
90
  ref: {
97
91
  type: "commit" | "tag" | "branch";
98
92
  name: string;
99
93
  hash: string;
100
94
  } | null;
95
+ userId: string | null;
96
+ metadata: ConversationMetadata | null;
97
+ tenantId: string;
98
+ projectId: string;
99
+ title: string | null;
100
+ agentId: string | null;
101
101
  activeSubAgentId: string;
102
102
  lastContextResolution: string | null;
103
103
  } | undefined>;
@@ -121,19 +121,19 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
121
121
  contextConfigId?: string | undefined;
122
122
  } | {
123
123
  id: string;
124
- title: string | null;
125
124
  createdAt: string;
126
125
  updatedAt: string;
127
- tenantId: string;
128
- projectId: string;
129
- agentId: string | null;
130
- userId: string | null;
131
- metadata: ConversationMetadata | null;
132
126
  ref: {
133
127
  type: "commit" | "tag" | "branch";
134
128
  name: string;
135
129
  hash: string;
136
130
  } | null;
131
+ userId: string | null;
132
+ metadata: ConversationMetadata | null;
133
+ tenantId: string;
134
+ projectId: string;
135
+ title: string | null;
136
+ agentId: string | null;
137
137
  activeSubAgentId: string;
138
138
  lastContextResolution: string | null;
139
139
  }>;
@@ -153,19 +153,19 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
153
153
  conversationId: string;
154
154
  }) => Promise<{
155
155
  id: string;
156
- title: string | null;
157
156
  createdAt: string;
158
157
  updatedAt: string;
159
- tenantId: string;
160
- projectId: string;
161
- agentId: string | null;
162
- userId: string | null;
163
- metadata: ConversationMetadata | null;
164
158
  ref: {
165
159
  type: "commit" | "tag" | "branch";
166
160
  name: string;
167
161
  hash: string;
168
162
  } | null;
163
+ userId: string | null;
164
+ metadata: ConversationMetadata | null;
165
+ tenantId: string;
166
+ projectId: string;
167
+ title: string | null;
168
+ agentId: string | null;
169
169
  activeSubAgentId: string;
170
170
  lastContextResolution: string | null;
171
171
  } | undefined>;
@@ -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
- metadata: MessageMetadata | null;
18
19
  content: MessageContent;
20
+ conversationId: string;
19
21
  fromSubAgentId: string | null;
20
22
  toSubAgentId: string | null;
21
23
  fromExternalAgentId: string | null;
22
24
  toExternalAgentId: string | null;
23
- taskId: string | null;
24
- a2aTaskId: string | null;
25
- role: string;
26
- conversationId: string;
27
25
  fromTeamAgentId: string | null;
28
26
  toTeamAgentId: string | null;
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
- metadata: MessageMetadata | null;
149
150
  content: MessageContent;
151
+ conversationId: string;
150
152
  fromSubAgentId: string | null;
151
153
  toSubAgentId: string | null;
152
154
  fromExternalAgentId: string | null;
153
155
  toExternalAgentId: string | null;
154
- taskId: string | null;
155
- a2aTaskId: string | null;
156
- role: string;
157
- conversationId: string;
158
156
  fromTeamAgentId: string | null;
159
157
  toTeamAgentId: string | null;
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
- metadata: MessageMetadata | null;
202
203
  content: MessageContent;
204
+ conversationId: string;
203
205
  fromSubAgentId: string | null;
204
206
  toSubAgentId: string | null;
205
207
  fromExternalAgentId: string | null;
206
208
  toExternalAgentId: string | null;
207
- taskId: string | null;
208
- a2aTaskId: string | null;
209
- role: string;
210
- conversationId: string;
211
209
  fromTeamAgentId: string | null;
212
210
  toTeamAgentId: string | null;
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: {
@@ -9,18 +9,18 @@ declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert)
9
9
  id: string;
10
10
  createdAt: string;
11
11
  updatedAt: string;
12
- tenantId: string;
13
- projectId: string;
14
- agentId: string;
15
- subAgentId: string;
16
- metadata: TaskMetadataConfig | null;
17
- status: string;
18
12
  ref: {
19
13
  type: "commit" | "tag" | "branch";
20
14
  name: string;
21
15
  hash: string;
22
16
  } | null;
17
+ metadata: TaskMetadataConfig | null;
18
+ status: string;
19
+ tenantId: string;
20
+ projectId: string;
21
+ agentId: string;
23
22
  contextId: string;
23
+ subAgentId: string;
24
24
  }>;
25
25
  declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
26
26
  id: string;