@inkeep/agents-sdk 0.39.1 → 0.39.3

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/index.d.cts CHANGED
@@ -1,129 +1,132 @@
1
- import { ArtifactComponentInsert, MCPToolConfig as MCPToolConfig$1, DataComponentApiInsert, ArtifactComponentApiInsert, McpToolSelection, ToolPolicy, CredentialReferenceApiInsert, DataComponentInsert, FunctionToolConfig, SubAgentApiInsert, FullAgentDefinition, AgentConversationHistoryConfig, AgentStopWhen, ModelSettings, StatusUpdateSettings, ToolInsert, McpTransportConfig, StopWhen, FullProjectDefinition, StatusComponent as StatusComponent$1 } from '@inkeep/agents-core';
2
- export { ANTHROPIC_MODELS, FunctionToolConfig, GOOGLE_MODELS, ModelSettings, OPENAI_MODELS } from '@inkeep/agents-core';
3
- import { z } from 'zod';
1
+ import { ANTHROPIC_MODELS, AgentConversationHistoryConfig, AgentStopWhen, ArtifactComponentApiInsert, ArtifactComponentInsert, CredentialReferenceApiInsert, DataComponentApiInsert, DataComponentInsert, FullAgentDefinition, FullProjectDefinition, FunctionToolConfig, GOOGLE_MODELS, MCPToolConfig as MCPToolConfig$1, McpToolSelection, McpTransportConfig, ModelSettings, OPENAI_MODELS, StatusComponent as StatusComponent$1, StatusUpdateSettings, StopWhen, SubAgentApiInsert, ToolInsert, ToolPolicy } from "@inkeep/agents-core";
2
+ import { z } from "zod";
4
3
 
4
+ //#region src/artifact-component.d.ts
5
5
  type ArtifactComponentConfigWithZod = Omit<ArtifactComponentInsert, 'tenantId' | 'projectId' | 'props'> & {
6
- props?: Record<string, unknown> | z.ZodObject<any> | null;
6
+ props?: Record<string, unknown> | z.ZodObject<any> | null;
7
7
  };
8
8
  interface ArtifactComponentInterface {
9
- config: Omit<ArtifactComponentInsert, 'tenantId' | 'projectId'>;
10
- init(): Promise<void>;
11
- getId(): ArtifactComponentInsert['id'];
12
- getName(): ArtifactComponentInsert['name'];
13
- getDescription(): ArtifactComponentInsert['description'];
14
- getProps(): ArtifactComponentInsert['props'];
15
- setContext(tenantId: string, projectId: string, baseURL?: string): void;
9
+ config: Omit<ArtifactComponentInsert, 'tenantId' | 'projectId'>;
10
+ init(): Promise<void>;
11
+ getId(): ArtifactComponentInsert['id'];
12
+ getName(): ArtifactComponentInsert['name'];
13
+ getDescription(): ArtifactComponentInsert['description'];
14
+ getProps(): ArtifactComponentInsert['props'];
15
+ setContext(tenantId: string, projectId: string, baseURL?: string): void;
16
16
  }
17
17
  declare class ArtifactComponent implements ArtifactComponentInterface {
18
- config: Omit<ArtifactComponentInsert, 'tenantId' | 'projectId'>;
19
- private baseURL;
20
- private tenantId;
21
- private projectId;
22
- private initialized;
23
- private id;
24
- constructor(config: ArtifactComponentConfigWithZod);
25
- setContext(tenantId: string, projectId: string, baseURL?: string): void;
26
- getId(): string;
27
- getName(): string;
28
- getDescription(): string;
29
- getProps(): ArtifactComponentInsert['props'];
30
- init(): Promise<void>;
31
- private upsertArtifactComponent;
32
- }
33
-
18
+ config: Omit<ArtifactComponentInsert, 'tenantId' | 'projectId'>;
19
+ private baseURL;
20
+ private tenantId;
21
+ private projectId;
22
+ private initialized;
23
+ private id;
24
+ constructor(config: ArtifactComponentConfigWithZod);
25
+ setContext(tenantId: string, projectId: string, baseURL?: string): void;
26
+ getId(): string;
27
+ getName(): string;
28
+ getDescription(): string;
29
+ getProps(): ArtifactComponentInsert['props'];
30
+ init(): Promise<void>;
31
+ private upsertArtifactComponent;
32
+ }
33
+ //#endregion
34
+ //#region src/tool.d.ts
34
35
  interface ToolInterface {
35
- config: MCPToolConfig$1;
36
- init(): Promise<void>;
37
- getId(): string;
38
- getName(): string;
39
- getDescription(): string;
40
- getServerUrl(): string;
41
- getActiveTools(): string[] | undefined;
42
- getCredentialReferenceId(): string | null | undefined;
43
- with(config: AgentMcpConfigInput): AgentMcpConfig;
36
+ config: MCPToolConfig$1;
37
+ init(): Promise<void>;
38
+ getId(): string;
39
+ getName(): string;
40
+ getDescription(): string;
41
+ getServerUrl(): string;
42
+ getActiveTools(): string[] | undefined;
43
+ getCredentialReferenceId(): string | null | undefined;
44
+ with(config: AgentMcpConfigInput): AgentMcpConfig;
44
45
  }
45
46
  declare class Tool implements ToolInterface {
46
- config: MCPToolConfig$1;
47
- private baseURL;
48
- private tenantId;
49
- private initialized;
50
- private projectId;
51
- constructor(config: Omit<MCPToolConfig$1, 'tenantId' | 'projectId'>);
52
- setContext(tenantId: string, projectId: string, baseURL?: string): void;
53
- getId(): string;
54
- getName(): string;
55
- getDescription(): string;
56
- getServerUrl(): string;
57
- getActiveTools(): string[] | undefined;
58
- getCredentialReferenceId(): string | null | undefined;
59
- init(options?: {
60
- skipDatabaseRegistration?: boolean;
61
- }): Promise<void>;
62
- private upsertTool;
63
- /**
64
- * Creates a new AgentMcpConfig with the given configuration.
65
- *
66
- * @param config - The configuration for the AgentMcpConfig
67
- * @returns A new AgentMcpConfig
68
- *
69
- * example:
70
- * ```typescript
71
- * const tool = new Tool({
72
- * id: 'tool-id',
73
- * name: 'Tool Name',
74
- * serverUrl: 'https://example.com/mcp',
75
- * });
76
- * const agentMcpConfig = tool.with({ selectedTools: ['tool-1', 'tool-2'], headers: { 'Authorization': 'Bearer token' } });
77
- * ```
78
- */
79
- with(config: AgentMcpConfigInput): AgentMcpConfig;
80
- }
81
-
47
+ config: MCPToolConfig$1;
48
+ private baseURL;
49
+ private tenantId;
50
+ private initialized;
51
+ private projectId;
52
+ constructor(config: Omit<MCPToolConfig$1, 'tenantId' | 'projectId'>);
53
+ setContext(tenantId: string, projectId: string, baseURL?: string): void;
54
+ getId(): string;
55
+ getName(): string;
56
+ getDescription(): string;
57
+ getServerUrl(): string;
58
+ getActiveTools(): string[] | undefined;
59
+ getCredentialReferenceId(): string | null | undefined;
60
+ init(options?: {
61
+ skipDatabaseRegistration?: boolean;
62
+ }): Promise<void>;
63
+ private upsertTool;
64
+ /**
65
+ * Creates a new AgentMcpConfig with the given configuration.
66
+ *
67
+ * @param config - The configuration for the AgentMcpConfig
68
+ * @returns A new AgentMcpConfig
69
+ *
70
+ * example:
71
+ * ```typescript
72
+ * const tool = new Tool({
73
+ * id: 'tool-id',
74
+ * name: 'Tool Name',
75
+ * serverUrl: 'https://example.com/mcp',
76
+ * });
77
+ * const agentMcpConfig = tool.with({ selectedTools: ['tool-1', 'tool-2'], headers: { 'Authorization': 'Bearer token' } });
78
+ * ```
79
+ */
80
+ with(config: AgentMcpConfigInput): AgentMcpConfig;
81
+ }
82
+ //#endregion
83
+ //#region src/subAgent.d.ts
82
84
  declare class SubAgent implements SubAgentInterface {
83
- config: SubAgentConfig;
84
- readonly type: "internal";
85
- private baseURL;
86
- private tenantId;
87
- private projectId;
88
- private initialized;
89
- constructor(config: SubAgentConfig);
90
- setContext(tenantId: string, projectId: string, baseURL?: string): void;
91
- getId(): string;
92
- getName(): string;
93
- getInstructions(): string;
94
- /**
95
- * Get the agent's description (the human-readable description field)
96
- */
97
- getDescription(): string;
98
- getTools(): Record<string, AgentTool>;
99
- getModels(): typeof this$1.config.models;
100
- setModels(models: typeof this$1.config.models): void;
101
- getTransfers(): SubAgentInterface[];
102
- getSubAgentDelegates(): SubAgentInterface[];
103
- getExternalAgentDelegates(): subAgentExternalAgentInterface[];
104
- getTeamAgentDelegates(): subAgentTeamAgentInterface[];
105
- getDelegates(): AllDelegateOutputInterface[];
106
- getDataComponents(): DataComponentApiInsert[];
107
- getArtifactComponents(): ArtifactComponentApiInsert[];
108
- addTool(_name: string, tool: Tool): void;
109
- addTransfer(...agents: SubAgentInterface[]): void;
110
- addDelegate(...agents: AllDelegateInputInterface[]): void;
111
- init(): Promise<void>;
112
- private upsertAgent;
113
- private saveToolsAndRelations;
114
- private saveDataComponents;
115
- private saveArtifactComponents;
116
- private loadDataComponents;
117
- private loadArtifactComponents;
118
- private createFunctionTool;
119
- private createTool;
120
- private createDataComponent;
121
- private createArtifactComponent;
122
- private createAgentDataComponentRelation;
123
- private createAgentArtifactComponentRelation;
124
- private createAgentToolRelation;
125
- }
126
-
85
+ config: SubAgentConfig;
86
+ readonly type: "internal";
87
+ private baseURL;
88
+ private tenantId;
89
+ private projectId;
90
+ private initialized;
91
+ constructor(config: SubAgentConfig);
92
+ setContext(tenantId: string, projectId: string, baseURL?: string): void;
93
+ getId(): string;
94
+ getName(): string;
95
+ getInstructions(): string;
96
+ /**
97
+ * Get the agent's description (the human-readable description field)
98
+ */
99
+ getDescription(): string;
100
+ getTools(): Record<string, AgentTool>;
101
+ getModels(): typeof this.config.models;
102
+ setModels(models: typeof this.config.models): void;
103
+ getTransfers(): SubAgentInterface[];
104
+ getSubAgentDelegates(): SubAgentInterface[];
105
+ getExternalAgentDelegates(): subAgentExternalAgentInterface[];
106
+ getTeamAgentDelegates(): subAgentTeamAgentInterface[];
107
+ getDelegates(): AllDelegateOutputInterface[];
108
+ getDataComponents(): DataComponentApiInsert[];
109
+ getArtifactComponents(): ArtifactComponentApiInsert[];
110
+ addTool(_name: string, tool: Tool): void;
111
+ addTransfer(...agents: SubAgentInterface[]): void;
112
+ addDelegate(...agents: AllDelegateInputInterface[]): void;
113
+ init(): Promise<void>;
114
+ private upsertAgent;
115
+ private saveToolsAndRelations;
116
+ private saveDataComponents;
117
+ private saveArtifactComponents;
118
+ private loadDataComponents;
119
+ private loadArtifactComponents;
120
+ private createFunctionTool;
121
+ private createTool;
122
+ private createDataComponent;
123
+ private createArtifactComponent;
124
+ private createAgentDataComponentRelation;
125
+ private createAgentArtifactComponentRelation;
126
+ private createAgentToolRelation;
127
+ }
128
+ //#endregion
129
+ //#region src/builders.d.ts
127
130
  /**
128
131
  * Function signature for transfer conditions
129
132
  */
@@ -132,60 +135,60 @@ type TransferConditionFunction = (context: unknown) => boolean;
132
135
  * Configuration for MCP server builders
133
136
  */
134
137
  interface MCPServerConfig {
135
- name: string;
136
- description: string;
137
- serverUrl: string;
138
- id?: string;
139
- parameters?: Record<string, z.ZodJSONSchema>;
140
- credential?: CredentialReferenceApiInsert;
141
- transport?: 'streamable_http' | 'sse';
142
- activeTools?: string[];
143
- headers?: Record<string, string>;
144
- imageUrl?: string;
138
+ name: string;
139
+ description: string;
140
+ serverUrl: string;
141
+ id?: string;
142
+ parameters?: Record<string, z.ZodJSONSchema>;
143
+ credential?: CredentialReferenceApiInsert;
144
+ transport?: 'streamable_http' | 'sse';
145
+ activeTools?: string[];
146
+ headers?: Record<string, string>;
147
+ imageUrl?: string;
145
148
  }
