@inkeep/agents-core 0.0.0-dev-20260204185956 → 0.0.0-dev-20260204210021

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.
@@ -12,10 +12,11 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
12
12
  name: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
+ tenantId: string;
16
+ projectId: string;
15
17
  description: string | null;
18
+ prompt: string | null;
16
19
  agentId: string;
17
- projectId: string;
18
- tenantId: string;
19
20
  models: {
20
21
  base?: {
21
22
  model?: string | undefined;
@@ -30,7 +31,6 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
30
31
  providerOptions?: Record<string, any> | undefined;
31
32
  } | undefined;
32
33
  } | null;
33
- prompt: string | null;
34
34
  stopWhen: {
35
35
  stepCountIs?: number | undefined;
36
36
  } | null;
@@ -43,10 +43,11 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
43
43
  name: string;
44
44
  createdAt: string;
45
45
  updatedAt: string;
46
+ tenantId: string;
47
+ projectId: string;
46
48
  description: string | null;
49
+ prompt: string | null;
47
50
  agentId: string;
48
- projectId: string;
49
- tenantId: string;
50
51
  models: {
51
52
  base?: {
52
53
  model?: string | undefined;
@@ -61,7 +62,6 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
61
62
  providerOptions?: Record<string, any> | undefined;
62
63
  } | undefined;
63
64
  } | null;
64
- prompt: string | null;
65
65
  stopWhen: {
66
66
  stepCountIs?: number | undefined;
67
67
  } | null;
@@ -112,10 +112,11 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
112
112
  name: string;
113
113
  createdAt: string;
114
114
  updatedAt: string;
115
+ tenantId: string;
116
+ projectId: string;
115
117
  description: string | null;
118
+ prompt: string | null;
116
119
  agentId: string;
117
- projectId: string;
118
- tenantId: string;
119
120
  models: {
120
121
  base?: {
121
122
  model?: string | undefined;
@@ -130,7 +131,6 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
130
131
  providerOptions?: Record<string, any> | undefined;
131
132
  } | undefined;
132
133
  } | null;
133
- prompt: string | null;
134
134
  stopWhen: {
135
135
  stepCountIs?: number | undefined;
136
136
  } | null;
@@ -22,10 +22,10 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
22
22
  name: string;
23
23
  createdAt: string;
24
24
  updatedAt: string;
25
- description: string | null;
26
25
  headers: Record<string, string> | null;
27
- projectId: string;
28
26
  tenantId: string;
27
+ projectId: string;
28
+ description: string | null;
29
29
  config: {
30
30
  type: "mcp";
31
31
  mcp: ToolMcpConfig;
@@ -80,10 +80,10 @@ declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInser
80
80
  name: string;
81
81
  createdAt: string;
82
82
  updatedAt: string;
83
- description: string | null;
84
83
  headers: Record<string, string> | null;
85
- projectId: string;
86
84
  tenantId: string;
85
+ projectId: string;
86
+ description: string | null;
87
87
  config: {
88
88
  type: "mcp";
89
89
  mcp: ToolMcpConfig;
@@ -137,15 +137,15 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
137
137
  createdAt: string;
138
138
  updatedAt: string;
139
139
  headers: Record<string, string> | null;
140
- agentId: string;
141
- projectId: string;
140
+ subAgentId: string;
142
141
  tenantId: string;
142
+ projectId: string;
143
+ agentId: string;
143
144
  toolId: string;
144
- subAgentId: string;
145
- selectedTools: string[] | null;
146
145
  toolPolicies: Record<string, {
147
146
  needsApproval?: boolean;
148
147
  }> | null;
148
+ selectedTools: string[] | null;
149
149
  }>;
150
150
  declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
151
151
  scopes: AgentScopeConfig;
@@ -156,15 +156,15 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
156
156
  createdAt: string;
157
157
  updatedAt: string;
158
158
  headers: Record<string, string> | null;
159
- agentId: string;
160
- projectId: string;
159
+ subAgentId: string;
161
160
  tenantId: string;
161
+ projectId: string;
162
+ agentId: string;
162
163
  toolId: string;
163
- subAgentId: string;
164
- selectedTools: string[] | null;
165
164
  toolPolicies: Record<string, {
166
165
  needsApproval?: boolean;
167
166
  }> | null;
167
+ selectedTools: string[] | null;
168
168
  }>;
