@inkeep/agents-core 0.0.0-dev-20260205075607 → 0.0.0-dev-20260205075846

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.
@@ -65,8 +65,8 @@ declare const AgentApiInsertSchema: z.ZodObject<{
65
65
  canTransferTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
66
66
  canDelegateTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
67
67
  type: z.ZodOptional<z.ZodEnum<{
68
- internal: "internal";
69
68
  external: "external";
69
+ internal: "internal";
70
70
  }>>;
71
71
  }, z.core.$strip>;
72
72
  declare const ToolApiInsertSchema: z.ZodObject<{
@@ -13,9 +13,6 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
15
  description: string | null;
16
- tenantId: string;
17
- projectId: string;
18
- prompt: string | null;
19
16
  models: {
20
17
  base?: {
21
18
  model?: string | undefined;
@@ -33,8 +30,10 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
33
30
  stopWhen: {
34
31
  transferCountIs?: number | undefined;
35
32
  } | null;
33
+ tenantId: string;
36
34
  defaultSubAgentId: string | null;
37
35
  contextConfigId: string | null;
36
+ prompt: string | null;
38
37
  statusUpdates: {
39
38
  enabled?: boolean | undefined;
40
39
  numEvents?: number | undefined;
@@ -50,6 +49,7 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
50
49
  } | undefined;
51
50
  }[] | undefined;
52
51
  } | null;
52
+ projectId: string;
53
53
  } | null>;
54
54
  declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (params: {
55
55
  scopes: AgentScopeConfig;
@@ -59,9 +59,6 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
59
59
  createdAt: string;
60
60
  updatedAt: string;
61
61
  description: string | null;
62
- tenantId: string;
63
- projectId: string;
64
- prompt: string | null;
65
62
  models: {
66
63
  base?: {
67
64
  model?: string | undefined;
@@ -79,8 +76,10 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
79
76
  stopWhen: {
80
77
  transferCountIs?: number | undefined;
81
78
  } | null;
79
+ tenantId: string;
82
80
  defaultSubAgentId: string | null;
83
81
  contextConfigId: string | null;
82
+ prompt: string | null;
84
83
  statusUpdates: {
85
84
  enabled?: boolean | undefined;
86
85
  numEvents?: number | undefined;
@@ -96,16 +95,13 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
96
95
  } | undefined;
97
96
  }[] | undefined;
98
97
  } | null;
98
+ projectId: string;
99
99
  defaultSubAgent: {
100
100
  id: string;
101
101
  name: string;
102
102
  createdAt: string;
103
103
  updatedAt: string;
104
104
  description: string | null;
105
- tenantId: string;
106
- projectId: string;
107
- prompt: string | null;
108
- agentId: string;
109
105
  models: {
110
106
  base?: {
111
107
  model?: string | undefined;
@@ -123,6 +119,10 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
123
119
  stopWhen: {
124
120
  stepCountIs?: number | undefined;
125
121
  } | null;
122
+ tenantId: string;
123
+ prompt: string | null;
124
+ projectId: string;
125
+ agentId: string;
126
126
  conversationHistoryConfig: ConversationHistoryConfig | null;
127
127
  } | null;
128
128
  } | null>;
@@ -134,9 +134,6 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
134
134
  createdAt: string;
135
135
  updatedAt: string;
136
136
  description: string | null;
137
- tenantId: string;
138
- projectId: string;
139
- prompt: string | null;
140
137
  models: {
141
138
  base?: {
142
139
  model?: string | undefined;
@@ -154,8 +151,10 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
154
151
  stopWhen: {
155
152
  transferCountIs?: number | undefined;
156
153
  } | null;
154
+ tenantId: string;
157
155
  defaultSubAgentId: string | null;
158
156
  contextConfigId: string | null;
157
+ prompt: string | null;
159
158
  statusUpdates: {
160
159
  enabled?: boolean | undefined;
161
160
  numEvents?: number | undefined;
@@ -171,6 +170,7 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
171
170
  } | undefined;
172
171
  }[] | undefined;
173
172
  } | null;
173
+ projectId: string;
174
174
  }[]>;
175
175
  declare const listAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
176
176
  scopes: ProjectScopeConfig;
@@ -250,9 +250,6 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
250
250
  createdAt: string;
251
251
  updatedAt: string;
252
252
  description: string | null;
253
- tenantId: string;
254
- projectId: string;
255
- prompt: string | null;
256
253
  models: {
257
254
  base?: {
258
255
  model?: string | undefined;
@@ -270,8 +267,10 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
270
267
  stopWhen: {
271
268
  transferCountIs?: number | undefined;
272
269
  } | null;
270
+ tenantId: string;
273
271
  defaultSubAgentId: string | null;
274
272
  contextConfigId: string | null;
273
+ prompt: string | null;
275
274
  statusUpdates: {
276
275
  enabled?: boolean | undefined;
277
276
  numEvents?: number | undefined;
@@ -287,6 +286,7 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
287
286
  } | undefined;
288
287
  }[] | undefined;
289
288
  } | null;
289
+ projectId: string;
290
290
  }>;
291
291
  declare const updateAgent: (db: AgentsManageDatabaseClient) => (params: {
292
292
  scopes: AgentScopeConfig;
@@ -104,12 +104,12 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
104
104
  scopes: SubAgentScopeConfig;
105
105
  artifactComponentId: string;
106
106
  }) => Promise<{
107
+ subAgentId: string;
107
108
  id: string;
108
109
  createdAt: string;
109
110
  tenantId: string;
110
111
  projectId: string;
111
112
  agentId: string;
112
- subAgentId: string;
113
113
  artifactComponentId: string;
114
114
  }>;
115
115
  declare const removeArtifactComponentFromAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -147,12 +147,12 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
147
147
  scopes: SubAgentScopeConfig;
148
148
  artifactComponentId: string;
149
149
  }) => Promise<{
150
+ subAgentId: string;
150
151
  id: string;
151
152
  createdAt: string;
152
153
  tenantId: string;
153
154
  projectId: string;
154
155
  agentId: string;
155
- subAgentId: string;
156
156
  artifactComponentId: string;
157
157
  } | null>;