146
149
  /**
147
150
  * Configuration for component builders
148
151
  */
149
152
  interface ComponentConfig {
150
- id?: string;
151
- name: string;
152
- description: string;
153
+ id?: string;
154
+ name: string;
155
+ description: string;
153
156
  }
154
157
  interface ArtifactComponentConfig extends ComponentConfig {
155
- props: Record<string, unknown> | z.ZodObject<any>;
158
+ props: Record<string, unknown> | z.ZodObject<any>;
156
159
  }
157
160
  interface DataComponentConfig extends ComponentConfig {
158
- props: Record<string, unknown> | z.ZodObject<any>;
159
- render?: {
160
- component: string;
161
- mockData: Record<string, unknown>;
162
- };
161
+ props: Record<string, unknown> | z.ZodObject<any>;
162
+ render?: {
163
+ component: string;
164
+ mockData: Record<string, unknown>;
165
+ };
163
166
  }
164
167
  interface StatusComponentConfig {
165
- type: string;
166
- description?: string;
167
- detailsSchema?: Record<string, unknown> | z.ZodObject<any>;
168
+ type: string;
169
+ description?: string;
170
+ detailsSchema?: Record<string, unknown> | z.ZodObject<any>;
168
171
  }
169
172
  type AgentMcpConfig = {
170
- server: Tool;
171
- selectedTools?: string[];
172
- headers?: Record<string, string>;
173
- toolPolicies?: Record<string, ToolPolicy>;
173
+ server: Tool;
174
+ selectedTools?: string[];
175
+ headers?: Record<string, string>;
176
+ toolPolicies?: Record<string, ToolPolicy>;
174
177
  };
175
178
  /**
176
179
  * Input configuration for MCP tool customization
177
180
  * Supports flexible tool selection with per-tool policies
178
181
  */
179
182
  type AgentMcpConfigInput = {
180
- /**
181
- * Tools to enable from the MCP server - can be strings or objects with policies
182
- * - undefined or null: all tools enabled (no filtering)
183
- * - []: zero tools enabled (explicit empty selection)
184
- * - ['tool1', 'tool2']: specific tools enabled
185
- */
186
- selectedTools?: McpToolSelection[] | null;
187
- /** Custom headers for MCP server requests */
188
- headers?: Record<string, string>;
183
+ /**
184
+ * Tools to enable from the MCP server - can be strings or objects with policies
185
+ * - undefined or null: all tools enabled (no filtering)
186
+ * - []: zero tools enabled (explicit empty selection)
187
+ * - ['tool1', 'tool2']: specific tools enabled
188
+ */
189
+ selectedTools?: McpToolSelection[] | null;
190
+ /** Custom headers for MCP server requests */
191
+ headers?: Record<string, string>;
189
192
  };
190
193
  /**
191
194
  * Creates a transfer configuration for agent transfers.
@@ -212,86 +215,88 @@ type AgentMcpConfigInput = {
212
215
  * ```
213
216
  */
214
217
  declare function transfer(targetAgent: SubAgent, description?: string, condition?: TransferConditionFunction): TransferConfig;
215
-
218
+ //#endregion
219
+ //#region src/data-component.d.ts
216
220
  type DataComponentConfigWithZod = Omit<DataComponentInsert, 'tenantId' | 'projectId' | 'props' | 'render'> & {
217
- props?: Record<string, unknown> | z.ZodObject<any> | null;
218
- render?: {
219
- component: string;
220
- mockData: Record<string, unknown>;
221
- } | null;
221
+ props?: Record<string, unknown> | z.ZodObject<any> | null;
222
+ render?: {
223
+ component: string;
224
+ mockData: Record<string, unknown>;
225
+ } | null;
222
226
  };
223
227
  interface DataComponentInterface {
224
- config: Omit<DataComponentInsert, 'tenantId' | 'projectId'>;
225
- init(): Promise<void>;
226
- getId(): DataComponentInsert['id'];
227
- getName(): DataComponentInsert['name'];
228
- getDescription(): DataComponentInsert['description'];
229
- getProps(): DataComponentInsert['props'];
230
- setContext(tenantId: string, projectId: string, baseURL?: string): void;
228
+ config: Omit<DataComponentInsert, 'tenantId' | 'projectId'>;
229
+ init(): Promise<void>;
230
+ getId(): DataComponentInsert['id'];
231
+ getName(): DataComponentInsert['name'];
232
+ getDescription(): DataComponentInsert['description'];
233
+ getProps(): DataComponentInsert['props'];
234
+ setContext(tenantId: string, projectId: string, baseURL?: string): void;
231
235
  }
232
236
  declare class DataComponent implements DataComponentInterface {
233
- config: Omit<DataComponentInsert, 'tenantId' | 'projectId'>;
234
- private baseURL;
235
- private tenantId;
236
- private projectId;
237
- private initialized;
238
- private id;
239
- constructor(config: DataComponentConfigWithZod);
240
- setContext(tenantId: string, projectId: string, baseURL?: string): void;
241
- getId(): string;
242
- getName(): string;
243
- getDescription(): string;
244
- getProps(): DataComponentInsert['props'];
245
- getRender(): DataComponentInsert['render'];
246
- init(): Promise<void>;
247
- private upsertDataComponent;
248
- }
249
-
237
+ config: Omit<DataComponentInsert, 'tenantId' | 'projectId'>;
238
+ private baseURL;
239
+ private tenantId;
240
+ private projectId;
241
+ private initialized;
242
+ private id;
243
+ constructor(config: DataComponentConfigWithZod);
244
+ setContext(tenantId: string, projectId: string, baseURL?: string): void;
245
+ getId(): string;
246
+ getName(): string;
247
+ getDescription(): string;
248
+ getProps(): DataComponentInsert['props'];
249
+ getRender(): DataComponentInsert['render'];
250
+ init(): Promise<void>;
251
+ private upsertDataComponent;
252
+ }
253
+ //#endregion
254
+ //#region src/external-agent.d.ts
250
255
  type ExternalAgentConfig = {
251
- type?: 'external';
252
- id: string;
253
- name: string;
254
- description: string;
255
- baseUrl: string;
256
- credentialReference?: CredentialReferenceApiInsert;
256
+ type?: 'external';
257
+ id: string;
258
+ name: string;
259
+ description: string;
260
+ baseUrl: string;
261
+ credentialReference?: CredentialReferenceApiInsert;
257
262
  };
258
263
  declare class ExternalAgent implements ExternalAgentInterface {
259
- config: ExternalAgentConfig;
260
- readonly type: "external";
261
- private initialized;
262
- private tenantId;
263
- private projectId;
264
- private baseURL;
265
- constructor(config: ExternalAgentConfig);
266
- /**
267
- * Initialize the external agent by upserting it in the database
268
- */
269
- init(): Promise<void>;
270
- setContext(tenantId: string, projectId: string): void;
271
- getId(): string;
272
- with(options: {
273
- headers?: Record<string, string>;
274
- }): subAgentExternalAgentInterface;
275
- private upsertExternalAgent;
276
- /**
277
- * Get the external agent configuration
278
- */
279
- getConfig(): ExternalAgentConfig;
280
- /**
281
- * Get the external agent name
282
- */
283
- getName(): string;
284
- /**
285
- * Get the external agent base URL
286
- */
287
- getBaseUrl(): string;
288
- /**
289
- * Get the tenant ID
290
- */
291
- getTenantId(): string;
292
- getDescription(): string;
293
- getCredentialReferenceId(): string | undefined;
294
- getCredentialReference(): CredentialReferenceApiInsert | undefined;
264
+ config: ExternalAgentConfig;
265
+ readonly type: "external";
266
+ private initialized;
267
+ private tenantId;
268
+ private projectId;
269
+ private baseURL;
270
+ constructor(config: ExternalAgentConfig);
271
+ /**
272
+ * Initialize the external agent by upserting it in the database
273
+ */
274
+ init(): Promise<void>;
275
+ setContext(tenantId: string, projectId: string): void;
276
+ getId(): string;
277
+ with(options: {
278
+ headers?: Record<string, string>;
279
+ }): subAgentExternalAgentInterface;
280
+ private upsertExternalAgent;
281
+ /**
282
+ * Get the external agent configuration
283
+ */
284
+ getConfig(): ExternalAgentConfig;
285
+ /**
286
+ * Get the external agent name
287
+ */
288
+ getName(): string;
289
+ /**
290
+ * Get the external agent base URL
291
+ */
292
+ getBaseUrl(): string;
293
+ /**
294
+ * Get the tenant ID
295
+ */
296
+ getTenantId(): string;
297
+ getDescription(): string;
298
+ getCredentialReferenceId(): string | undefined;
299
+ getCredentialReference(): CredentialReferenceApiInsert | undefined;
295
300
  }
296
301
  /**
297
302
  * Factory function to create external agents - follows the same pattern as agent()
@@ -301,545 +306,547 @@ declare function externalAgent(config: ExternalAgentConfig): ExternalAgent;
301
306
  * Helper function to create multiple external agents
302
307
  */
303
308
  declare function externalAgents(configs: Record<string, ExternalAgentConfig>): Record<string, ExternalAgent>;
304
-
309
+ //#endregion
310
+ //#region src/function-tool.d.ts
305
311
  interface FunctionToolInterface {
306
- config: FunctionToolConfig;
307
- getId(): string;
308
- getName(): string;
309
- getDescription(): string;
310
- getInputSchema(): Record<string, unknown>;
311
- getDependencies(): Record<string, string>;
312
- getExecuteFunction(): (params: any) => Promise<any>;
312
+ config: FunctionToolConfig;
313
+ getId(): string;
314
+ getName(): string;
315
+ getDescription(): string;
316
+ getInputSchema(): Record<string, unknown>;
317
+ getDependencies(): Record<string, string>;
318
+ getExecuteFunction(): (params: any) => Promise<any>;
313
319
  }
314
320
  declare class FunctionTool implements FunctionToolInterface {
315
- config: FunctionToolConfig;
316
- private id;
317
- constructor(config: FunctionToolConfig);
318
- getId(): string;
319
- getName(): string;
320
- getDescription(): string;
321
- getInputSchema(): Record<string, unknown>;
322
- getDependencies(): Record<string, string>;
323
- getExecuteFunction(): (params: any) => Promise<any>;
324
- serializeFunction(): {
325
- id: string;
326
- inputSchema: Record<string, unknown>;
327
- executeCode: string;
328
- dependencies: Record<string, string>;
329
- };
330
- serializeTool(): {
331
- id: string;
332
- name: string;
333
- description: string;
334
- functionId: string;
335
- };
336
- }
337
-
338
- interface ArtifactComponentWithZodProps {
321
+ config: FunctionToolConfig;
322
+ private id;
323
+ constructor(config: FunctionToolConfig);
324
+ getId(): string;
325
+ getName(): string;
326
+ getDescription(): string;
327
+ getInputSchema(): Record<string, unknown>;
328
+ getDependencies(): Record<string, string>;
329
+ getExecuteFunction(): (params: any) => Promise<any>;
330
+ serializeFunction(): {
331
+ id: string;
332
+ inputSchema: Record<string, unknown>;
333
+ executeCode: string;
334
+ dependencies: Record<string, string>;
335
+ };
336
+ serializeTool(): {
339
337
  id: string;
340
338
  name: string;
341
339
  description: string;
342
- props?: z.ZodObject<any>;
340
+ functionId: string;
341
+ };
342
+ }
343
+ //#endregion
344
+ //#region src/types.d.ts
345
+ interface ArtifactComponentWithZodProps {
346
+ id: string;
347
+ name: string;
348
+ description: string;
349
+ props?: z.ZodObject<any>;
343
350
  }
344
351
  interface DataComponentWithZodProps {
345
- id: string;
346
- name: string;
347
- description: string;
348
- props?: z.ZodObject<any>;
352
+ id: string;
353
+ name: string;
354
+ description: string;
355
+ props?: z.ZodObject<any>;
349
356
  }
350
-
351
357
  /**
352
358
  * Tool instance that may have additional metadata attached during agent processing
353
359
  */
354
360
  type AgentTool = (Tool & {
355
- selectedTools?: string[];
356
- headers?: Record<string, string>;
357
- toolPolicies?: Record<string, ToolPolicy>;
361
+ selectedTools?: string[];
362
+ headers?: Record<string, string>;
363
+ toolPolicies?: Record<string, ToolPolicy>;
358
364
  }) | (FunctionTool & {
359
- selectedTools?: string[];
360
- headers?: Record<string, string>;
361
- toolPolicies?: Record<string, ToolPolicy>;
365
+ selectedTools?: string[];
366
+ headers?: Record<string, string>;
367
+ toolPolicies?: Record<string, ToolPolicy>;
362
368
  });
363
369
  interface UserMessage {
364
- role: 'user';
365
- content: string;
370
+ role: 'user';
371
+ content: string;
366
372
  }
367
373
  interface AssistantMessage {
368
- role: 'assistant';
369
- content: string;
370
- toolCalls?: ToolCall[];
374
+ role: 'assistant';
375
+ content: string;
376
+ toolCalls?: ToolCall[];
371
377
  }