169
169
  /**
170
170
  * Upsert agent-tool relation (create if it doesn't exist, update if it does)
@@ -184,15 +184,15 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
184
184
  createdAt: string;
185
185
  updatedAt: string;
186
186
  headers: Record<string, string> | null;
187
- agentId: string;
188
- projectId: string;
187
+ subAgentId: string;
189
188
  tenantId: string;
189
+ projectId: string;
190
+ agentId: string;
190
191
  toolId: string;
191
- subAgentId: string;
192
- selectedTools: string[] | null;
193
192
  toolPolicies: Record<string, {
194
193
  needsApproval?: boolean;
195
194
  }> | null;
195
+ selectedTools: string[] | null;
196
196
  }>;
197
197
  /**
198
198
  * Upsert a tool (create if it doesn't exist, update if it does)
@@ -204,10 +204,10 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
204
204
  name: string;
205
205
  createdAt: string;
206
206
  updatedAt: string;
207
- description: string | null;
208
207
  headers: Record<string, string> | null;
209
- projectId: string;
210
208
  tenantId: string;
209
+ projectId: string;
210
+ description: string | null;
211
211
  config: {
212
212
  type: "mcp";
213
213
  mcp: ToolMcpConfig;
@@ -12,9 +12,9 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
12
12
  createdAt: string;
13
13
  updatedAt: string;
14
14
  expiresAt: string | null;
15
- agentId: string;
16
- projectId: string;
17
15
  tenantId: string;
16
+ projectId: string;
17
+ agentId: string;
18
18
  publicId: string;
19
19
  keyHash: string;
20
20
  keyPrefix: string;
@@ -26,9 +26,9 @@ declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: s
26
26
  createdAt: string;
27
27
  updatedAt: string;
28
28
  expiresAt: string | null;
29
- agentId: string;
30
- projectId: string;
31
29
  tenantId: string;
30
+ projectId: string;
31
+ agentId: string;
32
32
  publicId: string;
33
33
  keyHash: string;
34
34
  keyPrefix: string;
@@ -43,9 +43,9 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
43
43
  createdAt: string;
44
44
  updatedAt: string;
45
45
  expiresAt: string | null;
46
- agentId: string;
47
- projectId: string;
48
46
  tenantId: string;
47
+ projectId: string;
48
+ agentId: string;
49
49
  publicId: string;
50
50
  keyHash: string;
51
51
  keyPrefix: string;
@@ -70,9 +70,9 @@ declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInse
70
70
  createdAt: string;
71
71
  updatedAt: string;
72
72
  expiresAt: string | null;
73
- agentId: string;
74
- projectId: string;
75
73
  tenantId: string;
74
+ projectId: string;
75
+ agentId: string;
76
76
  publicId: string;
77
77
  keyHash: string;
78
78
  keyPrefix: string;
@@ -19,16 +19,16 @@ declare const createConversation: (db: AgentsRunDatabaseClient) => (params: Conv
19
19
  createdAt: string;
20
20
  updatedAt: string;
21
21
  ref: {
22
- type: "tag" | "commit" | "branch";
22
+ type: "commit" | "tag" | "branch";
23
23
  name: string;
24
24
  hash: string;
25
25
  } | null;
26
26
  userId: string | null;
27
27
  metadata: ConversationMetadata | null;
28
- agentId: string | null;
29
- projectId: string;
30
28
  tenantId: string;
29
+ projectId: string;
31
30
  title: 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: "tag" | "commit" | "branch";
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: "tag" | "commit" | "branch";
72
+ type: "commit" | "tag" | "branch";
73
73
  name: string;
74
74
  hash: string;
75
75
  } | null;
@@ -88,16 +88,16 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
88
88
  createdAt: string;
89
89
  updatedAt: string;
90
90
  ref: {
91
- type: "tag" | "commit" | "branch";
91
+ type: "commit" | "tag" | "branch";
92
92
  name: string;
93
93
  hash: string;
94
94
  } | null;
95
95
  userId: string | null;
96
96
  metadata: ConversationMetadata | null;
97
- agentId: string | null;
98
- projectId: string;
99
97
  tenantId: string;
98
+ projectId: string;
100
99
  title: 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: "tag" | "commit" | "branch";
110
+ type: "commit" | "tag" | "branch";
111
111
  name: string;
112
112
  hash: string;
113
113
  };
@@ -124,16 +124,16 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
124
124
  createdAt: string;
125
125
  updatedAt: string;
126
126
  ref: {
127
- type: "tag" | "commit" | "branch";
127
+ type: "commit" | "tag" | "branch";
128
128
  name: string;
129
129
  hash: string;
130
130
  } | null;
131
131
  userId: string | null;
132
132
  metadata: ConversationMetadata | null;
133
- agentId: string | null;
134
- projectId: string;
135
133
  tenantId: string;
134
+ projectId: string;
136
135
  title: string | null;
136
+ agentId: string | null;
137
137
  activeSubAgentId: string;
138
138
  lastContextResolution: string | null;
139
139
  }>;
@@ -156,16 +156,16 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
156
156
  createdAt: string;
157
157
  updatedAt: string;
158
158
  ref: {
159
- type: "tag" | "commit" | "branch";
159
+ type: "commit" | "tag" | "branch";
160
160
  name: string;
161
161
  hash: string;
162
162
  } | null;
163
163
  userId: string | null;
164
164
  metadata: ConversationMetadata | null;
165
- agentId: string | null;
166
- projectId: string;
167
165
  tenantId: string;
166
+ projectId: string;
168
167
  title: string | null;
168
+ agentId: string | null;
169
169
  activeSubAgentId: string;
170
170
  lastContextResolution: string | null;
171
171
  } | undefined>;
@@ -14,21 +14,21 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
14
14
  updatedAt: string;
15
15
  metadata: MessageMetadata | null;
16
16
  role: string;
17
- projectId: string;
18
- tenantId: string;
19
- content: MessageContent;
20
- conversationId: string;
21
17
  fromSubAgentId: string | null;
22
18
  toSubAgentId: string | null;
23
19
  fromExternalAgentId: string | null;
24
20
  toExternalAgentId: string | null;
21
+ taskId: string | null;
22
+ a2aTaskId: string | null;
23
+ tenantId: string;
24
+ projectId: string;
25
+ content: MessageContent;
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: {
@@ -145,21 +145,21 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageIn
145
145
  updatedAt: string;
146
146
  metadata: MessageMetadata | null;
147
147
  role: string;
148
- projectId: string;
149
- tenantId: string;
150
- content: MessageContent;
151
- conversationId: string;
152
148
  fromSubAgentId: string | null;
153
149
  toSubAgentId: string | null;
154
150
  fromExternalAgentId: string | null;
155
151
  toExternalAgentId: string | null;
152
+ taskId: string | null;
153
+ a2aTaskId: string | null;
154
+ tenantId: string;
155
+ projectId: string;
156
+ content: MessageContent;
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: {
@@ -198,21 +198,21 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
198
198
  updatedAt: string;
199
199
  metadata: MessageMetadata | null;
200
200
  role: string;
201
- projectId: string;
202
- tenantId: string;
203
- content: MessageContent;
204
- conversationId: string;
205
201
  fromSubAgentId: string | null;
206
202
  toSubAgentId: string | null;
207
203
  fromExternalAgentId: string | null;
208
204
  toExternalAgentId: string | null;
205
+ taskId: string | null;
206
+ a2aTaskId: string | null;
207
+ tenantId: string;
208
+ projectId: string;
209
+ content: MessageContent;
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: {
@@ -10,16 +10,16 @@ declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert)
10
10
  createdAt: string;
11
11
  updatedAt: string;
12
12
  ref: {
13
- type: "tag" | "commit" | "branch";
13
+ type: "commit" | "tag" | "branch";
14
14
  name: string;
15
15
  hash: string;
16
16
  } | null;
17
17
  metadata: TaskMetadataConfig | null;
18
18
  status: string;
19
- agentId: string;
20
- projectId: string;
21
- tenantId: string;
22
19
  subAgentId: string;
20
+ tenantId: string;
21
+ projectId: string;
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: "tag" | "commit" | "branch";
39
+ type: "commit" | "tag" | "branch";
40
40
  name: string;
41
41
  hash: string;
42
42
  } | null;