158
158
  /**
@@ -13,9 +13,9 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
13
13
  updatedAt: string;
14
14
  tenantId: string;
15
15
  projectId: string;
16
- agentId: string;
17
16
  headersSchema: unknown;
18
17
  contextVariables: Record<string, ContextFetchDefinition> | null;
18
+ agentId: string;
19
19
  } | undefined>;
20
20
  declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
21
21
  scopes: AgentScopeConfig;
@@ -25,9 +25,9 @@ declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
25
25
  updatedAt: string;
26
26
  tenantId: string;
27
27
  projectId: string;
28
- agentId: string;
29
28
  headersSchema: unknown;
30
29
  contextVariables: Record<string, ContextFetchDefinition> | null;
30
+ agentId: string;
31
31
  }[]>;
32
32
  declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (params: {
33
33
  scopes: AgentScopeConfig;
@@ -47,9 +47,9 @@ declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params:
47
47
  updatedAt: string;
48
48
  tenantId: string;
49
49
  projectId: string;
50
- agentId: string;
51
50
  headersSchema: unknown;
52
51
  contextVariables: Record<string, ContextFetchDefinition> | null;
52
+ agentId: string;
53
53
  }>;
54
54
  declare const updateContextConfig: (db: AgentsManageDatabaseClient) => (params: {
55
55
  scopes: AgentScopeConfig;
@@ -87,9 +87,9 @@ declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params:
87
87
  updatedAt: string;
88
88
  tenantId: string;
89
89
  projectId: string;
90
- agentId: string;
91
90
  headersSchema: unknown;
92
91
  contextVariables: Record<string, ContextFetchDefinition> | null;
92
+ agentId: string;
93
93
  }>;
94
94
  //#endregion
95
95
  export { countContextConfigs, createContextConfig, deleteContextConfig, getContextConfigById, hasContextConfig, listContextConfigs, listContextConfigsPaginated, updateContextConfig, upsertContextConfig };
@@ -64,12 +64,12 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
64
64
  scopes: SubAgentScopeConfig;
65
65
  dataComponentId: string;
66
66
  }) => Promise<{
67
+ subAgentId: string;
67
68
  id: string;
68
69
  createdAt: string;
69
70
  tenantId: string;
70
71
  projectId: string;
71
72
  agentId: string;
72
- subAgentId: string;
73
73
  dataComponentId: string;
74
74
  }>;
75
75
  /**
@@ -106,12 +106,12 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
106
106
  scopes: SubAgentScopeConfig;
107
107
  dataComponentId: string;
108
108
  }) => Promise<{
109
+ subAgentId: string;
109
110
  id: string;
110
111
  createdAt: string;
111
112
  tenantId: string;
112
113
  projectId: string;
113
114
  agentId: string;
114
- subAgentId: string;
115
115
  dataComponentId: string;
116
116
  } | null>;
117
117
  /**
@@ -161,6 +161,7 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
161
161
  needsApproval?: boolean;
162
162
  }> | null;
163
163
  }) => Promise<{
164
+ subAgentId: string;
164
165
  id: string;
165
166
  createdAt: string;
166
167
  updatedAt: string;
@@ -170,7 +171,6 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
170
171
  toolPolicies: Record<string, {
171
172
  needsApproval?: boolean;
172
173
  }> | null;
173
- subAgentId: string;
174
174
  functionToolId: string;
175
175
  }>;
176
176
  /**
@@ -226,6 +226,7 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
226
226
  needsApproval?: boolean;
227
227
  }> | null;
228
228
  }) => Promise<{
229
+ subAgentId: string;
229
230
  id: string;
230
231
  createdAt: string;
231
232
  updatedAt: string;
@@ -235,7 +236,6 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
235
236
  toolPolicies: Record<string, {
236
237
  needsApproval?: boolean;
237
238
  }> | null;
238
- subAgentId: string;
239
239
  functionToolId: string;
240
240
  }>;
241
241
  //#endregion
@@ -8,6 +8,7 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
8
8
  scopes: SubAgentScopeConfig;
9
9
  relationId: string;
10
10
  }) => Promise<{
11
+ subAgentId: string;
11
12
  id: string;
12
13
  createdAt: string;
13
14
  updatedAt: string;
@@ -16,7 +17,6 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
16
17
  projectId: string;
17
18
  agentId: string;
18
19
  externalAgentId: string;
19
- subAgentId: string;
20
20
  } | undefined>;
21
21
  declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
22
22
  scopes: SubAgentScopeConfig;
@@ -43,6 +43,7 @@ declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClien
43
43
  declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
44
44
  scopes: SubAgentScopeConfig;
45
45
  }) => Promise<{
46
+ subAgentId: string;
46
47
  id: string;
47
48
  createdAt: string;
48
49
  updatedAt: string;
@@ -51,11 +52,11 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
51
52
  projectId: string;
52
53
  agentId: string;
53
54
  externalAgentId: string;
54
- subAgentId: string;
55
55
  }[]>;
56
56
  declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
57
57
  scopes: AgentScopeConfig;
58
58
  }) => Promise<{
59
+ subAgentId: string;
59
60
  id: string;
60
61
  createdAt: string;
61
62
  updatedAt: string;
@@ -64,7 +65,6 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
64
65
  projectId: string;
65
66
  agentId: string;
66
67
  externalAgentId: string;
67
- subAgentId: string;
68
68
  }[]>;
69
69
  declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
70
70
  scopes: AgentScopeConfig;
@@ -179,6 +179,7 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
179
179
  headers?: Record<string, string> | null;
180
180
  };
181
181
  }) => Promise<{
182
+ subAgentId: string;
182
183
  id: string;
183
184
  createdAt: string;
184
185
  updatedAt: string;
@@ -187,7 +188,6 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
187
188
  projectId: string;
188
189
  agentId: string;
189
190
  externalAgentId: string;
190
- subAgentId: string;
191
191
  }>;
192
192
  /**
193
193
  * Check if sub-agent external agent relation exists by params
@@ -196,6 +196,7 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
196
196
  scopes: SubAgentScopeConfig;
197
197
  externalAgentId: string;
198
198
  }) => Promise<{
199
+ subAgentId: string;
199
200
  id: string;
200
201
  createdAt: string;
201
202
  updatedAt: string;
@@ -204,7 +205,6 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
204
205
  projectId: string;
205
206
  agentId: string;
206
207
  externalAgentId: string;
207
- subAgentId: string;
208
208
  } | undefined>;
209
209
  /**
210
210
  * Upsert sub-agent external agent relation (create if it doesn't exist, update if it does)
@@ -217,6 +217,7 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
217
217
  headers?: Record<string, string> | null;
218
218
  };
219
219
  }) => Promise<{
220
+ subAgentId: string;
220
221
  id: string;
221
222
  createdAt: string;
222
223
  updatedAt: string;
@@ -225,7 +226,6 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
225
226
  projectId: string;
226
227
  agentId: string;
227
228
  externalAgentId: string;
228
- subAgentId: string;
229
229
  }>;
230
230
  declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
231
231
  scopes: SubAgentScopeConfig;
@@ -203,6 +203,7 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
203
203
  }> | null;
204
204
  };
205
205
  }) => Promise<{
206
+ subAgentId: string;
206
207
  id: string;
207
208
  createdAt: string;
208
209
  updatedAt: string;
@@ -211,11 +212,10 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
211
212
  projectId: string;
212
213
  agentId: string;
213
214
  toolId: string;
215
+ selectedTools: string[] | null;
214
216
  toolPolicies: Record<string, {
215
217
  needsApproval?: boolean;
216
218
  }> | null;
217
- subAgentId: string;
218
- selectedTools: string[] | null;
219
219
  }>;
220
220
  declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
221
221
  scopes: AgentScopeConfig;
@@ -247,6 +247,7 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
247
247
  scopes: SubAgentScopeConfig;
248
248
  relationId: string;
249
249
  }) => Promise<{
250
+ subAgentId: string;
250
251
  id: string;
251
252
  createdAt: string;
252
253
  updatedAt: string;
@@ -255,11 +256,10 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
255
256
  projectId: string;
256
257
  agentId: string;
257
258
  toolId: string;
259
+ selectedTools: string[] | null;
258
260
  toolPolicies: Record<string, {
259
261
  needsApproval?: boolean;
260
262
  }> | null;
261
- subAgentId: string;
262
- selectedTools: string[] | null;
263
263
  } | undefined>;
264
264
  declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
265
265
  scopes: SubAgentScopeConfig;
@@ -8,6 +8,7 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
8
8
  scopes: SubAgentScopeConfig;
9
9
  relationId: string;
10
10
  }) => Promise<{
11
+ subAgentId: string;
11
12
  id: string;
12
13
  createdAt: string;
13
14
  updatedAt: string;
@@ -15,7 +16,6 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
15
16
  tenantId: string;
16
17
  projectId: string;
17
18
  agentId: string;
18
- subAgentId: string;
19
19
  targetAgentId: string;
20
20
  } | undefined>;
21
21
  declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
@@ -43,6 +43,7 @@ declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =
43
43
  declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
44
44
  scopes: SubAgentScopeConfig;
45
45
  }) => Promise<{
46
+ subAgentId: string;
46
47
  id: string;
47
48
  createdAt: string;
48
49
  updatedAt: string;
@@ -50,12 +51,12 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
50
51
  tenantId: string;
51
52
  projectId: string;
52
53
  agentId: string;
53
- subAgentId: string;
54
54
  targetAgentId: string;
55
55
  }[]>;
56
56
  declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
57
57
  scopes: AgentScopeConfig;
58
58
  }) => Promise<{
59
+ subAgentId: string;
59
60
  id: string;
60
61
  createdAt: string;
61
62
  updatedAt: string;
@@ -63,7 +64,6 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
63
64
  tenantId: string;
64
65
  projectId: string;
65
66
  agentId: string;
66
- subAgentId: string;
67
67
  targetAgentId: string;
68
68
  }[]>;
69
69
  declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -209,6 +209,7 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
209
209
  headers?: Record<string, string> | null;
210
210
  };
211
211
  }) => Promise<{
212
+ subAgentId: string;
212
213
  id: string;
213
214
  createdAt: string;
214
215
  updatedAt: string;
@@ -216,7 +217,6 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
216
217
  tenantId: string;
217
218
  projectId: string;
218
219
  agentId: string;
219
- subAgentId: string;
220
220
  targetAgentId: string;
221
221
  }>;
222
222
  /**
@@ -226,6 +226,7 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
226
226
  scopes: SubAgentScopeConfig;
227
227
  targetAgentId: string;
228
228
  }) => Promise<{
229
+ subAgentId: string;
229
230
  id: string;
230
231
  createdAt: string;
231
232
  updatedAt: string;
@@ -233,7 +234,6 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
233
234
  tenantId: string;
234
235
  projectId: string;
235
236
  agentId: string;
236
- subAgentId: string;
237
237
  targetAgentId: string;
238
238
  } | undefined>;
239
239
  /**
@@ -247,6 +247,7 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
247
247
  headers?: Record<string, string> | null;
248
248
  };
249
249
  }) => Promise<{
250
+ subAgentId: string;
250
251
  id: string;
251
252
  createdAt: string;
252
253
  updatedAt: string;
@@ -254,7 +255,6 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
254
255
  tenantId: string;
255
256
  projectId: string;
256
257
  agentId: string;
257
- subAgentId: string;
258
258
  targetAgentId: string;
259
259
  }>;
260
260
  declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -13,10 +13,6 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
15
  description: string | null;
16
- tenantId: string;
17
- projectId: string;
18
- prompt: string | null;
19
- agentId: string;
20
16
  models: {
21
17
  base?: {
22
18
  model?: string | undefined;
@@ -34,6 +30,10 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
34
30
  stopWhen: {
35
31
  stepCountIs?: number | undefined;
36
32
  } | null;
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: {
@@ -44,10 +44,6 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
44
44
  createdAt: string;
45
45
  updatedAt: string;
46
46
  description: string | null;
47
- tenantId: string;
48
- projectId: string;
49
- prompt: string | null;
50
- agentId: string;
51
47
  models: {
52
48
  base?: {
53
49
  model?: string | undefined;
@@ -65,6 +61,10 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
65
61
  stopWhen: {
66
62
  stepCountIs?: number | undefined;
67
63
  } | null;
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: {
@@ -113,10 +113,6 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
113
113
  createdAt: string;
114
114
  updatedAt: string;
115
115
  description: string | null;
116
- tenantId: string;
117
- projectId: string;
118
- prompt: string | null;
119
- agentId: string;
120
116
  models: {
121
117
  base?: {
122
118
  model?: string | undefined;
@@ -134,6 +130,10 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
134
130
  stopWhen: {
135
131
  stepCountIs?: number | undefined;
136
132
  } | null;
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: {
@@ -22,15 +22,15 @@ 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;
26
+ description: string | null;
27
27
  tenantId: string;
28
28
  projectId: string;
29
+ credentialReferenceId: string | null;
29
30
  config: {
30
31
  type: "mcp";
31
32
  mcp: ToolMcpConfig;
32
33
  };
33
- credentialReferenceId: string | null;
34
34
  credentialScope: string;
35
35
  imageUrl: string | null;
36
36
  capabilities: ToolServerCapabilities | null;
@@ -80,15 +80,15 @@ 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;
84
+ description: string | null;
85
85
  tenantId: string;
86
86
  projectId: string;
87
+ credentialReferenceId: string | null;
87
88
  config: {
88
89
  type: "mcp";
89
90
  mcp: ToolMcpConfig;
90
91
  };
91
- credentialReferenceId: string | null;
92
92
  credentialScope: string;
93
93
  imageUrl: string | null;
94
94
  capabilities: ToolServerCapabilities | null;
@@ -133,6 +133,7 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
133
133
  needsApproval?: boolean;
134
134
  }> | null;
135
135
  }) => Promise<{
136
+ subAgentId: string;
136
137
  id: string;
137
138
  createdAt: string;
138
139
  updatedAt: string;
@@ -141,17 +142,17 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
141
142
  projectId: string;
142
143
  agentId: string;
143
144
  toolId: string;
145
+ selectedTools: string[] | null;
144
146
  toolPolicies: Record<string, {
145
147
  needsApproval?: boolean;
146
148
  }> | null;
147
- subAgentId: string;
148
- selectedTools: string[] | null;
149
149
  }>;
150
150
  declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
151
151
  scopes: AgentScopeConfig;
152
152
  subAgentId: string;
153
153
  toolId: string;
154
154
  }) => Promise<{
155
+ subAgentId: string;
155
156
  id: string;
156
157
  createdAt: string;
157
158
  updatedAt: string;
@@ -160,11 +161,10 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
160
161
  projectId: string;
161
162
  agentId: string;
162
163
  toolId: string;
164
+ selectedTools: string[] | null;
163
165
  toolPolicies: Record<string, {
164
166
  needsApproval?: boolean;
165
167
  }> | null;
166
- subAgentId: string;
167
- selectedTools: string[] | null;
168
168
  }>;
169
169
  /**
170
170
  * Upsert agent-tool relation (create if it doesn't exist, update if it does)
@@ -180,6 +180,7 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
180
180
  }> | null;
181
181
  relationId?: string;
182
182
  }) => Promise<{
183
+ subAgentId: string;
183
184
  id: string;
184
185
  createdAt: string;
185
186
  updatedAt: string;
@@ -188,11 +189,10 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
188
189
  projectId: string;
189
190
  agentId: string;
190
191
  toolId: string;
192
+ selectedTools: string[] | null;
191
193
  toolPolicies: Record<string, {
192
194
  needsApproval?: boolean;
193
195
  }> | null;
194
- subAgentId: string;
195
- selectedTools: string[] | null;
196
196
  }>;
197
197
  /**
198
198
  * Upsert a tool (create if it doesn't exist, update if it does)
@@ -204,15 +204,15 @@ 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;
208
+ description: string | null;
209
209
  tenantId: string;
210
210
  projectId: string;
211
+ credentialReferenceId: string | null;
211
212
  config: {
212
213
  type: "mcp";
213
214
  mcp: ToolMcpConfig;
214
215
  };
215
- credentialReferenceId: string | null;
216
216
  credentialScope: string;
217
217
  imageUrl: string | null;
218
218
  capabilities: ToolServerCapabilities | null;