372
378
  interface ToolMessage {
373
- role: 'tool';
374
- content: string;
375
- toolCallId: string;
379
+ role: 'tool';
380
+ content: string;
381
+ toolCallId: string;
376
382
  }
377
383
  interface SystemMessage {
378
- role: 'system';
379
- content: string;
384
+ role: 'system';
385
+ content: string;
380
386
  }
381
387
  type Message = UserMessage | AssistantMessage | ToolMessage | SystemMessage;
382
388
  type MessageInput = string | string[] | Message | Message[];
383
389
  interface ToolCall {
384
- id: string;
385
- type: 'function';
386
- function: {
387
- name: string;
388
- arguments: string;
389
- };
390
+ id: string;
391
+ type: 'function';
392
+ function: {
393
+ name: string;
394
+ arguments: string;
395
+ };
390
396
  }
391
397
  interface ToolResult {
392
- id: string;
393
- result: any;
394
- error?: string;
398
+ id: string;
399
+ result: any;
400
+ error?: string;
395
401
  }
396
402
  type AllDelegateInputInterface = SubAgentInterface | subAgentExternalAgentInterface | ExternalAgentInterface | AgentInterface | subAgentTeamAgentInterface;
397
403
  type AllDelegateOutputInterface = SubAgentInterface | subAgentExternalAgentInterface | subAgentTeamAgentInterface;
398
404
  type SubAgentCanUseType = Tool | AgentMcpConfig | FunctionTool;
399
405
  interface SubAgentConfig extends Omit<SubAgentApiInsert, 'projectId'> {
400
- type?: 'internal';
401
- canUse?: () => SubAgentCanUseType[];
402
- canTransferTo?: () => SubAgentInterface[];
403
- canDelegateTo?: () => AllDelegateInputInterface[];
404
- dataComponents?: () => (DataComponentApiInsert | DataComponentInterface | DataComponentWithZodProps)[];
405
- artifactComponents?: () => (ArtifactComponentApiInsert | ArtifactComponentInterface | ArtifactComponentWithZodProps)[];
406
- conversationHistoryConfig?: AgentConversationHistoryConfig;
406
+ type?: 'internal';
407
+ canUse?: () => SubAgentCanUseType[];
408
+ canTransferTo?: () => SubAgentInterface[];
409
+ canDelegateTo?: () => AllDelegateInputInterface[];
410
+ dataComponents?: () => (DataComponentApiInsert | DataComponentInterface | DataComponentWithZodProps)[];
411
+ artifactComponents?: () => (ArtifactComponentApiInsert | ArtifactComponentInterface | ArtifactComponentWithZodProps)[];
412
+ conversationHistoryConfig?: AgentConversationHistoryConfig;
407
413
  }
408
414
  interface ToolConfig extends ToolInsert {
409
- execute: (params: any) => Promise<any>;
410
- parameters?: Record<string, any>;
411
- schema?: z.ZodJSONSchema;
415
+ execute: (params: any) => Promise<any>;
416
+ parameters?: Record<string, any>;
417
+ schema?: z.ZodJSONSchema;
412
418
  }
413
419
  interface ServerConfig {
414
- type: string;
415
- version?: string;
420
+ type: string;
421
+ version?: string;
416
422
  }
417
423
  interface MCPToolConfig {
418
- id: string;
419
- name: string;
420
- tenantId?: string;
421
- description?: string;
422
- credential?: CredentialReferenceApiInsert;
423
- server?: ServerConfig;
424
- serverUrl: string;
425
- toolName?: string;
426
- activeTools?: string[];
427
- headers?: Record<string, string>;
428
- mcpType?: 'nango' | 'generic';
429
- transport?: McpTransportConfig;
430
- imageUrl?: string;
424
+ id: string;
425
+ name: string;
426
+ tenantId?: string;
427
+ description?: string;
428
+ credential?: CredentialReferenceApiInsert;
429
+ server?: ServerConfig;
430
+ serverUrl: string;
431
+ toolName?: string;
432
+ activeTools?: string[];
433
+ headers?: Record<string, string>;
434
+ mcpType?: 'nango' | 'generic';
435
+ transport?: McpTransportConfig;
436
+ imageUrl?: string;
431
437
  }
432
438
  interface FetchDefinitionConfig {
433
- id: string;
434
- name?: string;
435
- trigger: 'initialization' | 'invocation';
436
- url: string;
437
- method?: string;
438
- headers?: Record<string, string>;
439
- body?: Record<string, unknown>;
440
- transform?: string;
441
- responseSchema?: z.ZodSchema<any>;
442
- defaultValue?: unknown;
443
- timeout?: number;
444
- credential?: CredentialReferenceApiInsert;
439
+ id: string;
440
+ name?: string;
441
+ trigger: 'initialization' | 'invocation';
442
+ url: string;
443
+ method?: string;
444
+ headers?: Record<string, string>;
445
+ body?: Record<string, unknown>;
446
+ transform?: string;
447
+ responseSchema?: z.ZodSchema<any>;
448
+ defaultValue?: unknown;
449
+ timeout?: number;
450
+ credential?: CredentialReferenceApiInsert;
445
451
  }
446
-
447
452
  interface RequestSchemaDefinition {
448
- body?: z.ZodSchema<any>;
449
- headers?: z.ZodSchema<any>;
450
- query?: z.ZodSchema<any>;
451
- params?: z.ZodSchema<any>;
453
+ body?: z.ZodSchema<any>;
454
+ headers?: z.ZodSchema<any>;
455
+ query?: z.ZodSchema<any>;
456
+ params?: z.ZodSchema<any>;
452
457
  }
453
458
  interface RequestSchemaConfig {
454
- schemas: RequestSchemaDefinition;
455
- optional?: ('body' | 'headers' | 'query' | 'params')[];
459
+ schemas: RequestSchemaDefinition;
460
+ optional?: ('body' | 'headers' | 'query' | 'params')[];
456
461
  }
457
462
  interface TransferConfig {
458
- agent: SubAgentInterface;
459
- description?: string;
460
- condition?: (context: any) => boolean;
463
+ agent: SubAgentInterface;
464
+ description?: string;
465
+ condition?: (context: any) => boolean;
461
466
  }
462
467
  interface GenerateOptions {
463
- maxTurns?: number;
464
- maxSteps?: number;
465
- temperature?: number;
466
- toolChoice?: 'auto' | 'none' | string;
467
- resourceId?: string;
468
- conversationId?: string;
469
- stream?: boolean;
470
- customBodyParams?: Record<string, unknown>;
468
+ maxTurns?: number;
469
+ maxSteps?: number;
470
+ temperature?: number;
471
+ toolChoice?: 'auto' | 'none' | string;
472
+ resourceId?: string;
473
+ conversationId?: string;
474
+ stream?: boolean;
475
+ customBodyParams?: Record<string, unknown>;
471
476
  }
472
477
  interface AgentResponse {
473
- id?: string;
474
- text: string;
475
- toolCalls?: ToolCall[];
476
- transfer?: TransferConfig;
477
- finishReason: 'completed' | 'tool_calls' | 'transfer' | 'max_turns' | 'error';
478
- usage?: {
479
- inputTokens: number;
480
- outputTokens: number;
481
- totalTokens?: number;
482
- };
483
- metadata?: Record<string, any>;
478
+ id?: string;
479
+ text: string;
480
+ toolCalls?: ToolCall[];
481
+ transfer?: TransferConfig;
482
+ finishReason: 'completed' | 'tool_calls' | 'transfer' | 'max_turns' | 'error';
483
+ usage?: {
484
+ inputTokens: number;
485
+ outputTokens: number;
486
+ totalTokens?: number;
487
+ };
488
+ metadata?: Record<string, any>;
484
489
  }
485
490
  interface StreamResponse {
486
- textStream?: AsyncGenerator<string>;
487
- eventStream?: AsyncGenerator<StreamEvent>;
491
+ textStream?: AsyncGenerator<string>;
492
+ eventStream?: AsyncGenerator<StreamEvent>;
488
493
  }
489
494
  interface StreamEvent {
490
- type: 'text' | 'tool_call' | 'transfer' | 'error' | 'done';
491
- data: any;
492
- timestamp: Date;
495
+ type: 'text' | 'tool_call' | 'transfer' | 'error' | 'done';
496
+ data: any;
497
+ timestamp: Date;
493
498
  }
494
499
  interface RunResult {
495
- finalOutput: string;
496
- agent: SubAgentInterface;
497
- turnCount: number;
498
- usage?: {
499
- inputTokens: number;
500
- outputTokens: number;
501
- totalTokens?: number;
502
- };
503
- metadata?: {
504
- toolCalls: ToolCall[];
505
- transfers: TransferConfig[];
506
- };
500
+ finalOutput: string;
501
+ agent: SubAgentInterface;
502
+ turnCount: number;
503
+ usage?: {
504
+ inputTokens: number;
505
+ outputTokens: number;
506
+ totalTokens?: number;
507
+ };
508
+ metadata?: {
509
+ toolCalls: ToolCall[];
510
+ transfers: TransferConfig[];
511
+ };
507
512
  }
508
513
  interface AgentConfig {
509
- id: string;
510
- name?: string;
511
- description?: string;
512
- defaultSubAgent: SubAgentInterface;
513
- subAgents?: () => SubAgentInterface[];
514
- contextConfig?: any;
515
- credentials?: () => CredentialReferenceApiInsert[];
516
- stopWhen?: AgentStopWhen;
517
- prompt?: string;
518
- models?: {
519
- base?: ModelSettings;
520
- structuredOutput?: ModelSettings;
521
- summarizer?: ModelSettings;
522
- };
523
- statusUpdates?: StatusUpdateSettings;
514
+ id: string;
515
+ name?: string;
516
+ description?: string;
517
+ defaultSubAgent: SubAgentInterface;
518
+ subAgents?: () => SubAgentInterface[];
519
+ contextConfig?: any;
520
+ credentials?: () => CredentialReferenceApiInsert[];
521
+ stopWhen?: AgentStopWhen;
522
+ prompt?: string;
523
+ models?: {
524
+ base?: ModelSettings;
525
+ structuredOutput?: ModelSettings;
526
+ summarizer?: ModelSettings;
527
+ };
528
+ statusUpdates?: StatusUpdateSettings;
524
529
  }
525
530
  declare class AgentError extends Error {
526
- code?: string | undefined;
527
- details?: any | undefined;
528
- constructor(message: string, code?: string | undefined, details?: any | undefined);
531
+ code?: string | undefined;
532
+ details?: any | undefined;
533
+ constructor(message: string, code?: string | undefined, details?: any | undefined);
529
534
  }
530
535
  declare class MaxTurnsExceededError extends AgentError {
531
- constructor(maxTurns: number);
536
+ constructor(maxTurns: number);
532
537
  }
533
538
  declare class ToolExecutionError extends AgentError {
534
- constructor(toolName: string, originalError: Error);
539
+ constructor(toolName: string, originalError: Error);
535
540
  }
536
541
  declare class TransferError extends AgentError {
537
- constructor(sourceAgent: string, targetAgent: string, reason: string);
542
+ constructor(sourceAgent: string, targetAgent: string, reason: string);
538
543
  }
539
544
  interface SubAgentInterface {
540
- config: SubAgentConfig;
541
- type: 'internal';
542
- init(): Promise<void>;
543
- getId(): string;
544
- getName(): string;
545
- getDescription(): string;
546
- getInstructions(): string;
547
- getTools(): Record<string, AgentTool>;
548
- getTransfers(): SubAgentInterface[];
549
- getDelegates(): AllDelegateOutputInterface[];
550
- getSubAgentDelegates(): SubAgentInterface[];
551
- getExternalAgentDelegates(): subAgentExternalAgentInterface[];
552
- getDataComponents(): DataComponentApiInsert[];
553
- getArtifactComponents(): ArtifactComponentApiInsert[];
554
- setContext(tenantId: string, projectId: string, baseURL?: string): void;
555
- addTool(name: string, tool: any): void;
556
- addTransfer(...agents: SubAgentInterface[]): void;
557
- addDelegate(...agents: AllDelegateInputInterface[]): void;
545
+ config: SubAgentConfig;
546
+ type: 'internal';
547
+ init(): Promise<void>;
548
+ getId(): string;
549
+ getName(): string;
550
+ getDescription(): string;
551
+ getInstructions(): string;
552
+ getTools(): Record<string, AgentTool>;
553
+ getTransfers(): SubAgentInterface[];
554
+ getDelegates(): AllDelegateOutputInterface[];
555
+ getSubAgentDelegates(): SubAgentInterface[];
556
+ getExternalAgentDelegates(): subAgentExternalAgentInterface[];
557
+ getDataComponents(): DataComponentApiInsert[];
558
+ getArtifactComponents(): ArtifactComponentApiInsert[];
559
+ setContext(tenantId: string, projectId: string, baseURL?: string): void;
560
+ addTool(name: string, tool: any): void;
561
+ addTransfer(...agents: SubAgentInterface[]): void;
562
+ addDelegate(...agents: AllDelegateInputInterface[]): void;
558
563
  }
559
564
  interface ExternalAgentInterface {
560
- config: ExternalAgentConfig;
561
- type: 'external';
562
- init(): Promise<void>;
563
- getId(): string;
564
- getName(): string;
565
- getDescription(): string;
566
- getBaseUrl(): string;
567
- setContext?(tenantId: string, projectId: string): void;
568
- with(options: {
569
- headers?: Record<string, string>;
570
- }): subAgentExternalAgentInterface;
571
- getCredentialReferenceId(): string | undefined;
572
- getCredentialReference(): CredentialReferenceApiInsert | undefined;
565
+ config: ExternalAgentConfig;
566
+ type: 'external';
567
+ init(): Promise<void>;
568
+ getId(): string;
569
+ getName(): string;
570
+ getDescription(): string;
571
+ getBaseUrl(): string;
572
+ setContext?(tenantId: string, projectId: string): void;
573
+ with(options: {
574
+ headers?: Record<string, string>;
575
+ }): subAgentExternalAgentInterface;
576
+ getCredentialReferenceId(): string | undefined;
577
+ getCredentialReference(): CredentialReferenceApiInsert | undefined;
573
578
  }
574
579
  type subAgentExternalAgentInterface = {
575
- externalAgent: ExternalAgentInterface;
576
- headers?: Record<string, string>;
580
+ externalAgent: ExternalAgentInterface;
581
+ headers?: Record<string, string>;
577
582
  };
578
583
  type subAgentTeamAgentInterface = {
579
- agent: AgentInterface;
580
- headers?: Record<string, string>;
584
+ agent: AgentInterface;
585
+ headers?: Record<string, string>;
581
586
  };
582
587
  interface AgentInterface {
583
- init(): Promise<void>;
584
- setConfig(tenantId: string, projectId: string, apiUrl: string): void;
585
- getId(): string;
586
- getName(): string;
587
- getDescription(): string | undefined;
588
- getTenantId(): string;
589
- generate(input: MessageInput, options?: GenerateOptions): Promise<string>;
590
- stream(input: MessageInput, options?: GenerateOptions): Promise<StreamResponse>;
591
- generateStream(input: MessageInput, options?: GenerateOptions): Promise<StreamResponse>;
592
- getDefaultSubAgent(): SubAgentInterface | undefined;
593
- getSubAgent(name: string): SubAgentInterface | undefined;
594
- getSubAgents(): SubAgentInterface[];
595
- toFullAgentDefinition(): Promise<FullAgentDefinition>;
596
- with(options: {
597
- headers?: Record<string, string>;
598
- }): subAgentTeamAgentInterface;
588
+ init(): Promise<void>;
589
+ setConfig(tenantId: string, projectId: string, apiUrl: string): void;
590
+ getId(): string;
591
+ getName(): string;
592
+ getDescription(): string | undefined;
593
+ getTenantId(): string;
594
+ generate(input: MessageInput, options?: GenerateOptions): Promise<string>;
595
+ stream(input: MessageInput, options?: GenerateOptions): Promise<StreamResponse>;
596
+ generateStream(input: MessageInput, options?: GenerateOptions): Promise<StreamResponse>;
597
+ getDefaultSubAgent(): SubAgentInterface | undefined;
598
+ getSubAgent(name: string): SubAgentInterface | undefined;
599
+ getSubAgents(): SubAgentInterface[];
600
+ toFullAgentDefinition(): Promise<FullAgentDefinition>;
601
+ with(options: {
602
+ headers?: Record<string, string>;
603
+ }): subAgentTeamAgentInterface;
599
604
  }
600
605
  interface BuilderToolConfig {
601
- name: string;
602
- description: string;
603
- config: {
604
- type: 'mcp';
605
- mcp: {
606
- server: {
607
- url: string;
608
- };
609
- };
606
+ name: string;
607
+ description: string;
608
+ config: {
609
+ type: 'mcp';
610
+ mcp: {
611
+ server: {
612
+ url: string;
613
+ };
610
614
  };
611
- parameters?: Record<string, any>;
615
+ };
616
+ parameters?: Record<string, any>;
612
617
  }
613
618
  interface BuilderRelationConfig {
614
- targetAgent: string;
615
- relationType: 'transfer' | 'delegate';
619
+ targetAgent: string;
620
+ relationType: 'transfer' | 'delegate';
616
621
  }
617
622
  interface BuilderAgentConfig {
618
- name: string;
619
- description: string;
620
- instructions: string;
621
- tools: BuilderToolConfig[];
622
- relations?: BuilderRelationConfig[];
623
- }
624
-
623
+ name: string;
624
+ description: string;
625
+ instructions: string;
626
+ tools: BuilderToolConfig[];
627
+ relations?: BuilderRelationConfig[];
628
+ }
629
+ //#endregion
630
+ //#region src/agent.d.ts
625
631
  declare class Agent implements AgentInterface {
626
- private subAgents;
627
- private agentMap;
628
- private defaultSubAgent?;
629
- private baseURL;
630
- private tenantId;
631
- private projectId;
632
- private agentId;
633
- private agentName;
634
- private agentDescription?;
635
- private initialized;
636
- private contextConfig?;
637
- private credentials?;
638
- private models?;
639
- private statusUpdateSettings?;
640
- private prompt?;
641
- private stopWhen?;
642
- constructor(config: AgentConfig);
643
- /**
644
- * Set or update the configuration (tenantId, projectId and apiUrl)
645
- * This is used by the CLI to inject configuration from inkeep.config.ts
646
- */
647
- setConfig(tenantId: string, projectId: string, apiUrl: string): void;
648
- /**
649
- * Convert the Agent to FullAgentDefinition format for the new agent endpoint
650
- */
651
- toFullAgentDefinition(): Promise<FullAgentDefinition>;
652
- /**
653
- * Initialize all tools in all agents (especially IPCTools that need MCP server URLs)
654
- */
655
- private initializeAllTools;
656
- /**
657
- * Initialize the agent and all agents in the backend using the new agent endpoint
658
- */
659
- init(): Promise<void>;
660
- /**
661
- * Generate a response using the default agent
662
- */
663
- generate(input: MessageInput, options?: GenerateOptions): Promise<string>;
664
- /**
665
- * Stream a response using the default agent
666
- */
667
- stream(input: MessageInput, options?: GenerateOptions): Promise<StreamResponse>;
668
- /**
669
- * Alias for stream() method for consistency with naming patterns
670
- */
671
- generateStream(input: MessageInput, options?: GenerateOptions): Promise<StreamResponse>;
672
- /**
673
- * Run with a specific agent from the agent
674
- */
675
- runWith(subAgentId: string, input: MessageInput, options?: GenerateOptions): Promise<RunResult>;
676
- /**
677
- * Get an agent by name (unified method for all agent types)
678
- */
679
- getSubAgent(name: string): SubAgentInterface | undefined;
680
- /**
681
- * Add an agent to the agent
682
- */
683
- addSubAgent(agent: SubAgentInterface): void;
684
- /**
685
- * Remove an agent from the agent
686
- */
687
- removeSubAgent(id: string): boolean;
688
- /**
689
- * Get all agents in the agent
690
- */
691
- getSubAgents(): SubAgentInterface[];
692
- /**
693
- * Get all agent ids (unified method for all agent types)
694
- */
695
- getSubAgentIds(): string[];
696
- /**
697
- * Set the default agent
698
- */
699
- setDefaultSubAgent(agent: SubAgentInterface): void;
700
- /**
701
- * Get the default agent
702
- */
703
- getDefaultSubAgent(): SubAgentInterface | undefined;
704
- /**
705
- * Get the agent ID
706
- */
707
- getId(): string;
708
- getName(): string;
709
- getDescription(): string | undefined;
710
- getTenantId(): string;
711
- /**
712
- * Get the agent's model settingsuration
713
- */
714
- getModels(): typeof this.models;
715
- /**
716
- * Set the agent's model settingsuration
717
- */
718
- setModels(models: typeof this.models): void;
719
- /**
720
- * Get the agent's prompt configuration
721
- */
722
- getPrompt(): string | undefined;
723
- /**
724
- * Get the agent's stopWhen configuration
725
- */
726
- getStopWhen(): AgentStopWhen;
727
- /**
728
- * Get the agent's status updates configuration
729
- */
730
- getStatusUpdateSettings(): StatusUpdateSettings | undefined;
731
- /**
732
- * Get the summarizer model from the agent's model settings
733
- */
734
- getSummarizerModel(): ModelSettings | undefined;
735
- /**
736
- * Get agent statistics
737
- */
738
- getStats(): {
739
- agentCount: number;
740
- defaultSubAgent: string | null;
741
- initialized: boolean;
742
- agentId: string;
743
- tenantId: string;
744
- };
745
- with(options: {
746
- headers?: Record<string, string>;
747
- }): subAgentTeamAgentInterface;
748
- /**
749
- * Validate the agent configuration
750
- */
751
- validate(): {
752
- valid: boolean;
753
- errors: string[];
754
- };
755
- private _init;
756
- /**
757
- * Type guard to check if an agent is an internal AgentInterface
758
- */
759
- isInternalAgent(agent: AllDelegateInputInterface): agent is SubAgentInterface;
760
- /**
761
- * Get project-level model settingsuration defaults
762
- */
763
- private getProjectModelDefaults;
764
- /**
765
- * Get project-level stopWhen configuration defaults
766
- */
767
- private getProjectStopWhenDefaults;
768
- /**
769
- * Apply model inheritance hierarchy: Project -> Agent -> Agent
770
- */
771
- private applyModelInheritance;
772
- /**
773
- * Apply stopWhen inheritance hierarchy: Project -> Agent -> Agent
774
- */
775
- private applyStopWhenInheritance;
776
- /**
777
- * Propagate agent-level model settings to agents (supporting partial inheritance)
778
- */
779
- private propagateModelSettingsToAgent;
780
- /**
781
- * Immediately propagate agent-level models to all agents during construction
782
- */
783
- private propagateImmediateModelSettings;
784
- /**
785
- * Execute agent using the backend system instead of local runner
786
- */
787
- private executeWithBackend;
788
- /**
789
- * Parse streaming response in SSE format
790
- */
791
- private parseStreamingResponse;
792
- /**
793
- * Normalize input messages to the expected format
794
- */
795
- private normalizeMessages;
796
- }
797
-
632
+ private subAgents;
633
+ private agentMap;
634
+ private defaultSubAgent?;
635
+ private baseURL;
636
+ private tenantId;
637
+ private projectId;
638
+ private agentId;
639
+ private agentName;
640
+ private agentDescription?;
641
+ private initialized;
642
+ private contextConfig?;
643
+ private credentials?;
644
+ private models?;
645
+ private statusUpdateSettings?;
646
+ private prompt?;
647
+ private stopWhen?;
648
+ constructor(config: AgentConfig);
649
+ /**
650
+ * Set or update the configuration (tenantId, projectId and apiUrl)
651
+ * This is used by the CLI to inject configuration from inkeep.config.ts
652
+ */
653
+ setConfig(tenantId: string, projectId: string, apiUrl: string): void;
654
+ /**
655
+ * Convert the Agent to FullAgentDefinition format for the new agent endpoint
656
+ */
657
+ toFullAgentDefinition(): Promise<FullAgentDefinition>;
658
+ /**
659
+ * Initialize all tools in all agents (especially IPCTools that need MCP server URLs)
660
+ */
661
+ private initializeAllTools;
662
+ /**
663
+ * Initialize the agent and all agents in the backend using the new agent endpoint
664
+ */
665
+ init(): Promise<void>;
666
+ /**
667
+ * Generate a response using the default agent
668
+ */
669
+ generate(input: MessageInput, options?: GenerateOptions): Promise<string>;
670
+ /**
671
+ * Stream a response using the default agent
672
+ */
673
+ stream(input: MessageInput, options?: GenerateOptions): Promise<StreamResponse>;
674
+ /**
675
+ * Alias for stream() method for consistency with naming patterns
676
+ */
677
+ generateStream(input: MessageInput, options?: GenerateOptions): Promise<StreamResponse>;
678
+ /**
679
+ * Run with a specific agent from the agent
680
+ */
681
+ runWith(subAgentId: string, input: MessageInput, options?: GenerateOptions): Promise<RunResult>;
682
+ /**
683
+ * Get an agent by name (unified method for all agent types)
684
+ */
685
+ getSubAgent(name: string): SubAgentInterface | undefined;
686
+ /**
687
+ * Add an agent to the agent
688
+ */
689
+ addSubAgent(agent: SubAgentInterface): void;
690
+ /**
691
+ * Remove an agent from the agent
692
+ */
693
+ removeSubAgent(id: string): boolean;
694
+ /**
695
+ * Get all agents in the agent
696
+ */
697
+ getSubAgents(): SubAgentInterface[];
698
+ /**
699
+ * Get all agent ids (unified method for all agent types)
700
+ */
701
+ getSubAgentIds(): string[];
702
+ /**
703
+ * Set the default agent
704
+ */
705
+ setDefaultSubAgent(agent: SubAgentInterface): void;
706
+ /**
707
+ * Get the default agent
708
+ */
709
+ getDefaultSubAgent(): SubAgentInterface | undefined;
710
+ /**
711
+ * Get the agent ID
712
+ */
713
+ getId(): string;
714
+ getName(): string;
715
+ getDescription(): string | undefined;
716
+ getTenantId(): string;
717
+ /**
718
+ * Get the agent's model settingsuration
719
+ */
720
+ getModels(): typeof this.models;
721
+ /**
722
+ * Set the agent's model settingsuration
723
+ */
724
+ setModels(models: typeof this.models): void;
725
+ /**
726
+ * Get the agent's prompt configuration
727
+ */
728
+ getPrompt(): string | undefined;
729
+ /**
730
+ * Get the agent's stopWhen configuration
731
+ */
732
+ getStopWhen(): AgentStopWhen;
733
+ /**
734
+ * Get the agent's status updates configuration
735
+ */
736
+ getStatusUpdateSettings(): StatusUpdateSettings | undefined;
737
+ /**
738
+ * Get the summarizer model from the agent's model settings
739
+ */
740
+ getSummarizerModel(): ModelSettings | undefined;
741
+ /**
742
+ * Get agent statistics
743
+ */
744
+ getStats(): {
745
+ agentCount: number;
746
+ defaultSubAgent: string | null;
747
+ initialized: boolean;
748
+ agentId: string;
749
+ tenantId: string;
750
+ };
751
+ with(options: {
752
+ headers?: Record<string, string>;
753
+ }): subAgentTeamAgentInterface;
754
+ /**
755
+ * Validate the agent configuration
756
+ */
757
+ validate(): {
758
+ valid: boolean;
759
+ errors: string[];
760
+ };
761
+ private _init;
762
+ /**
763
+ * Type guard to check if an agent is an internal AgentInterface
764
+ */
765
+ isInternalAgent(agent: AllDelegateInputInterface): agent is SubAgentInterface;
766
+ /**
767
+ * Get project-level model settingsuration defaults
768
+ */
769
+ private getProjectModelDefaults;
770
+ /**
771
+ * Get project-level stopWhen configuration defaults
772
+ */
773
+ private getProjectStopWhenDefaults;
774
+ /**
775
+ * Apply model inheritance hierarchy: Project -> Agent -> Agent
776
+ */
777
+ private applyModelInheritance;
778
+ /**
779
+ * Apply stopWhen inheritance hierarchy: Project -> Agent -> Agent
780
+ */
781
+ private applyStopWhenInheritance;
782
+ /**
783
+ * Propagate agent-level model settings to agents (supporting partial inheritance)
784
+ */
785
+ private propagateModelSettingsToAgent;
786
+ /**
787
+ * Immediately propagate agent-level models to all agents during construction
788
+ */
789
+ private propagateImmediateModelSettings;
790
+ /**
791
+ * Execute agent using the backend system instead of local runner
792
+ */
793
+ private executeWithBackend;
794
+ /**
795
+ * Parse streaming response in SSE format
796
+ */
797
+ private parseStreamingResponse;
798
+ /**
799
+ * Normalize input messages to the expected format
800
+ */
801
+ private normalizeMessages;
802
+ }
803
+ //#endregion
804
+ //#region src/project.d.ts
798
805
  /**
799
806
  * Project configuration interface for the SDK
800
807
  */
801
808
  interface ProjectConfig {
802
- id: string;
803
- name: string;
804
- description?: string;
805
- models?: {
806
- base?: ModelSettings;
807
- structuredOutput?: ModelSettings;
808
- summarizer?: ModelSettings;
809
- };
810
- stopWhen?: StopWhen;
811
- agents?: () => Agent[];
812
- tools?: () => Tool[];
813
- externalAgents?: () => ExternalAgent[];
814
- dataComponents?: () => DataComponent[];
815
- artifactComponents?: () => ArtifactComponent[];
816
- credentialReferences?: () => CredentialReferenceApiInsert[];
809
+ id: string;
810
+ name: string;
811
+ description?: string;
812
+ models?: {
813
+ base?: ModelSettings;
814
+ structuredOutput?: ModelSettings;
815
+ summarizer?: ModelSettings;
816
+ };
817
+ stopWhen?: StopWhen;
818
+ agents?: () => Agent[];
819
+ tools?: () => Tool[];
820
+ externalAgents?: () => ExternalAgent[];
821
+ dataComponents?: () => DataComponent[];
822
+ artifactComponents?: () => ArtifactComponent[];
823
+ credentialReferences?: () => CredentialReferenceApiInsert[];
817
824
  }
818
825
  /**
819
826
  * Project interface for operations
820
827
  */
821
828
  interface ProjectInterface {
822
- init(): Promise<void>;
823
- setConfig(tenantId: string, apiUrl: string): void;
824
- getId(): string;
825
- getName(): string;
826
- getDescription(): string | undefined;
827
- getTenantId(): string;
828
- getModels(): ProjectConfig['models'];
829
- getStopWhen(): ProjectConfig['stopWhen'];
830
- getAgents(): Agent[];
831
- addAgent(agent: Agent): void;
832
- removeAgent(id: string): boolean;
833
- getStats(): {
834
- projectId: string;
835
- tenantId: string;
836
- agentCount: number;
837
- initialized: boolean;
838
- };
839
- validate(): {
840
- valid: boolean;
841
- errors: string[];
842
- };
829
+ init(): Promise<void>;
830
+ setConfig(tenantId: string, apiUrl: string): void;
831
+ getId(): string;
832
+ getName(): string;
833
+ getDescription(): string | undefined;
834
+ getTenantId(): string;
835
+ getModels(): ProjectConfig['models'];
836
+ getStopWhen(): ProjectConfig['stopWhen'];
837
+ getAgents(): Agent[];
838
+ addAgent(agent: Agent): void;
839
+ removeAgent(id: string): boolean;
840
+ getStats(): {
841
+ projectId: string;
842
+ tenantId: string;
843
+ agentCount: number;
844
+ initialized: boolean;
845
+ };
846
+ validate(): {
847
+ valid: boolean;
848
+ errors: string[];
849
+ };
843
850
  }
844
851
  /**
845
852
  * Project class for managing agent projects
@@ -867,154 +874,156 @@ interface ProjectInterface {
867
874
  * ```
868
875
  */
869
876
  declare class Project implements ProjectInterface {
870
- readonly __type: "project";
871
- private projectId;
872
- private projectName;
873
- private projectDescription?;
874
- private tenantId;
875
- private baseURL;
876
- private apiKey?;
877
- private initialized;
878
- private models?;
879
- private stopWhen?;
880
- private agents;
881
- private agentMap;
882
- private credentialReferences?;
883
- private projectTools;
884
- private projectDataComponents;
885
- private projectArtifactComponents;
886
- private projectExternalAgents;
887
- private externalAgentMap;
888
- constructor(config: ProjectConfig);
889
- /**
890
- * Set or update the configuration (tenantId and apiUrl)
891
- * This is used by the CLI to inject configuration from inkeep.config.ts
892
- */
893
- setConfig(tenantId: string, apiUrl: string, models?: ProjectConfig['models'], apiKey?: string): void;
894
- /**
895
- * Set credential references for the project
896
- * This is used by the CLI to inject environment-specific credentials
897
- */
898
- setCredentials(credentials: Record<string, CredentialReferenceApiInsert>): void;
899
- /**
900
- * Initialize the project and create/update it in the backend using full project approach
901
- */
902
- init(): Promise<void>;
903
- /**
904
- * Get the project ID
905
- */
906
- getId(): string;
907
- /**
908
- * Get the project name
909
- */
910
- getName(): string;
911
- /**
912
- * Get the project description
913
- */
914
- getDescription(): string | undefined;
915
- /**
916
- * Get the tenant ID
917
- */
918
- getTenantId(): string;
919
- /**
920
- * Get the project's model configuration
921
- */
922
- getModels(): ProjectConfig['models'];
923
- /**
924
- * Set the project's model configuration
925
- */
926
- setModels(models: ProjectConfig['models']): void;
927
- /**
928
- * Get the project's stopWhen configuration
929
- */
930
- getStopWhen(): ProjectConfig['stopWhen'];
931
- /**
932
- * Set the project's stopWhen configuration
933
- */
934
- setStopWhen(stopWhen: ProjectConfig['stopWhen']): void;
935
- /**
936
- * Get credential tracking information
937
- */
938
- getCredentialTracking(): Promise<{
939
- credentials: Record<string, any>;
940
- usage: Record<string, Array<{
941
- type: string;
942
- id: string;
943
- agentId?: string;
944
- }>>;
945
- }>;
946
- getFullDefinition(): Promise<FullProjectDefinition>;
947
- /**
948
- * Get all agent in the project
949
- */
950
- getAgents(): Agent[];
951
- /**
952
- * Get all external agents in the project
953
- */
954
- getExternalAgents(): ExternalAgent[];
955
- /**
956
- * Get an external agent by ID
957
- */
958
- getExternalAgent(id: string): ExternalAgent | undefined;
959
- /**
960
- * Add an external agent to the project
961
- */
962
- addExternalAgent(externalAgent: ExternalAgent): void;
963
- /**
964
- * Remove an external agent from the project
965
- */
966
- removeExternalAgent(id: string): boolean;
967
- /**
968
- * Get an agent by ID
969
- */
970
- getAgent(id: string): Agent | undefined;
971
- /**
972
- * Add an agent to the project
973
- */
974
- addAgent(agent: Agent): void;
975
- /**
976
- * Remove an agent from the project
977
- */
978
- removeAgent(id: string): boolean;
979
- /**
980
- * Get project statistics
981
- */
982
- getStats(): {
983
- projectId: string;
984
- tenantId: string;
985
- agentCount: number;
986
- initialized: boolean;
987
- };
988
- /**
989
- * Validate the project configuration
990
- */
991
- validate(): {
992
- valid: boolean;
993
- errors: string[];
994
- };
995
- /**
996
- * Convert the Project to FullProjectDefinition format
997
- */
998
- private toFullProjectDefinition;
999
- }
1000
-
877
+ readonly __type: "project";
878
+ private projectId;
879
+ private projectName;
880
+ private projectDescription?;
881
+ private tenantId;
882
+ private baseURL;
883
+ private apiKey?;
884
+ private initialized;
885
+ private models?;
886
+ private stopWhen?;
887
+ private agents;
888
+ private agentMap;
889
+ private credentialReferences?;
890
+ private projectTools;
891
+ private projectDataComponents;
892
+ private projectArtifactComponents;
893
+ private projectExternalAgents;
894
+ private externalAgentMap;
895
+ constructor(config: ProjectConfig);
896
+ /**
897
+ * Set or update the configuration (tenantId and apiUrl)
898
+ * This is used by the CLI to inject configuration from inkeep.config.ts
899
+ */
900
+ setConfig(tenantId: string, apiUrl: string, models?: ProjectConfig['models'], apiKey?: string): void;
901
+ /**
902
+ * Set credential references for the project
903
+ * This is used by the CLI to inject environment-specific credentials
904
+ */
905
+ setCredentials(credentials: Record<string, CredentialReferenceApiInsert>): void;
906
+ /**
907
+ * Initialize the project and create/update it in the backend using full project approach
908
+ */
909
+ init(): Promise<void>;
910
+ /**
911
+ * Get the project ID
912
+ */
913
+ getId(): string;
914
+ /**
915
+ * Get the project name
916
+ */
917
+ getName(): string;
918
+ /**
919
+ * Get the project description
920
+ */
921
+ getDescription(): string | undefined;
922
+ /**
923
+ * Get the tenant ID
924
+ */
925
+ getTenantId(): string;
926
+ /**
927
+ * Get the project's model configuration
928
+ */
929
+ getModels(): ProjectConfig['models'];
930
+ /**
931
+ * Set the project's model configuration
932
+ */
933
+ setModels(models: ProjectConfig['models']): void;
934
+ /**
935
+ * Get the project's stopWhen configuration
936
+ */
937
+ getStopWhen(): ProjectConfig['stopWhen'];
938
+ /**
939
+ * Set the project's stopWhen configuration
940
+ */
941
+ setStopWhen(stopWhen: ProjectConfig['stopWhen']): void;
942
+ /**
943
+ * Get credential tracking information
944
+ */
945
+ getCredentialTracking(): Promise<{
946
+ credentials: Record<string, any>;
947
+ usage: Record<string, Array<{
948
+ type: string;
949
+ id: string;
950
+ agentId?: string;
951
+ }>>;
952
+ }>;
953
+ getFullDefinition(): Promise<FullProjectDefinition>;
954
+ /**
955
+ * Get all agent in the project
956
+ */
957
+ getAgents(): Agent[];
958
+ /**
959
+ * Get all external agents in the project
960
+ */
961
+ getExternalAgents(): ExternalAgent[];
962
+ /**
963
+ * Get an external agent by ID
964
+ */
965
+ getExternalAgent(id: string): ExternalAgent | undefined;
966
+ /**
967
+ * Add an external agent to the project
968
+ */
969
+ addExternalAgent(externalAgent: ExternalAgent): void;
970
+ /**
971
+ * Remove an external agent from the project
972
+ */
973
+ removeExternalAgent(id: string): boolean;
974
+ /**
975
+ * Get an agent by ID
976
+ */
977
+ getAgent(id: string): Agent | undefined;
978
+ /**
979
+ * Add an agent to the project
980
+ */
981
+ addAgent(agent: Agent): void;
982
+ /**
983
+ * Remove an agent from the project
984
+ */
985
+ removeAgent(id: string): boolean;
986
+ /**
987
+ * Get project statistics
988
+ */
989
+ getStats(): {
990
+ projectId: string;
991
+ tenantId: string;
992
+ agentCount: number;
993
+ initialized: boolean;
994
+ };
995
+ /**
996
+ * Validate the project configuration
997
+ */
998
+ validate(): {
999
+ valid: boolean;
1000
+ errors: string[];
1001
+ };
1002
+ /**
1003
+ * Convert the Project to FullProjectDefinition format
1004
+ */
1005
+ private toFullProjectDefinition;
1006
+ }
1007
+ //#endregion
1008
+ //#region src/status-component.d.ts
1001
1009
  type StatusComponentConfigWithZod = Omit<StatusComponent$1, 'detailsSchema'> & {
1002
- detailsSchema?: Record<string, unknown> | z.ZodObject<any>;
1010
+ detailsSchema?: Record<string, unknown> | z.ZodObject<any>;
1003
1011
  };
1004
1012
  interface StatusComponentInterface {
1005
- config: StatusComponent$1;
1006
- getType(): string;
1007
- getDescription(): string | undefined;
1008
- getDetailsSchema(): StatusComponent$1['detailsSchema'];
1013
+ config: StatusComponent$1;
1014
+ getType(): string;
1015
+ getDescription(): string | undefined;
1016
+ getDetailsSchema(): StatusComponent$1['detailsSchema'];
1009
1017
  }
1010
1018
  declare class StatusComponent implements StatusComponentInterface {
1011
- config: StatusComponent$1;
1012
- constructor(config: StatusComponentConfigWithZod);
1013
- getType(): string;
1014
- getDescription(): string | undefined;
1015
- getDetailsSchema(): StatusComponent$1['detailsSchema'];
1019
+ config: StatusComponent$1;
1020
+ constructor(config: StatusComponentConfigWithZod);
1021
+ getType(): string;
1022
+ getDescription(): string | undefined;
1023
+ getDetailsSchema(): StatusComponent$1['detailsSchema'];
1016
1024
  }
1017
-
1025
+ //#endregion
1026
+ //#region src/builderFunctions.d.ts
1018
1027
  /**
1019
1028
  * Helper function to create agent - OpenAI style
1020
1029
  */
@@ -1093,16 +1102,16 @@ declare function subAgent(config: SubAgentConfig): SubAgent;
1093
1102
  * ```
1094
1103
  */
1095
1104
  declare function credential(config: CredentialReferenceApiInsert): {
1096
- id: string;
1097
- name: string;
1098
- credentialStoreId: string;
1099
- type: "nango" | "memory" | "keychain";
1100
- createdAt?: string | undefined;
1101
- updatedAt?: string | undefined;
1102
- userId?: string | null | undefined;
1103
- retrievalParams?: Record<string, unknown> | null | undefined;
1104
- toolId?: string | null | undefined;
1105
- createdBy?: string | null | undefined;
1105
+ id: string;
1106
+ name: string;
1107
+ credentialStoreId: string;
1108
+ type: "memory" | "keychain" | "nango";
1109
+ retrievalParams?: Record<string, unknown> | null | undefined;
1110
+ toolId?: string | null | undefined;
1111
+ userId?: string | null | undefined;
1112
+ createdBy?: string | null | undefined;
1113
+ createdAt?: string | undefined;
1114
+ updatedAt?: string | undefined;
1106
1115
  };
1107
1116
  /**
1108
1117
  * Creates an MCP (Model Context Protocol) server for tool functionality.
@@ -1282,7 +1291,8 @@ declare function agentMcp(config: AgentMcpConfig): AgentMcpConfig;
1282
1291
  * ```
1283
1292
  */
1284
1293
  declare function functionTool(config: FunctionToolConfig): FunctionTool;
1285
-
1294
+ //#endregion
1295
+ //#region src/credential-provider.d.ts
1286
1296
  /**
1287
1297
  * InkeepCredentialProvider - Abstraction for Credential Management
1288
1298
  *
@@ -1309,23 +1319,23 @@ declare function functionTool(config: FunctionToolConfig): FunctionTool;
1309
1319
  * This is a simplified version for SDK customers
1310
1320
  */
1311
1321
  interface CredentialStore {
1312
- /** Unique identifier for this credential store */
1313
- readonly id: string;
1314
- /** Type of credential store */
1315
- readonly type: CredentialProviderType;
1316
- /** Get a credential by key */
1317
- get(key: string): Promise<string | null>;
1318
- /** Set a credential */
1319
- set(key: string, value: string, metadata?: Record<string, string>): Promise<void>;
1320
- /** Check if a credential exists */
1321
- has(key: string): Promise<boolean>;
1322
- /** Delete a credential */
1323
- delete(key: string): Promise<boolean>;
1324
- /** Check if the credential store is available */
1325
- checkAvailability(): Promise<{
1326
- available: boolean;
1327
- reason?: string;
1328
- }>;
1322
+ /** Unique identifier for this credential store */
1323
+ readonly id: string;
1324
+ /** Type of credential store */
1325
+ readonly type: CredentialProviderType;
1326
+ /** Get a credential by key */
1327
+ get(key: string): Promise<string | null>;
1328
+ /** Set a credential */
1329
+ set(key: string, value: string, metadata?: Record<string, string>): Promise<void>;
1330
+ /** Check if a credential exists */
1331
+ has(key: string): Promise<boolean>;
1332
+ /** Delete a credential */
1333
+ delete(key: string): Promise<boolean>;
1334
+ /** Check if the credential store is available */
1335
+ checkAvailability(): Promise<{
1336
+ available: boolean;
1337
+ reason?: string;
1338
+ }>;
1329
1339
  }
1330
1340
  /**
1331
1341
  * Supported credential provider types
@@ -1335,40 +1345,40 @@ type CredentialProviderType = 'memory' | 'keychain' | 'nango' | 'custom';
1335
1345
  * Configuration for memory-based credential storage
1336
1346
  */
1337
1347
  interface MemoryCredentialConfig {
1338
- type: 'memory';
1339
- /** Optional store ID (defaults to 'memory-default') */
1340
- id?: string;
1348
+ type: 'memory';
1349
+ /** Optional store ID (defaults to 'memory-default') */
1350
+ id?: string;
1341
1351
  }
1342
1352
  /**
1343
1353
  * Configuration for keychain-based credential storage
1344
1354
  */
1345
1355
  interface KeychainCredentialConfig {
1346
- type: 'keychain';
1347
- /** Optional store ID (defaults to 'keychain-default') */
1348
- id?: string;
1349
- /** Optional service name for keychain entries */
1350
- serviceName?: string;
1356
+ type: 'keychain';
1357
+ /** Optional store ID (defaults to 'keychain-default') */
1358
+ id?: string;
1359
+ /** Optional service name for keychain entries */
1360
+ serviceName?: string;
1351
1361
  }
1352
1362
  /**
1353
1363
  * Configuration for Nango-based credential storage (OAuth management)
1354
1364
  * Note: Using Nango requires the @nangohq/node package to be installed
1355
1365
  */
1356
1366
  interface NangoCredentialConfig {
1357
- type: 'nango';
1358
- /** Optional store ID (defaults to 'nango-default') */
1359
- id?: string;
1360
- /** Nango secret key (defaults to NANGO_SECRET_KEY env var) */
1361
- secretKey?: string;
1362
- /** Nango API URL (defaults to https://api.nango.dev) */
1363
- apiUrl?: string;
1367
+ type: 'nango';
1368
+ /** Optional store ID (defaults to 'nango-default') */
1369
+ id?: string;
1370
+ /** Nango secret key (defaults to NANGO_SECRET_KEY env var) */
1371
+ secretKey?: string;
1372
+ /** Nango API URL (defaults to https://api.nango.dev) */
1373
+ apiUrl?: string;
1364
1374
  }
1365
1375
  /**
1366
1376
  * Configuration for custom credential provider
1367
1377
  */
1368
1378
  interface CustomCredentialConfig {
1369
- type: 'custom';
1370
- /** Custom credential store implementation */
1371
- store: CredentialStore;
1379
+ type: 'custom';
1380
+ /** Custom credential store implementation */
1381
+ store: CredentialStore;
1372
1382
  }
1373
1383
  /**
1374
1384
  * Union type for all credential provider configurations
@@ -1396,59 +1406,59 @@ type CredentialProviderConfig = MemoryCredentialConfig | KeychainCredentialConfi
1396
1406
  * ```
1397
1407
  */
1398
1408
  declare class InkeepCredentialProvider implements CredentialStore {
1399
- private store;
1400
- constructor(config?: CredentialProviderConfig);
1401
- /**
1402
- * Create the appropriate store based on configuration
1403
- */
1404
- private createStore;
1405
- /**
1406
- * Create keychain store with dynamic import
1407
- */
1408
- private createKeychainStore;
1409
- /**
1410
- * Create Nango store with dynamic import
1411
- */
1412
- private createNangoStore;
1413
- get id(): string;
1414
- get type(): CredentialProviderType;
1415
- /**
1416
- * Get a credential by key
1417
- * @param key - The credential key
1418
- * @returns The credential value or null if not found
1419
- */
1420
- get(key: string): Promise<string | null>;
1421
- /**
1422
- * Set a credential
1423
- * @param key - The credential key
1424
- * @param value - The credential value
1425
- * @param metadata - Optional metadata
1426
- */
1427
- set(key: string, value: string, metadata?: Record<string, string>): Promise<void>;
1428
- /**
1429
- * Check if a credential exists
1430
- * @param key - The credential key
1431
- * @returns True if the credential exists
1432
- */
1433
- has(key: string): Promise<boolean>;
1434
- /**
1435
- * Delete a credential
1436
- * @param key - The credential key
1437
- * @returns True if the credential was deleted
1438
- */
1439
- delete(key: string): Promise<boolean>;
1440
- /**
1441
- * Check if the credential store is available and functional
1442
- * @returns Availability status
1443
- */
1444
- checkAvailability(): Promise<{
1445
- available: boolean;
1446
- reason?: string;
1447
- }>;
1448
- /**
1449
- * Get the underlying store (for advanced use cases)
1450
- */
1451
- getStore(): CredentialStore;
1409
+ private store;
1410
+ constructor(config?: CredentialProviderConfig);
1411
+ /**
1412
+ * Create the appropriate store based on configuration
1413
+ */
1414
+ private createStore;
1415
+ /**
1416
+ * Create keychain store with dynamic import
1417
+ */
1418
+ private createKeychainStore;
1419
+ /**
1420
+ * Create Nango store with dynamic import
1421
+ */
1422
+ private createNangoStore;
1423
+ get id(): string;
1424
+ get type(): CredentialProviderType;
1425
+ /**
1426
+ * Get a credential by key
1427
+ * @param key - The credential key
1428
+ * @returns The credential value or null if not found
1429
+ */
1430
+ get(key: string): Promise<string | null>;
1431
+ /**
1432
+ * Set a credential
1433
+ * @param key - The credential key
1434
+ * @param value - The credential value
1435
+ * @param metadata - Optional metadata
1436
+ */
1437
+ set(key: string, value: string, metadata?: Record<string, string>): Promise<void>;
1438
+ /**
1439
+ * Check if a credential exists
1440
+ * @param key - The credential key
1441
+ * @returns True if the credential exists
1442
+ */
1443
+ has(key: string): Promise<boolean>;
1444
+ /**
1445
+ * Delete a credential
1446
+ * @param key - The credential key
1447
+ * @returns True if the credential was deleted
1448
+ */
1449
+ delete(key: string): Promise<boolean>;
1450
+ /**
1451
+ * Check if the credential store is available and functional
1452
+ * @returns Availability status
1453
+ */
1454
+ checkAvailability(): Promise<{
1455
+ available: boolean;
1456
+ reason?: string;
1457
+ }>;
1458
+ /**
1459
+ * Get the underlying store (for advanced use cases)
1460
+ */
1461
+ getStore(): CredentialStore;
1452
1462
  }
1453
1463
  /**
1454
1464
  * Factory function to create an InkeepCredentialProvider
@@ -1456,7 +1466,8 @@ declare class InkeepCredentialProvider implements CredentialStore {
1456
1466
  * @returns A new InkeepCredentialProvider instance
1457
1467
  */
1458
1468
  declare function createCredentialProvider(config?: CredentialProviderConfig): InkeepCredentialProvider;
1459
-
1469
+ //#endregion
1470
+ //#region src/credential-ref.d.ts
1460
1471
  /**
1461
1472
  * Credential Reference System
1462
1473
  *
@@ -1469,8 +1480,8 @@ declare function createCredentialProvider(config?: CredentialProviderConfig): In
1469
1480
  * The actual credential will be resolved from the environment file at push time.
1470
1481
  */
1471
1482
  interface CredentialReference {
1472
- __type: 'credential-ref';
1473
- id: string;
1483
+ __type: 'credential-ref';
1484
+ id: string;
1474
1485
  }
1475
1486
  /**
1476
1487
  * Create a reference to a credential by its ID.
@@ -1498,53 +1509,46 @@ declare function isCredentialReference(value: any): value is CredentialReference
1498
1509
  * Type helper to extract credential IDs from environment configuration
1499
1510
  */
1500
1511
  type ExtractCredentialIds<T> = T extends {
1501
- credentials?: infer C;
1512
+ credentials?: infer C;
1502
1513
  } ? C extends Record<string, any> ? keyof C : never : never;
1503
1514
  /**
1504
1515
  * Type helper to create a union of all available credential IDs from multiple environments
1505
1516
  */
1506
- type UnionCredentialIds<T extends Record<string, any>> = {
1507
- [K in keyof T]: ExtractCredentialIds<T[K]>;
1508
- }[keyof T];
1517
+ type UnionCredentialIds<T extends Record<string, any>> = { [K in keyof T]: ExtractCredentialIds<T[K]> }[keyof T];
1509
1518
  /**
1510
1519
  * Type helper to extract tool IDs from environment configuration
1511
1520
  */
1512
1521
  type ExtractMcpServerIds<T> = T extends {
1513
- mcpServers?: infer T;
1522
+ mcpServers?: infer T;
1514
1523
  } ? T extends Record<string, any> ? keyof T : never : never;
1515
1524
  /**
1516
1525
  * Type helper to create a union of all available tool IDs from multiple environments
1517
1526
  */
1518
- type UnionMcpServerIds<T extends Record<string, any>> = {
1519
- [K in keyof T]: ExtractMcpServerIds<T[K]>;
1520
- }[keyof T];
1521
-
1527
+ type UnionMcpServerIds<T extends Record<string, any>> = { [K in keyof T]: ExtractMcpServerIds<T[K]> }[keyof T];
1528
+ //#endregion
1529
+ //#region src/environment-settings.d.ts
1522
1530
  interface EnvironmentSettingsConfig {
1523
- credentials?: {
1524
- [settingId: string]: CredentialReferenceApiInsert;
1525
- };
1526
- mcpServers?: {
1527
- [mcpServerId: string]: Tool;
1528
- };
1531
+ credentials?: {
1532
+ [settingId: string]: CredentialReferenceApiInsert;
1533
+ };
1534
+ mcpServers?: {
1535
+ [mcpServerId: string]: Tool;
1536
+ };
1529
1537
  }
1530
1538
  /**
1531
1539
  * Create a setting helper with TypeScript autocomplete
1532
1540
  */
1533
1541
  declare function createEnvironmentSettings<T extends Record<string, EnvironmentSettingsConfig>>(environments: T): {
1534
- getEnvironmentCredential: (key: UnionCredentialIds<T>) => CredentialReferenceApiInsert;
1535
- getEnvironmentMcp: (key: UnionMcpServerIds<T>) => Tool;
1536
- getEnvironmentSetting: (key: UnionCredentialIds<T>) => CredentialReferenceApiInsert;
1542
+ getEnvironmentCredential: (key: UnionCredentialIds<T>) => CredentialReferenceApiInsert;
1543
+ getEnvironmentMcp: (key: UnionMcpServerIds<T>) => Tool;
1544
+ getEnvironmentSetting: (key: UnionCredentialIds<T>) => CredentialReferenceApiInsert;
1537
1545
  };
1538
1546
  /**
1539
1547
  * Create type-safe environment configurations
1540
1548
  */
1541
1549
  declare function registerEnvironmentSettings<T extends EnvironmentSettingsConfig>(config: T): T;
1542
-
1543
- /**
1544
- * Client-side functions for interacting with the Full Project API
1545
- * These functions make HTTP requests to the server instead of direct database calls
1546
- */
1547
-
1550
+ //#endregion
1551
+ //#region src/projectFullClient.d.ts
1548
1552
  /**
1549
1553
  * Create a full project via HTTP API
1550
1554
  */
@@ -1561,44 +1565,46 @@ declare function getFullProjectViaAPI(tenantId: string, apiUrl: string, projectI
1561
1565
  * Delete a full project via HTTP API
1562
1566
  */
1563
1567
  declare function deleteFullProjectViaAPI(tenantId: string, apiUrl: string, projectId: string, apiKey?: string): Promise<void>;
1564
-
1568
+ //#endregion
1569
+ //#region src/runner.d.ts
1565
1570
  declare class Runner {
1566
- /**
1567
- * Run an agent until completion, handling transfers and tool calls
1568
- * Similar to OpenAI's Runner.run() pattern
1569
- * NOTE: This now requires an agent instead of an agent
1570
- */
1571
- static run(agent: AgentInterface, messages: MessageInput, options?: GenerateOptions): Promise<RunResult>;
1572
- /**
1573
- * Stream an agent's response
1574
- */
1575
- static stream(agent: AgentInterface, messages: MessageInput, options?: GenerateOptions): Promise<StreamResponse>;
1576
- /**
1577
- * Execute multiple agent in parallel and return the first successful result
1578
- */
1579
- static raceAgents(agent: AgentInterface[], messages: MessageInput, options?: GenerateOptions): Promise<RunResult>;
1580
- private static normalizeToMessageHistory;
1581
- /**
1582
- * Validate agent configuration before running
1583
- */
1584
- static validateAgent(agent: AgentInterface): {
1585
- valid: boolean;
1586
- errors: string[];
1587
- };
1588
- /**
1589
- * Get execution statistics for an agent
1590
- */
1591
- static getExecutionStats(agent: AgentInterface, messages: MessageInput, options?: GenerateOptions): Promise<{
1592
- estimatedTurns: number;
1593
- estimatedTokens: number;
1594
- subAgentCount: number;
1595
- defaultSubAgent: string | undefined;
1596
- }>;
1571
+ /**
1572
+ * Run an agent until completion, handling transfers and tool calls
1573
+ * Similar to OpenAI's Runner.run() pattern
1574
+ * NOTE: This now requires an agent instead of an agent
1575
+ */
1576
+ static run(agent: AgentInterface, messages: MessageInput, options?: GenerateOptions): Promise<RunResult>;
1577
+ /**
1578
+ * Stream an agent's response
1579
+ */
1580
+ static stream(agent: AgentInterface, messages: MessageInput, options?: GenerateOptions): Promise<StreamResponse>;
1581
+ /**
1582
+ * Execute multiple agent in parallel and return the first successful result
1583
+ */
1584
+ static raceAgents(agent: AgentInterface[], messages: MessageInput, options?: GenerateOptions): Promise<RunResult>;
1585
+ private static normalizeToMessageHistory;
1586
+ /**
1587
+ * Validate agent configuration before running
1588
+ */
1589
+ static validateAgent(agent: AgentInterface): {
1590
+ valid: boolean;
1591
+ errors: string[];
1592
+ };
1593
+ /**
1594
+ * Get execution statistics for an agent
1595
+ */
1596
+ static getExecutionStats(agent: AgentInterface, messages: MessageInput, options?: GenerateOptions): Promise<{
1597
+ estimatedTurns: number;
1598
+ estimatedTokens: number;
1599
+ subAgentCount: number;
1600
+ defaultSubAgent: string | undefined;
1601
+ }>;
1597
1602
  }
1598
1603
  declare const run: typeof Runner.run;
1599
1604
  declare const stream: typeof Runner.stream;
1600
1605
  declare const raceAgents: typeof Runner.raceAgents;
1601
-
1606
+ //#endregion
1607
+ //#region src/telemetry-provider.d.ts
1602
1608
  /**
1603
1609
  * TelemetryProvider - Abstraction for Telemetry/Observability
1604
1610
  *
@@ -1626,120 +1632,120 @@ declare const raceAgents: typeof Runner.raceAgents;
1626
1632
  * Span status codes
1627
1633
  */
1628
1634
  declare const SpanStatus: {
1629
- readonly OK: "ok";
1630
- readonly ERROR: "error";
1631
- readonly UNSET: "unset";
1635
+ readonly OK: "ok";
1636
+ readonly ERROR: "error";
1637
+ readonly UNSET: "unset";
1632
1638
  };
1633
1639
  type SpanStatusType = (typeof SpanStatus)[keyof typeof SpanStatus];
1634
1640
  /**
1635
1641
  * Span interface for tracing
1636
1642
  */
1637
1643
  interface TelemetrySpan {
1638
- /** Set span attributes */
1639
- setAttributes(attributes: Record<string, unknown>): TelemetrySpan;
1640
- /** Set a single attribute */
1641
- setAttribute(key: string, value: unknown): TelemetrySpan;
1642
- /** Record an exception */
1643
- recordException(error: Error): TelemetrySpan;
1644
- /** Set span status */
1645
- setStatus(status: SpanStatusType, message?: string): TelemetrySpan;
1646
- /** Add an event to the span */
1647
- addEvent(name: string, attributes?: Record<string, unknown>): TelemetrySpan;
1648
- /** End the span */
1649
- end(): void;
1650
- /** Check if span is recording */
1651
- isRecording(): boolean;
1652
- /** Update span name */
1653
- updateName(name: string): TelemetrySpan;
1644
+ /** Set span attributes */
1645
+ setAttributes(attributes: Record<string, unknown>): TelemetrySpan;
1646
+ /** Set a single attribute */
1647
+ setAttribute(key: string, value: unknown): TelemetrySpan;
1648
+ /** Record an exception */
1649
+ recordException(error: Error): TelemetrySpan;
1650
+ /** Set span status */
1651
+ setStatus(status: SpanStatusType, message?: string): TelemetrySpan;
1652
+ /** Add an event to the span */
1653
+ addEvent(name: string, attributes?: Record<string, unknown>): TelemetrySpan;
1654
+ /** End the span */
1655
+ end(): void;
1656
+ /** Check if span is recording */
1657
+ isRecording(): boolean;
1658
+ /** Update span name */
1659
+ updateName(name: string): TelemetrySpan;
1654
1660
  }
1655
1661
  /**
1656
1662
  * Span options
1657
1663
  */
1658
1664
  interface SpanOptions {
1659
- /** Span attributes */
1660
- attributes?: Record<string, unknown>;
1661
- /** Parent span (for context propagation) */
1662
- parent?: TelemetrySpan;
1665
+ /** Span attributes */
1666
+ attributes?: Record<string, unknown>;
1667
+ /** Parent span (for context propagation) */
1668
+ parent?: TelemetrySpan;
1663
1669
  }
1664
1670
  /**
1665
1671
  * Tracer interface for creating spans
1666
1672
  */
1667
1673
  interface TelemetryTracer {
1668
- /** Start a new active span and execute callback */
1669
- startActiveSpan<T>(name: string, fn: (span: TelemetrySpan) => T): T;
1670
- startActiveSpan<T>(name: string, options: SpanOptions, fn: (span: TelemetrySpan) => T): T;
1671
- /** Start a new span without making it active */
1672
- startSpan(name: string, options?: SpanOptions): TelemetrySpan;
1674
+ /** Start a new active span and execute callback */
1675
+ startActiveSpan<T>(name: string, fn: (span: TelemetrySpan) => T): T;
1676
+ startActiveSpan<T>(name: string, options: SpanOptions, fn: (span: TelemetrySpan) => T): T;
1677
+ /** Start a new span without making it active */
1678
+ startSpan(name: string, options?: SpanOptions): TelemetrySpan;
1673
1679
  }
1674
1680
  /**
1675
1681
  * Logger interface for structured logging
1676
1682
  */
1677
1683
  interface TelemetryLogger {
1678
- debug(message: string, context?: Record<string, unknown>): void;
1679
- info(message: string, context?: Record<string, unknown>): void;
1680
- warn(message: string, context?: Record<string, unknown>): void;
1681
- error(message: string, context?: Record<string, unknown>): void;
1684
+ debug(message: string, context?: Record<string, unknown>): void;
1685
+ info(message: string, context?: Record<string, unknown>): void;
1686
+ warn(message: string, context?: Record<string, unknown>): void;
1687
+ error(message: string, context?: Record<string, unknown>): void;
1682
1688
  }
1683
1689
  /**
1684
1690
  * Metrics interface for recording measurements
1685
1691
  */
1686
1692
  interface TelemetryMetrics {
1687
- /** Increment a counter */
1688
- increment(name: string, value?: number, attributes?: Record<string, unknown>): void;
1689
- /** Record a gauge value */
1690
- gauge(name: string, value: number, attributes?: Record<string, unknown>): void;
1691
- /** Record a histogram value */
1692
- histogram(name: string, value: number, attributes?: Record<string, unknown>): void;
1693
+ /** Increment a counter */
1694
+ increment(name: string, value?: number, attributes?: Record<string, unknown>): void;
1695
+ /** Record a gauge value */
1696
+ gauge(name: string, value: number, attributes?: Record<string, unknown>): void;
1697
+ /** Record a histogram value */
1698
+ histogram(name: string, value: number, attributes?: Record<string, unknown>): void;
1693
1699
  }
1694
1700
  /**
1695
1701
  * Main telemetry provider interface
1696
1702
  */
1697
1703
  interface TelemetryProvider {
1698
- /** Get a tracer for creating spans */
1699
- getTracer(name: string, version?: string): TelemetryTracer;
1700
- /** Get a logger for structured logging */
1701
- getLogger(name: string): TelemetryLogger;
1702
- /** Get metrics for recording measurements */
1703
- getMetrics(name: string): TelemetryMetrics;
1704
- /** Shutdown the telemetry provider */
1705
- shutdown(): Promise<void>;
1706
- /** Check if telemetry is enabled */
1707
- isEnabled(): boolean;
1704
+ /** Get a tracer for creating spans */
1705
+ getTracer(name: string, version?: string): TelemetryTracer;
1706
+ /** Get a logger for structured logging */
1707
+ getLogger(name: string): TelemetryLogger;
1708
+ /** Get metrics for recording measurements */
1709
+ getMetrics(name: string): TelemetryMetrics;
1710
+ /** Shutdown the telemetry provider */
1711
+ shutdown(): Promise<void>;
1712
+ /** Check if telemetry is enabled */
1713
+ isEnabled(): boolean;
1708
1714
  }
1709
1715
  /**
1710
1716
  * Configuration for telemetry provider
1711
1717
  */
1712
1718
  interface TelemetryConfig {
1713
- /** Whether telemetry is enabled (default: false) */
1714
- enabled?: boolean;
1715
- /** Service name for identifying the source */
1716
- serviceName?: string;
1717
- /** Service version */
1718
- serviceVersion?: string;
1719
- /** Custom provider implementation */
1720
- provider?: TelemetryProvider;
1719
+ /** Whether telemetry is enabled (default: false) */
1720
+ enabled?: boolean;
1721
+ /** Service name for identifying the source */
1722
+ serviceName?: string;
1723
+ /** Service version */
1724
+ serviceVersion?: string;
1725
+ /** Custom provider implementation */
1726
+ provider?: TelemetryProvider;
1721
1727
  }
1722
1728
  /**
1723
1729
  * No-op telemetry provider (default)
1724
1730
  */
1725
1731
  declare class NoOpTelemetryProvider implements TelemetryProvider {
1726
- getTracer(_name: string, _version?: string): TelemetryTracer;
1727
- getLogger(_name: string): TelemetryLogger;
1728
- getMetrics(_name: string): TelemetryMetrics;
1729
- shutdown(): Promise<void>;
1730
- isEnabled(): boolean;
1732
+ getTracer(_name: string, _version?: string): TelemetryTracer;
1733
+ getLogger(_name: string): TelemetryLogger;
1734
+ getMetrics(_name: string): TelemetryMetrics;
1735
+ shutdown(): Promise<void>;
1736
+ isEnabled(): boolean;
1731
1737
  }
1732
1738
  /**
1733
1739
  * Console-based telemetry provider for development/debugging
1734
1740
  */
1735
1741
  declare class ConsoleTelemetryProvider implements TelemetryProvider {
1736
- private serviceName;
1737
- constructor(serviceName?: string);
1738
- getTracer(name: string, _version?: string): TelemetryTracer;
1739
- getLogger(name: string): TelemetryLogger;
1740
- getMetrics(name: string): TelemetryMetrics;
1741
- shutdown(): Promise<void>;
1742
- isEnabled(): boolean;
1742
+ private serviceName;
1743
+ constructor(serviceName?: string);
1744
+ getTracer(name: string, _version?: string): TelemetryTracer;
1745
+ getLogger(name: string): TelemetryLogger;
1746
+ getMetrics(name: string): TelemetryMetrics;
1747
+ shutdown(): Promise<void>;
1748
+ isEnabled(): boolean;
1743
1749
  }
1744
1750
  /**
1745
1751
  * InkeepTelemetryProvider - Main telemetry management class
@@ -1748,36 +1754,36 @@ declare class ConsoleTelemetryProvider implements TelemetryProvider {
1748
1754
  * Telemetry is OPT-IN - by default, a no-op provider is used.
1749
1755
  */
1750
1756
  declare class InkeepTelemetryProvider {
1751
- private provider;
1752
- constructor(config?: TelemetryConfig);
1753
- /**
1754
- * Get a tracer for creating spans
1755
- */
1756
- getTracer(name: string, version?: string): TelemetryTracer;
1757
- /**
1758
- * Get a logger for structured logging
1759
- */
1760
- getLogger(name: string): TelemetryLogger;
1761
- /**
1762
- * Get metrics recorder
1763
- */
1764
- getMetrics(name: string): TelemetryMetrics;
1765
- /**
1766
- * Check if telemetry is enabled
1767
- */
1768
- isEnabled(): boolean;
1769
- /**
1770
- * Shutdown the provider
1771
- */
1772
- shutdown(): Promise<void>;
1773
- /**
1774
- * Get the underlying provider
1775
- */
1776
- getProvider(): TelemetryProvider;
1777
- /**
1778
- * Set as the global telemetry provider
1779
- */
1780
- setAsGlobal(): void;
1757
+ private provider;
1758
+ constructor(config?: TelemetryConfig);
1759
+ /**
1760
+ * Get a tracer for creating spans
1761
+ */
1762
+ getTracer(name: string, version?: string): TelemetryTracer;
1763
+ /**
1764
+ * Get a logger for structured logging
1765
+ */
1766
+ getLogger(name: string): TelemetryLogger;
1767
+ /**
1768
+ * Get metrics recorder
1769
+ */
1770
+ getMetrics(name: string): TelemetryMetrics;
1771
+ /**
1772
+ * Check if telemetry is enabled
1773
+ */
1774
+ isEnabled(): boolean;
1775
+ /**
1776
+ * Shutdown the provider
1777
+ */
1778
+ shutdown(): Promise<void>;
1779
+ /**
1780
+ * Get the underlying provider
1781
+ */
1782
+ getProvider(): TelemetryProvider;
1783
+ /**
1784
+ * Set as the global telemetry provider
1785
+ */
1786
+ setAsGlobal(): void;
1781
1787
  }
1782
1788
  /**
1783
1789
  * Get the global telemetry provider
@@ -1799,14 +1805,14 @@ declare function createConsoleTelemetryProvider(serviceName?: string): InkeepTel
1799
1805
  * Configuration for OpenTelemetry provider
1800
1806
  */
1801
1807
  interface OpenTelemetryConfig {
1802
- /** Service name */
1803
- serviceName: string;
1804
- /** Service version */
1805
- serviceVersion?: string;
1806
- /** OTLP endpoint URL */
1807
- endpoint?: string;
1808
- /** Additional resource attributes */
1809
- resourceAttributes?: Record<string, string>;
1808
+ /** Service name */
1809
+ serviceName: string;
1810
+ /** Service version */
1811
+ serviceVersion?: string;
1812
+ /** OTLP endpoint URL */
1813
+ endpoint?: string;
1814
+ /** Additional resource attributes */
1815
+ resourceAttributes?: Record<string, string>;
1810
1816
  }
1811
1817
  /**
1812
1818
  * Create an OpenTelemetry-based provider
@@ -1814,5 +1820,6 @@ interface OpenTelemetryConfig {
1814
1820
  * Note: Requires @opentelemetry packages to be installed
1815
1821
  */
1816
1822
  declare function createOpenTelemetryProvider(config: OpenTelemetryConfig): Promise<InkeepTelemetryProvider>;
1817
-
1818
- export { type AgentConfig, AgentError, type AgentInterface, type AgentResponse, type AgentTool, type AllDelegateInputInterface, type AllDelegateOutputInterface, ArtifactComponent, type ArtifactComponentInterface, type ArtifactComponentWithZodProps, type AssistantMessage, type BuilderAgentConfig, type BuilderRelationConfig, type BuilderToolConfig, ConsoleTelemetryProvider, type CredentialProviderConfig, type CredentialProviderType, type CredentialReference, type CredentialStore, type CustomCredentialConfig, DataComponent, type DataComponentInterface, type DataComponentWithZodProps, ExternalAgent, type ExternalAgentInterface, type ExtractCredentialIds, type FetchDefinitionConfig, FunctionTool, type GenerateOptions, InkeepCredentialProvider, InkeepTelemetryProvider, type KeychainCredentialConfig, type MCPToolConfig, MaxTurnsExceededError, type MemoryCredentialConfig, type Message, type MessageInput, type NangoCredentialConfig, NoOpTelemetryProvider, type OpenTelemetryConfig, Project, type RequestSchemaConfig, type RequestSchemaDefinition, type RunResult, Runner, type ServerConfig, type SpanOptions, SpanStatus, type SpanStatusType, StatusComponent, type StatusComponentInterface, type StreamEvent, type StreamResponse, SubAgent, type SubAgentCanUseType, type SubAgentConfig, type SubAgentInterface, type SystemMessage, type TelemetryConfig, type TelemetryLogger, type TelemetryMetrics, type TelemetryProvider, type TelemetrySpan, type TelemetryTracer, Tool, type ToolCall, type ToolConfig, ToolExecutionError, type ToolMessage, type ToolResult, type TransferConfig, TransferError, type UnionCredentialIds, type UserMessage, agent, agentMcp, artifactComponent, createConsoleTelemetryProvider, createCredentialProvider, createEnvironmentSettings, createFullProjectViaAPI, createNoOpTelemetryProvider, createOpenTelemetryProvider, credential, credentialRef, dataComponent, deleteFullProjectViaAPI, externalAgent, externalAgents, functionTool, getFullProjectViaAPI, getGlobalTelemetryProvider, isCredentialReference, mcpServer, mcpTool, project, raceAgents, registerEnvironmentSettings, run, setGlobalTelemetryProvider, statusComponent, stream, subAgent, type subAgentExternalAgentInterface, type subAgentTeamAgentInterface, transfer, updateFullProjectViaAPI };
1823
+ //#endregion
1824
+ export { ANTHROPIC_MODELS, AgentConfig, AgentError, AgentInterface, AgentResponse, AgentTool, AllDelegateInputInterface, AllDelegateOutputInterface, ArtifactComponent, type ArtifactComponentInterface, ArtifactComponentWithZodProps, AssistantMessage, BuilderAgentConfig, BuilderRelationConfig, BuilderToolConfig, ConsoleTelemetryProvider, type CredentialProviderConfig, type CredentialProviderType, type CredentialReference, type CredentialStore, type CustomCredentialConfig, DataComponent, type DataComponentInterface, DataComponentWithZodProps, ExternalAgent, ExternalAgentInterface, type ExtractCredentialIds, FetchDefinitionConfig, FunctionTool, type FunctionToolConfig, GOOGLE_MODELS, GenerateOptions, InkeepCredentialProvider, InkeepTelemetryProvider, type KeychainCredentialConfig, MCPToolConfig, MaxTurnsExceededError, type MemoryCredentialConfig, Message, MessageInput, type ModelSettings, type NangoCredentialConfig, NoOpTelemetryProvider, OPENAI_MODELS, type OpenTelemetryConfig, Project, RequestSchemaConfig, RequestSchemaDefinition, RunResult, Runner, ServerConfig, type SpanOptions, SpanStatus, type SpanStatusType, StatusComponent, type StatusComponentInterface, StreamEvent, StreamResponse, SubAgent, SubAgentCanUseType, SubAgentConfig, SubAgentInterface, SystemMessage, type TelemetryConfig, type TelemetryLogger, type TelemetryMetrics, type TelemetryProvider, type TelemetrySpan, type TelemetryTracer, Tool, ToolCall, ToolConfig, ToolExecutionError, ToolMessage, ToolResult, TransferConfig, TransferError, type UnionCredentialIds, UserMessage, agent, agentMcp, artifactComponent, createConsoleTelemetryProvider, createCredentialProvider, createEnvironmentSettings, createFullProjectViaAPI, createNoOpTelemetryProvider, createOpenTelemetryProvider, credential, credentialRef, dataComponent, deleteFullProjectViaAPI, externalAgent, externalAgents, functionTool, getFullProjectViaAPI, getGlobalTelemetryProvider, isCredentialReference, mcpServer, mcpTool, project, raceAgents, registerEnvironmentSettings, run, setGlobalTelemetryProvider, statusComponent, stream, subAgent, subAgentExternalAgentInterface, subAgentTeamAgentInterface, transfer, updateFullProjectViaAPI };
1825
+ //# sourceMappingURL=index.d.cts.map