@n8n/api-types 1.25.2 → 1.26.1
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/agent-builder-interactive.d.ts +27 -6
- package/dist/agent-builder-interactive.js +8 -2
- package/dist/agent-builder-interactive.js.map +1 -1
- package/dist/agent-builder-tool-node-types.d.ts +2 -0
- package/dist/agent-builder-tool-node-types.js +15 -0
- package/dist/agent-builder-tool-node-types.js.map +1 -0
- package/dist/agent-sse.d.ts +8 -0
- package/dist/agents/agent-integration.schema.d.ts +54 -1
- package/dist/agents/agent-integration.schema.js +18 -1
- package/dist/agents/agent-integration.schema.js.map +1 -1
- package/dist/agents/agent-json-config.schema.d.ts +635 -425
- package/dist/agents/agent-json-config.schema.js +39 -16
- package/dist/agents/agent-json-config.schema.js.map +1 -1
- package/dist/agents/dto.d.ts +23 -0
- package/dist/agents/dto.js +8 -1
- package/dist/agents/dto.js.map +1 -1
- package/dist/agents/index.d.ts +5 -1
- package/dist/agents/index.js +9 -1
- package/dist/agents/index.js.map +1 -1
- package/dist/agents/model-providers.d.ts +3 -0
- package/dist/agents/model-providers.js +24 -0
- package/dist/agents/model-providers.js.map +1 -0
- package/dist/agents/sanitize-agent-json-config.d.ts +1 -0
- package/dist/agents/sanitize-agent-json-config.js +154 -0
- package/dist/agents/sanitize-agent-json-config.js.map +1 -0
- package/dist/agents/sub-agent.schema.d.ts +27 -0
- package/dist/agents/sub-agent.schema.js +7 -0
- package/dist/agents/sub-agent.schema.js.map +1 -0
- package/dist/agents/types.d.ts +3 -0
- package/dist/agents/types.js.map +1 -1
- package/dist/api-keys.d.ts +16 -1
- package/dist/build.tsbuildinfo +1 -1
- package/dist/chat-hub.d.ts +25 -25
- package/dist/dto/ai/ai-ask-request.dto.d.ts +11 -11
- package/dist/dto/ai/ai-build-request.dto.d.ts +0 -12
- package/dist/dto/ai/ai-build-request.dto.js +0 -2
- package/dist/dto/ai/ai-build-request.dto.js.map +1 -1
- package/dist/dto/api-keys/list-api-keys-query.dto.d.ts +19 -0
- package/dist/dto/api-keys/list-api-keys-query.dto.js +25 -0
- package/dist/dto/api-keys/list-api-keys-query.dto.js.map +1 -0
- package/dist/dto/api-keys/update-api-key-request.dto.js +3 -1
- package/dist/dto/api-keys/update-api-key-request.dto.js.map +1 -1
- package/dist/dto/data-table/list-data-table-query.dto.d.ts +6 -6
- package/dist/dto/evaluations/evaluation-config.dto.d.ts +720 -100
- package/dist/dto/evaluations/evaluation-config.dto.js +37 -2
- package/dist/dto/evaluations/evaluation-config.dto.js.map +1 -1
- package/dist/dto/evaluations/evaluation-error-code.d.ts +1 -0
- package/dist/dto/evaluations/evaluation-error-code.js +1 -0
- package/dist/dto/evaluations/evaluation-error-code.js.map +1 -1
- package/dist/dto/folders/list-folder-query.dto.d.ts +3 -3
- package/dist/dto/index.d.ts +3 -0
- package/dist/dto/index.js +11 -3
- package/dist/dto/index.js.map +1 -1
- package/dist/dto/instance-ai/instance-ai-mcp-create-connection-request.dto.d.ts +11 -0
- package/dist/dto/instance-ai/instance-ai-mcp-create-connection-request.dto.js +12 -0
- package/dist/dto/instance-ai/instance-ai-mcp-create-connection-request.dto.js.map +1 -0
- package/dist/dto/instance-ai/instance-ai-mcp-update-connection-request.dto.d.ts +13 -0
- package/dist/dto/instance-ai/instance-ai-mcp-update-connection-request.dto.js +13 -0
- package/dist/dto/instance-ai/instance-ai-mcp-update-connection-request.dto.js.map +1 -0
- package/dist/dto/log-streaming/create-destination.dto.d.ts +96 -96
- package/dist/dto/oauth/oauth-client.dto.d.ts +4 -4
- package/dist/dto/oidc/config.dto.d.ts +3 -1
- package/dist/dto/oidc/config.dto.js +1 -0
- package/dist/dto/oidc/config.dto.js.map +1 -1
- package/dist/dto/owner/owner-setup-request.dto.d.ts +1 -1
- package/dist/dto/packages/import-package-request.dto.d.ts +7 -1
- package/dist/dto/packages/import-package-request.dto.js +10 -1
- package/dist/dto/packages/import-package-request.dto.js.map +1 -1
- package/dist/dto/project/update-project.dto.js +1 -1
- package/dist/dto/project/update-project.dto.js.map +1 -1
- package/dist/dto/roles/role-project-members-response.dto.d.ts +5 -5
- package/dist/dto/source-control/push-work-folder-request.dto.d.ts +6 -6
- package/dist/dto/user/user-update-request.dto.js +2 -2
- package/dist/dto/user/user-update-request.dto.js.map +1 -1
- package/dist/dto/user/users-list-filter.dto.d.ts +3 -3
- package/dist/dto/workflows/base-workflow.dto.d.ts +9 -9
- package/dist/dto/workflows/base-workflow.dto.js +4 -4
- package/dist/dto/workflows/base-workflow.dto.js.map +1 -1
- package/dist/dto/workflows/create-workflow.dto.d.ts +9 -9
- package/dist/dto/workflows/update-workflow.dto.d.ts +9 -9
- package/dist/frontend-settings.d.ts +4 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/instance-registry-types.d.ts +22 -22
- package/dist/redaction-enforcement.d.ts +2 -16
- package/dist/redaction-enforcement.js +2 -12
- package/dist/redaction-enforcement.js.map +1 -1
- package/dist/schemas/breaking-changes.schema.d.ts +92 -92
- package/dist/schemas/credential-resolver.schema.d.ts +12 -12
- package/dist/schemas/credential-response.schema.d.ts +2 -2
- package/dist/schemas/data-table.schema.d.ts +2 -2
- package/dist/schemas/encryption-key.schema.d.ts +6 -6
- package/dist/schemas/evaluations.schema.d.ts +10 -0
- package/dist/schemas/evaluations.schema.js +2 -0
- package/dist/schemas/evaluations.schema.js.map +1 -1
- package/dist/schemas/instance-ai.schema.d.ts +332 -279
- package/dist/schemas/instance-ai.schema.js +12 -13
- package/dist/schemas/instance-ai.schema.js.map +1 -1
- package/dist/schemas/mcp-registry.schema.d.ts +29 -0
- package/dist/schemas/mcp-registry.schema.js +3 -0
- package/dist/schemas/mcp-registry.schema.js.map +1 -0
- package/dist/schemas/secrets-provider.schema.d.ts +12 -12
- package/dist/schemas/source-controlled-file.schema.d.ts +4 -4
- package/dist/schemas/usage.schema.d.ts +14 -14
- package/dist/schemas/user.schema.d.ts +18 -18
- package/package.json +7 -6
|
@@ -3,37 +3,6 @@ export declare const AgentModelSchema: z.ZodString;
|
|
|
3
3
|
declare const MemoryConfigSchema: z.ZodObject<{
|
|
4
4
|
enabled: z.ZodBoolean;
|
|
5
5
|
storage: z.ZodEnum<["n8n"]>;
|
|
6
|
-
semanticRecall: z.ZodOptional<z.ZodObject<{
|
|
7
|
-
topK: z.ZodNumber;
|
|
8
|
-
scope: z.ZodOptional<z.ZodEnum<["thread", "resource"]>>;
|
|
9
|
-
messageRange: z.ZodOptional<z.ZodObject<{
|
|
10
|
-
before: z.ZodNumber;
|
|
11
|
-
after: z.ZodNumber;
|
|
12
|
-
}, "strip", z.ZodTypeAny, {
|
|
13
|
-
before: number;
|
|
14
|
-
after: number;
|
|
15
|
-
}, {
|
|
16
|
-
before: number;
|
|
17
|
-
after: number;
|
|
18
|
-
}>>;
|
|
19
|
-
embedder: z.ZodOptional<z.ZodString>;
|
|
20
|
-
}, "strip", z.ZodTypeAny, {
|
|
21
|
-
topK: number;
|
|
22
|
-
scope?: "thread" | "resource" | undefined;
|
|
23
|
-
messageRange?: {
|
|
24
|
-
before: number;
|
|
25
|
-
after: number;
|
|
26
|
-
} | undefined;
|
|
27
|
-
embedder?: string | undefined;
|
|
28
|
-
}, {
|
|
29
|
-
topK: number;
|
|
30
|
-
scope?: "thread" | "resource" | undefined;
|
|
31
|
-
messageRange?: {
|
|
32
|
-
before: number;
|
|
33
|
-
after: number;
|
|
34
|
-
} | undefined;
|
|
35
|
-
embedder?: string | undefined;
|
|
36
|
-
}>>;
|
|
37
6
|
observationalMemory: z.ZodOptional<z.ZodObject<{
|
|
38
7
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
39
8
|
observerModel: z.ZodOptional<z.ZodObject<{
|
|
@@ -126,7 +95,6 @@ declare const MemoryConfigSchema: z.ZodObject<{
|
|
|
126
95
|
}, "strip", z.ZodTypeAny, {
|
|
127
96
|
credential: string;
|
|
128
97
|
enabled: true;
|
|
129
|
-
topK?: number | undefined;
|
|
130
98
|
reflectorModel?: {
|
|
131
99
|
model: string;
|
|
132
100
|
credential: string;
|
|
@@ -135,11 +103,11 @@ declare const MemoryConfigSchema: z.ZodObject<{
|
|
|
135
103
|
model: string;
|
|
136
104
|
credential: string;
|
|
137
105
|
} | undefined;
|
|
106
|
+
topK?: number | undefined;
|
|
138
107
|
maxEntriesPerRun?: number | undefined;
|
|
139
108
|
}, {
|
|
140
109
|
credential: string;
|
|
141
110
|
enabled: true;
|
|
142
|
-
topK?: number | undefined;
|
|
143
111
|
reflectorModel?: {
|
|
144
112
|
model: string;
|
|
145
113
|
credential: string;
|
|
@@ -148,20 +116,12 @@ declare const MemoryConfigSchema: z.ZodObject<{
|
|
|
148
116
|
model: string;
|
|
149
117
|
credential: string;
|
|
150
118
|
} | undefined;
|
|
119
|
+
topK?: number | undefined;
|
|
151
120
|
maxEntriesPerRun?: number | undefined;
|
|
152
121
|
}>]>>;
|
|
153
122
|
}, "strip", z.ZodTypeAny, {
|
|
154
123
|
enabled: boolean;
|
|
155
124
|
storage: "n8n";
|
|
156
|
-
semanticRecall?: {
|
|
157
|
-
topK: number;
|
|
158
|
-
scope?: "thread" | "resource" | undefined;
|
|
159
|
-
messageRange?: {
|
|
160
|
-
before: number;
|
|
161
|
-
after: number;
|
|
162
|
-
} | undefined;
|
|
163
|
-
embedder?: string | undefined;
|
|
164
|
-
} | undefined;
|
|
165
125
|
observationalMemory?: {
|
|
166
126
|
enabled?: boolean | undefined;
|
|
167
127
|
observerModel?: {
|
|
@@ -183,7 +143,6 @@ declare const MemoryConfigSchema: z.ZodObject<{
|
|
|
183
143
|
} | {
|
|
184
144
|
credential: string;
|
|
185
145
|
enabled: true;
|
|
186
|
-
topK?: number | undefined;
|
|
187
146
|
reflectorModel?: {
|
|
188
147
|
model: string;
|
|
189
148
|
credential: string;
|
|
@@ -192,20 +151,12 @@ declare const MemoryConfigSchema: z.ZodObject<{
|
|
|
192
151
|
model: string;
|
|
193
152
|
credential: string;
|
|
194
153
|
} | undefined;
|
|
154
|
+
topK?: number | undefined;
|
|
195
155
|
maxEntriesPerRun?: number | undefined;
|
|
196
156
|
} | undefined;
|
|
197
157
|
}, {
|
|
198
158
|
enabled: boolean;
|
|
199
159
|
storage: "n8n";
|
|
200
|
-
semanticRecall?: {
|
|
201
|
-
topK: number;
|
|
202
|
-
scope?: "thread" | "resource" | undefined;
|
|
203
|
-
messageRange?: {
|
|
204
|
-
before: number;
|
|
205
|
-
after: number;
|
|
206
|
-
} | undefined;
|
|
207
|
-
embedder?: string | undefined;
|
|
208
|
-
} | undefined;
|
|
209
160
|
observationalMemory?: {
|
|
210
161
|
enabled?: boolean | undefined;
|
|
211
162
|
observerModel?: {
|
|
@@ -227,7 +178,6 @@ declare const MemoryConfigSchema: z.ZodObject<{
|
|
|
227
178
|
} | {
|
|
228
179
|
credential: string;
|
|
229
180
|
enabled: true;
|
|
230
|
-
topK?: number | undefined;
|
|
231
181
|
reflectorModel?: {
|
|
232
182
|
model: string;
|
|
233
183
|
credential: string;
|
|
@@ -236,9 +186,12 @@ declare const MemoryConfigSchema: z.ZodObject<{
|
|
|
236
186
|
model: string;
|
|
237
187
|
credential: string;
|
|
238
188
|
} | undefined;
|
|
189
|
+
topK?: number | undefined;
|
|
239
190
|
maxEntriesPerRun?: number | undefined;
|
|
240
191
|
} | undefined;
|
|
241
192
|
}>;
|
|
193
|
+
export declare const SUB_AGENT_TASK_DIFFICULTIES: readonly ["low", "medium", "high"];
|
|
194
|
+
declare const SubAgentTaskDifficultySchema: z.ZodEnum<["low", "medium", "high"]>;
|
|
242
195
|
export declare const NodeConfigSchema: z.ZodObject<{
|
|
243
196
|
nodeType: z.ZodString;
|
|
244
197
|
nodeTypeVersion: z.ZodNumber;
|
|
@@ -247,27 +200,27 @@ export declare const NodeConfigSchema: z.ZodObject<{
|
|
|
247
200
|
id: z.ZodString;
|
|
248
201
|
name: z.ZodString;
|
|
249
202
|
}, "strip", z.ZodTypeAny, {
|
|
250
|
-
id: string;
|
|
251
203
|
name: string;
|
|
252
|
-
}, {
|
|
253
204
|
id: string;
|
|
205
|
+
}, {
|
|
254
206
|
name: string;
|
|
207
|
+
id: string;
|
|
255
208
|
}>>>;
|
|
256
209
|
}, "strip", z.ZodTypeAny, {
|
|
257
210
|
nodeType: string;
|
|
258
211
|
nodeTypeVersion: number;
|
|
259
212
|
nodeParameters: Record<string, unknown>;
|
|
260
213
|
credentials?: Record<string, {
|
|
261
|
-
id: string;
|
|
262
214
|
name: string;
|
|
215
|
+
id: string;
|
|
263
216
|
}> | undefined;
|
|
264
217
|
}, {
|
|
265
218
|
nodeType: string;
|
|
266
219
|
nodeTypeVersion: number;
|
|
267
220
|
nodeParameters?: Record<string, unknown> | undefined;
|
|
268
221
|
credentials?: Record<string, {
|
|
269
|
-
id: string;
|
|
270
222
|
name: string;
|
|
223
|
+
id: string;
|
|
271
224
|
}> | undefined;
|
|
272
225
|
}>;
|
|
273
226
|
declare const AgentJsonSkillConfigSchema: z.ZodObject<{
|
|
@@ -350,6 +303,12 @@ export declare const McpServerConfigSchema: z.ZodObject<{
|
|
|
350
303
|
transport: "sse" | "streamableHttp";
|
|
351
304
|
authentication: string;
|
|
352
305
|
description?: string | undefined;
|
|
306
|
+
approval?: {
|
|
307
|
+
mode: "global";
|
|
308
|
+
} | {
|
|
309
|
+
mode: "selected";
|
|
310
|
+
tools: string[];
|
|
311
|
+
} | undefined;
|
|
353
312
|
credential?: string | undefined;
|
|
354
313
|
metadata?: {
|
|
355
314
|
nodeTypeName?: string | undefined;
|
|
@@ -361,17 +320,17 @@ export declare const McpServerConfigSchema: z.ZodObject<{
|
|
|
361
320
|
mode: "exclude";
|
|
362
321
|
tools: string[];
|
|
363
322
|
} | undefined;
|
|
323
|
+
connectionTimeoutMs?: number | undefined;
|
|
324
|
+
}, {
|
|
325
|
+
name: string;
|
|
326
|
+
url: string;
|
|
327
|
+
description?: string | undefined;
|
|
364
328
|
approval?: {
|
|
365
329
|
mode: "global";
|
|
366
330
|
} | {
|
|
367
331
|
mode: "selected";
|
|
368
332
|
tools: string[];
|
|
369
333
|
} | undefined;
|
|
370
|
-
connectionTimeoutMs?: number | undefined;
|
|
371
|
-
}, {
|
|
372
|
-
name: string;
|
|
373
|
-
url: string;
|
|
374
|
-
description?: string | undefined;
|
|
375
334
|
credential?: string | undefined;
|
|
376
335
|
transport?: "sse" | "streamableHttp" | undefined;
|
|
377
336
|
authentication?: string | undefined;
|
|
@@ -385,12 +344,6 @@ export declare const McpServerConfigSchema: z.ZodObject<{
|
|
|
385
344
|
mode: "exclude";
|
|
386
345
|
tools?: string[] | undefined;
|
|
387
346
|
} | undefined;
|
|
388
|
-
approval?: {
|
|
389
|
-
mode: "global";
|
|
390
|
-
} | {
|
|
391
|
-
mode: "selected";
|
|
392
|
-
tools: string[];
|
|
393
|
-
} | undefined;
|
|
394
347
|
connectionTimeoutMs?: number | undefined;
|
|
395
348
|
}>;
|
|
396
349
|
declare const AgentJsonToolConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
@@ -430,6 +383,7 @@ declare const AgentJsonToolConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO
|
|
|
430
383
|
type: z.ZodLiteral<"node">;
|
|
431
384
|
name: z.ZodString;
|
|
432
385
|
description: z.ZodOptional<z.ZodString>;
|
|
386
|
+
inputSchema: z.ZodOptional<z.ZodNever>;
|
|
433
387
|
node: z.ZodObject<{
|
|
434
388
|
nodeType: z.ZodString;
|
|
435
389
|
nodeTypeVersion: z.ZodNumber;
|
|
@@ -438,27 +392,27 @@ declare const AgentJsonToolConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO
|
|
|
438
392
|
id: z.ZodString;
|
|
439
393
|
name: z.ZodString;
|
|
440
394
|
}, "strip", z.ZodTypeAny, {
|
|
441
|
-
id: string;
|
|
442
395
|
name: string;
|
|
443
|
-
}, {
|
|
444
396
|
id: string;
|
|
397
|
+
}, {
|
|
445
398
|
name: string;
|
|
399
|
+
id: string;
|
|
446
400
|
}>>>;
|
|
447
401
|
}, "strip", z.ZodTypeAny, {
|
|
448
402
|
nodeType: string;
|
|
449
403
|
nodeTypeVersion: number;
|
|
450
404
|
nodeParameters: Record<string, unknown>;
|
|
451
405
|
credentials?: Record<string, {
|
|
452
|
-
id: string;
|
|
453
406
|
name: string;
|
|
407
|
+
id: string;
|
|
454
408
|
}> | undefined;
|
|
455
409
|
}, {
|
|
456
410
|
nodeType: string;
|
|
457
411
|
nodeTypeVersion: number;
|
|
458
412
|
nodeParameters?: Record<string, unknown> | undefined;
|
|
459
413
|
credentials?: Record<string, {
|
|
460
|
-
id: string;
|
|
461
414
|
name: string;
|
|
415
|
+
id: string;
|
|
462
416
|
}> | undefined;
|
|
463
417
|
}>;
|
|
464
418
|
requireApproval: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -470,12 +424,13 @@ declare const AgentJsonToolConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO
|
|
|
470
424
|
nodeTypeVersion: number;
|
|
471
425
|
nodeParameters: Record<string, unknown>;
|
|
472
426
|
credentials?: Record<string, {
|
|
473
|
-
id: string;
|
|
474
427
|
name: string;
|
|
428
|
+
id: string;
|
|
475
429
|
}> | undefined;
|
|
476
430
|
};
|
|
477
431
|
description?: string | undefined;
|
|
478
432
|
requireApproval?: boolean | undefined;
|
|
433
|
+
inputSchema?: undefined;
|
|
479
434
|
}, {
|
|
480
435
|
type: "node";
|
|
481
436
|
name: string;
|
|
@@ -484,12 +439,13 @@ declare const AgentJsonToolConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO
|
|
|
484
439
|
nodeTypeVersion: number;
|
|
485
440
|
nodeParameters?: Record<string, unknown> | undefined;
|
|
486
441
|
credentials?: Record<string, {
|
|
487
|
-
id: string;
|
|
488
442
|
name: string;
|
|
443
|
+
id: string;
|
|
489
444
|
}> | undefined;
|
|
490
445
|
};
|
|
491
446
|
description?: string | undefined;
|
|
492
447
|
requireApproval?: boolean | undefined;
|
|
448
|
+
inputSchema?: undefined;
|
|
493
449
|
}>]>;
|
|
494
450
|
export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
495
451
|
name: z.ZodString;
|
|
@@ -500,37 +456,6 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
500
456
|
memory: z.ZodOptional<z.ZodObject<{
|
|
501
457
|
enabled: z.ZodBoolean;
|
|
502
458
|
storage: z.ZodEnum<["n8n"]>;
|
|
503
|
-
semanticRecall: z.ZodOptional<z.ZodObject<{
|
|
504
|
-
topK: z.ZodNumber;
|
|
505
|
-
scope: z.ZodOptional<z.ZodEnum<["thread", "resource"]>>;
|
|
506
|
-
messageRange: z.ZodOptional<z.ZodObject<{
|
|
507
|
-
before: z.ZodNumber;
|
|
508
|
-
after: z.ZodNumber;
|
|
509
|
-
}, "strip", z.ZodTypeAny, {
|
|
510
|
-
before: number;
|
|
511
|
-
after: number;
|
|
512
|
-
}, {
|
|
513
|
-
before: number;
|
|
514
|
-
after: number;
|
|
515
|
-
}>>;
|
|
516
|
-
embedder: z.ZodOptional<z.ZodString>;
|
|
517
|
-
}, "strip", z.ZodTypeAny, {
|
|
518
|
-
topK: number;
|
|
519
|
-
scope?: "thread" | "resource" | undefined;
|
|
520
|
-
messageRange?: {
|
|
521
|
-
before: number;
|
|
522
|
-
after: number;
|
|
523
|
-
} | undefined;
|
|
524
|
-
embedder?: string | undefined;
|
|
525
|
-
}, {
|
|
526
|
-
topK: number;
|
|
527
|
-
scope?: "thread" | "resource" | undefined;
|
|
528
|
-
messageRange?: {
|
|
529
|
-
before: number;
|
|
530
|
-
after: number;
|
|
531
|
-
} | undefined;
|
|
532
|
-
embedder?: string | undefined;
|
|
533
|
-
}>>;
|
|
534
459
|
observationalMemory: z.ZodOptional<z.ZodObject<{
|
|
535
460
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
536
461
|
observerModel: z.ZodOptional<z.ZodObject<{
|
|
@@ -623,7 +548,6 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
623
548
|
}, "strip", z.ZodTypeAny, {
|
|
624
549
|
credential: string;
|
|
625
550
|
enabled: true;
|
|
626
|
-
topK?: number | undefined;
|
|
627
551
|
reflectorModel?: {
|
|
628
552
|
model: string;
|
|
629
553
|
credential: string;
|
|
@@ -632,11 +556,11 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
632
556
|
model: string;
|
|
633
557
|
credential: string;
|
|
634
558
|
} | undefined;
|
|
559
|
+
topK?: number | undefined;
|
|
635
560
|
maxEntriesPerRun?: number | undefined;
|
|
636
561
|
}, {
|
|
637
562
|
credential: string;
|
|
638
563
|
enabled: true;
|
|
639
|
-
topK?: number | undefined;
|
|
640
564
|
reflectorModel?: {
|
|
641
565
|
model: string;
|
|
642
566
|
credential: string;
|
|
@@ -645,20 +569,12 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
645
569
|
model: string;
|
|
646
570
|
credential: string;
|
|
647
571
|
} | undefined;
|
|
572
|
+
topK?: number | undefined;
|
|
648
573
|
maxEntriesPerRun?: number | undefined;
|
|
649
574
|
}>]>>;
|
|
650
575
|
}, "strip", z.ZodTypeAny, {
|
|
651
576
|
enabled: boolean;
|
|
652
577
|
storage: "n8n";
|
|
653
|
-
semanticRecall?: {
|
|
654
|
-
topK: number;
|
|
655
|
-
scope?: "thread" | "resource" | undefined;
|
|
656
|
-
messageRange?: {
|
|
657
|
-
before: number;
|
|
658
|
-
after: number;
|
|
659
|
-
} | undefined;
|
|
660
|
-
embedder?: string | undefined;
|
|
661
|
-
} | undefined;
|
|
662
578
|
observationalMemory?: {
|
|
663
579
|
enabled?: boolean | undefined;
|
|
664
580
|
observerModel?: {
|
|
@@ -680,7 +596,6 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
680
596
|
} | {
|
|
681
597
|
credential: string;
|
|
682
598
|
enabled: true;
|
|
683
|
-
topK?: number | undefined;
|
|
684
599
|
reflectorModel?: {
|
|
685
600
|
model: string;
|
|
686
601
|
credential: string;
|
|
@@ -689,20 +604,12 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
689
604
|
model: string;
|
|
690
605
|
credential: string;
|
|
691
606
|
} | undefined;
|
|
607
|
+
topK?: number | undefined;
|
|
692
608
|
maxEntriesPerRun?: number | undefined;
|
|
693
609
|
} | undefined;
|
|
694
610
|
}, {
|
|
695
611
|
enabled: boolean;
|
|
696
612
|
storage: "n8n";
|
|
697
|
-
semanticRecall?: {
|
|
698
|
-
topK: number;
|
|
699
|
-
scope?: "thread" | "resource" | undefined;
|
|
700
|
-
messageRange?: {
|
|
701
|
-
before: number;
|
|
702
|
-
after: number;
|
|
703
|
-
} | undefined;
|
|
704
|
-
embedder?: string | undefined;
|
|
705
|
-
} | undefined;
|
|
706
613
|
observationalMemory?: {
|
|
707
614
|
enabled?: boolean | undefined;
|
|
708
615
|
observerModel?: {
|
|
@@ -724,7 +631,6 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
724
631
|
} | {
|
|
725
632
|
credential: string;
|
|
726
633
|
enabled: true;
|
|
727
|
-
topK?: number | undefined;
|
|
728
634
|
reflectorModel?: {
|
|
729
635
|
model: string;
|
|
730
636
|
credential: string;
|
|
@@ -733,9 +639,116 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
733
639
|
model: string;
|
|
734
640
|
credential: string;
|
|
735
641
|
} | undefined;
|
|
642
|
+
topK?: number | undefined;
|
|
736
643
|
maxEntriesPerRun?: number | undefined;
|
|
737
644
|
} | undefined;
|
|
738
645
|
}>>;
|
|
646
|
+
subAgents: z.ZodOptional<z.ZodObject<{
|
|
647
|
+
maxChildren: z.ZodOptional<z.ZodNumber>;
|
|
648
|
+
agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
649
|
+
agentId: z.ZodString;
|
|
650
|
+
}, "strip", z.ZodTypeAny, {
|
|
651
|
+
agentId: string;
|
|
652
|
+
}, {
|
|
653
|
+
agentId: string;
|
|
654
|
+
}>, "many">>;
|
|
655
|
+
modelsByDifficulty: z.ZodOptional<z.ZodObject<{
|
|
656
|
+
low: z.ZodOptional<z.ZodObject<{
|
|
657
|
+
model: z.ZodString;
|
|
658
|
+
credential: z.ZodString;
|
|
659
|
+
}, "strict", z.ZodTypeAny, {
|
|
660
|
+
model: string;
|
|
661
|
+
credential: string;
|
|
662
|
+
}, {
|
|
663
|
+
model: string;
|
|
664
|
+
credential: string;
|
|
665
|
+
}>>;
|
|
666
|
+
medium: z.ZodOptional<z.ZodObject<{
|
|
667
|
+
model: z.ZodString;
|
|
668
|
+
credential: z.ZodString;
|
|
669
|
+
}, "strict", z.ZodTypeAny, {
|
|
670
|
+
model: string;
|
|
671
|
+
credential: string;
|
|
672
|
+
}, {
|
|
673
|
+
model: string;
|
|
674
|
+
credential: string;
|
|
675
|
+
}>>;
|
|
676
|
+
high: z.ZodOptional<z.ZodObject<{
|
|
677
|
+
model: z.ZodString;
|
|
678
|
+
credential: z.ZodString;
|
|
679
|
+
}, "strict", z.ZodTypeAny, {
|
|
680
|
+
model: string;
|
|
681
|
+
credential: string;
|
|
682
|
+
}, {
|
|
683
|
+
model: string;
|
|
684
|
+
credential: string;
|
|
685
|
+
}>>;
|
|
686
|
+
}, "strict", z.ZodTypeAny, {
|
|
687
|
+
low?: {
|
|
688
|
+
model: string;
|
|
689
|
+
credential: string;
|
|
690
|
+
} | undefined;
|
|
691
|
+
medium?: {
|
|
692
|
+
model: string;
|
|
693
|
+
credential: string;
|
|
694
|
+
} | undefined;
|
|
695
|
+
high?: {
|
|
696
|
+
model: string;
|
|
697
|
+
credential: string;
|
|
698
|
+
} | undefined;
|
|
699
|
+
}, {
|
|
700
|
+
low?: {
|
|
701
|
+
model: string;
|
|
702
|
+
credential: string;
|
|
703
|
+
} | undefined;
|
|
704
|
+
medium?: {
|
|
705
|
+
model: string;
|
|
706
|
+
credential: string;
|
|
707
|
+
} | undefined;
|
|
708
|
+
high?: {
|
|
709
|
+
model: string;
|
|
710
|
+
credential: string;
|
|
711
|
+
} | undefined;
|
|
712
|
+
}>>;
|
|
713
|
+
}, "strict", z.ZodTypeAny, {
|
|
714
|
+
maxChildren?: number | undefined;
|
|
715
|
+
agents?: {
|
|
716
|
+
agentId: string;
|
|
717
|
+
}[] | undefined;
|
|
718
|
+
modelsByDifficulty?: {
|
|
719
|
+
low?: {
|
|
720
|
+
model: string;
|
|
721
|
+
credential: string;
|
|
722
|
+
} | undefined;
|
|
723
|
+
medium?: {
|
|
724
|
+
model: string;
|
|
725
|
+
credential: string;
|
|
726
|
+
} | undefined;
|
|
727
|
+
high?: {
|
|
728
|
+
model: string;
|
|
729
|
+
credential: string;
|
|
730
|
+
} | undefined;
|
|
731
|
+
} | undefined;
|
|
732
|
+
}, {
|
|
733
|
+
maxChildren?: number | undefined;
|
|
734
|
+
agents?: {
|
|
735
|
+
agentId: string;
|
|
736
|
+
}[] | undefined;
|
|
737
|
+
modelsByDifficulty?: {
|
|
738
|
+
low?: {
|
|
739
|
+
model: string;
|
|
740
|
+
credential: string;
|
|
741
|
+
} | undefined;
|
|
742
|
+
medium?: {
|
|
743
|
+
model: string;
|
|
744
|
+
credential: string;
|
|
745
|
+
} | undefined;
|
|
746
|
+
high?: {
|
|
747
|
+
model: string;
|
|
748
|
+
credential: string;
|
|
749
|
+
} | undefined;
|
|
750
|
+
} | undefined;
|
|
751
|
+
}>>;
|
|
739
752
|
tools: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
740
753
|
type: z.ZodLiteral<"custom">;
|
|
741
754
|
id: z.ZodString;
|
|
@@ -773,6 +786,7 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
773
786
|
type: z.ZodLiteral<"node">;
|
|
774
787
|
name: z.ZodString;
|
|
775
788
|
description: z.ZodOptional<z.ZodString>;
|
|
789
|
+
inputSchema: z.ZodOptional<z.ZodNever>;
|
|
776
790
|
node: z.ZodObject<{
|
|
777
791
|
nodeType: z.ZodString;
|
|
778
792
|
nodeTypeVersion: z.ZodNumber;
|
|
@@ -781,27 +795,27 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
781
795
|
id: z.ZodString;
|
|
782
796
|
name: z.ZodString;
|
|
783
797
|
}, "strip", z.ZodTypeAny, {
|
|
784
|
-
id: string;
|
|
785
798
|
name: string;
|
|
786
|
-
}, {
|
|
787
799
|
id: string;
|
|
800
|
+
}, {
|
|
788
801
|
name: string;
|
|
802
|
+
id: string;
|
|
789
803
|
}>>>;
|
|
790
804
|
}, "strip", z.ZodTypeAny, {
|
|
791
805
|
nodeType: string;
|
|
792
806
|
nodeTypeVersion: number;
|
|
793
807
|
nodeParameters: Record<string, unknown>;
|
|
794
808
|
credentials?: Record<string, {
|
|
795
|
-
id: string;
|
|
796
809
|
name: string;
|
|
810
|
+
id: string;
|
|
797
811
|
}> | undefined;
|
|
798
812
|
}, {
|
|
799
813
|
nodeType: string;
|
|
800
814
|
nodeTypeVersion: number;
|
|
801
815
|
nodeParameters?: Record<string, unknown> | undefined;
|
|
802
816
|
credentials?: Record<string, {
|
|
803
|
-
id: string;
|
|
804
817
|
name: string;
|
|
818
|
+
id: string;
|
|
805
819
|
}> | undefined;
|
|
806
820
|
}>;
|
|
807
821
|
requireApproval: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -813,12 +827,13 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
813
827
|
nodeTypeVersion: number;
|
|
814
828
|
nodeParameters: Record<string, unknown>;
|
|
815
829
|
credentials?: Record<string, {
|
|
816
|
-
id: string;
|
|
817
830
|
name: string;
|
|
831
|
+
id: string;
|
|
818
832
|
}> | undefined;
|
|
819
833
|
};
|
|
820
834
|
description?: string | undefined;
|
|
821
835
|
requireApproval?: boolean | undefined;
|
|
836
|
+
inputSchema?: undefined;
|
|
822
837
|
}, {
|
|
823
838
|
type: "node";
|
|
824
839
|
name: string;
|
|
@@ -827,12 +842,13 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
827
842
|
nodeTypeVersion: number;
|
|
828
843
|
nodeParameters?: Record<string, unknown> | undefined;
|
|
829
844
|
credentials?: Record<string, {
|
|
830
|
-
id: string;
|
|
831
845
|
name: string;
|
|
846
|
+
id: string;
|
|
832
847
|
}> | undefined;
|
|
833
848
|
};
|
|
834
849
|
description?: string | undefined;
|
|
835
850
|
requireApproval?: boolean | undefined;
|
|
851
|
+
inputSchema?: undefined;
|
|
836
852
|
}>]>, "many">>;
|
|
837
853
|
skills: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
838
854
|
type: z.ZodLiteral<"skill">;
|
|
@@ -967,6 +983,12 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
967
983
|
transport: "sse" | "streamableHttp";
|
|
968
984
|
authentication: string;
|
|
969
985
|
description?: string | undefined;
|
|
986
|
+
approval?: {
|
|
987
|
+
mode: "global";
|
|
988
|
+
} | {
|
|
989
|
+
mode: "selected";
|
|
990
|
+
tools: string[];
|
|
991
|
+
} | undefined;
|
|
970
992
|
credential?: string | undefined;
|
|
971
993
|
metadata?: {
|
|
972
994
|
nodeTypeName?: string | undefined;
|
|
@@ -978,17 +1000,17 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
978
1000
|
mode: "exclude";
|
|
979
1001
|
tools: string[];
|
|
980
1002
|
} | undefined;
|
|
1003
|
+
connectionTimeoutMs?: number | undefined;
|
|
1004
|
+
}, {
|
|
1005
|
+
name: string;
|
|
1006
|
+
url: string;
|
|
1007
|
+
description?: string | undefined;
|
|
981
1008
|
approval?: {
|
|
982
1009
|
mode: "global";
|
|
983
1010
|
} | {
|
|
984
1011
|
mode: "selected";
|
|
985
1012
|
tools: string[];
|
|
986
1013
|
} | undefined;
|
|
987
|
-
connectionTimeoutMs?: number | undefined;
|
|
988
|
-
}, {
|
|
989
|
-
name: string;
|
|
990
|
-
url: string;
|
|
991
|
-
description?: string | undefined;
|
|
992
1014
|
credential?: string | undefined;
|
|
993
1015
|
transport?: "sse" | "streamableHttp" | undefined;
|
|
994
1016
|
authentication?: string | undefined;
|
|
@@ -1002,12 +1024,6 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
1002
1024
|
mode: "exclude";
|
|
1003
1025
|
tools?: string[] | undefined;
|
|
1004
1026
|
} | undefined;
|
|
1005
|
-
approval?: {
|
|
1006
|
-
mode: "global";
|
|
1007
|
-
} | {
|
|
1008
|
-
mode: "selected";
|
|
1009
|
-
tools: string[];
|
|
1010
|
-
} | undefined;
|
|
1011
1027
|
connectionTimeoutMs?: number | undefined;
|
|
1012
1028
|
}>, "many">, {
|
|
1013
1029
|
name: string;
|
|
@@ -1015,6 +1031,12 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
1015
1031
|
transport: "sse" | "streamableHttp";
|
|
1016
1032
|
authentication: string;
|
|
1017
1033
|
description?: string | undefined;
|
|
1034
|
+
approval?: {
|
|
1035
|
+
mode: "global";
|
|
1036
|
+
} | {
|
|
1037
|
+
mode: "selected";
|
|
1038
|
+
tools: string[];
|
|
1039
|
+
} | undefined;
|
|
1018
1040
|
credential?: string | undefined;
|
|
1019
1041
|
metadata?: {
|
|
1020
1042
|
nodeTypeName?: string | undefined;
|
|
@@ -1026,17 +1048,17 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
1026
1048
|
mode: "exclude";
|
|
1027
1049
|
tools: string[];
|
|
1028
1050
|
} | undefined;
|
|
1051
|
+
connectionTimeoutMs?: number | undefined;
|
|
1052
|
+
}[], {
|
|
1053
|
+
name: string;
|
|
1054
|
+
url: string;
|
|
1055
|
+
description?: string | undefined;
|
|
1029
1056
|
approval?: {
|
|
1030
1057
|
mode: "global";
|
|
1031
1058
|
} | {
|
|
1032
1059
|
mode: "selected";
|
|
1033
1060
|
tools: string[];
|
|
1034
1061
|
} | undefined;
|
|
1035
|
-
connectionTimeoutMs?: number | undefined;
|
|
1036
|
-
}[], {
|
|
1037
|
-
name: string;
|
|
1038
|
-
url: string;
|
|
1039
|
-
description?: string | undefined;
|
|
1040
1062
|
credential?: string | undefined;
|
|
1041
1063
|
transport?: "sse" | "streamableHttp" | undefined;
|
|
1042
1064
|
authentication?: string | undefined;
|
|
@@ -1050,12 +1072,6 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
1050
1072
|
mode: "exclude";
|
|
1051
1073
|
tools?: string[] | undefined;
|
|
1052
1074
|
} | undefined;
|
|
1053
|
-
approval?: {
|
|
1054
|
-
mode: "global";
|
|
1055
|
-
} | {
|
|
1056
|
-
mode: "selected";
|
|
1057
|
-
tools: string[];
|
|
1058
|
-
} | undefined;
|
|
1059
1075
|
connectionTimeoutMs?: number | undefined;
|
|
1060
1076
|
}[]>>;
|
|
1061
1077
|
config: z.ZodOptional<z.ZodObject<{
|
|
@@ -1152,25 +1168,17 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
1152
1168
|
nodeTypeVersion: number;
|
|
1153
1169
|
nodeParameters: Record<string, unknown>;
|
|
1154
1170
|
credentials?: Record<string, {
|
|
1155
|
-
id: string;
|
|
1156
1171
|
name: string;
|
|
1172
|
+
id: string;
|
|
1157
1173
|
}> | undefined;
|
|
1158
1174
|
};
|
|
1159
1175
|
description?: string | undefined;
|
|
1160
1176
|
requireApproval?: boolean | undefined;
|
|
1177
|
+
inputSchema?: undefined;
|
|
1161
1178
|
})[] | undefined;
|
|
1162
1179
|
memory?: {
|
|
1163
1180
|
enabled: boolean;
|
|
1164
1181
|
storage: "n8n";
|
|
1165
|
-
semanticRecall?: {
|
|
1166
|
-
topK: number;
|
|
1167
|
-
scope?: "thread" | "resource" | undefined;
|
|
1168
|
-
messageRange?: {
|
|
1169
|
-
before: number;
|
|
1170
|
-
after: number;
|
|
1171
|
-
} | undefined;
|
|
1172
|
-
embedder?: string | undefined;
|
|
1173
|
-
} | undefined;
|
|
1174
1182
|
observationalMemory?: {
|
|
1175
1183
|
enabled?: boolean | undefined;
|
|
1176
1184
|
observerModel?: {
|
|
@@ -1192,7 +1200,6 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
1192
1200
|
} | {
|
|
1193
1201
|
credential: string;
|
|
1194
1202
|
enabled: true;
|
|
1195
|
-
topK?: number | undefined;
|
|
1196
1203
|
reflectorModel?: {
|
|
1197
1204
|
model: string;
|
|
1198
1205
|
credential: string;
|
|
@@ -1201,9 +1208,30 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
1201
1208
|
model: string;
|
|
1202
1209
|
credential: string;
|
|
1203
1210
|
} | undefined;
|
|
1211
|
+
topK?: number | undefined;
|
|
1204
1212
|
maxEntriesPerRun?: number | undefined;
|
|
1205
1213
|
} | undefined;
|
|
1206
1214
|
} | undefined;
|
|
1215
|
+
subAgents?: {
|
|
1216
|
+
maxChildren?: number | undefined;
|
|
1217
|
+
agents?: {
|
|
1218
|
+
agentId: string;
|
|
1219
|
+
}[] | undefined;
|
|
1220
|
+
modelsByDifficulty?: {
|
|
1221
|
+
low?: {
|
|
1222
|
+
model: string;
|
|
1223
|
+
credential: string;
|
|
1224
|
+
} | undefined;
|
|
1225
|
+
medium?: {
|
|
1226
|
+
model: string;
|
|
1227
|
+
credential: string;
|
|
1228
|
+
} | undefined;
|
|
1229
|
+
high?: {
|
|
1230
|
+
model: string;
|
|
1231
|
+
credential: string;
|
|
1232
|
+
} | undefined;
|
|
1233
|
+
} | undefined;
|
|
1234
|
+
} | undefined;
|
|
1207
1235
|
skills?: {
|
|
1208
1236
|
type: "skill";
|
|
1209
1237
|
id: string;
|
|
@@ -1234,6 +1262,12 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
1234
1262
|
transport: "sse" | "streamableHttp";
|
|
1235
1263
|
authentication: string;
|
|
1236
1264
|
description?: string | undefined;
|
|
1265
|
+
approval?: {
|
|
1266
|
+
mode: "global";
|
|
1267
|
+
} | {
|
|
1268
|
+
mode: "selected";
|
|
1269
|
+
tools: string[];
|
|
1270
|
+
} | undefined;
|
|
1237
1271
|
credential?: string | undefined;
|
|
1238
1272
|
metadata?: {
|
|
1239
1273
|
nodeTypeName?: string | undefined;
|
|
@@ -1245,12 +1279,6 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
1245
1279
|
mode: "exclude";
|
|
1246
1280
|
tools: string[];
|
|
1247
1281
|
} | undefined;
|
|
1248
|
-
approval?: {
|
|
1249
|
-
mode: "global";
|
|
1250
|
-
} | {
|
|
1251
|
-
mode: "selected";
|
|
1252
|
-
tools: string[];
|
|
1253
|
-
} | undefined;
|
|
1254
1282
|
connectionTimeoutMs?: number | undefined;
|
|
1255
1283
|
}[] | undefined;
|
|
1256
1284
|
config?: {
|
|
@@ -1295,25 +1323,17 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
1295
1323
|
nodeTypeVersion: number;
|
|
1296
1324
|
nodeParameters?: Record<string, unknown> | undefined;
|
|
1297
1325
|
credentials?: Record<string, {
|
|
1298
|
-
id: string;
|
|
1299
1326
|
name: string;
|
|
1327
|
+
id: string;
|
|
1300
1328
|
}> | undefined;
|
|
1301
1329
|
};
|
|
1302
1330
|
description?: string | undefined;
|
|
1303
1331
|
requireApproval?: boolean | undefined;
|
|
1332
|
+
inputSchema?: undefined;
|
|
1304
1333
|
})[] | undefined;
|
|
1305
1334
|
memory?: {
|
|
1306
1335
|
enabled: boolean;
|
|
1307
1336
|
storage: "n8n";
|
|
1308
|
-
semanticRecall?: {
|
|
1309
|
-
topK: number;
|
|
1310
|
-
scope?: "thread" | "resource" | undefined;
|
|
1311
|
-
messageRange?: {
|
|
1312
|
-
before: number;
|
|
1313
|
-
after: number;
|
|
1314
|
-
} | undefined;
|
|
1315
|
-
embedder?: string | undefined;
|
|
1316
|
-
} | undefined;
|
|
1317
1337
|
observationalMemory?: {
|
|
1318
1338
|
enabled?: boolean | undefined;
|
|
1319
1339
|
observerModel?: {
|
|
@@ -1335,7 +1355,6 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
1335
1355
|
} | {
|
|
1336
1356
|
credential: string;
|
|
1337
1357
|
enabled: true;
|
|
1338
|
-
topK?: number | undefined;
|
|
1339
1358
|
reflectorModel?: {
|
|
1340
1359
|
model: string;
|
|
1341
1360
|
credential: string;
|
|
@@ -1344,9 +1363,30 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
1344
1363
|
model: string;
|
|
1345
1364
|
credential: string;
|
|
1346
1365
|
} | undefined;
|
|
1366
|
+
topK?: number | undefined;
|
|
1347
1367
|
maxEntriesPerRun?: number | undefined;
|
|
1348
1368
|
} | undefined;
|
|
1349
1369
|
} | undefined;
|
|
1370
|
+
subAgents?: {
|
|
1371
|
+
maxChildren?: number | undefined;
|
|
1372
|
+
agents?: {
|
|
1373
|
+
agentId: string;
|
|
1374
|
+
}[] | undefined;
|
|
1375
|
+
modelsByDifficulty?: {
|
|
1376
|
+
low?: {
|
|
1377
|
+
model: string;
|
|
1378
|
+
credential: string;
|
|
1379
|
+
} | undefined;
|
|
1380
|
+
medium?: {
|
|
1381
|
+
model: string;
|
|
1382
|
+
credential: string;
|
|
1383
|
+
} | undefined;
|
|
1384
|
+
high?: {
|
|
1385
|
+
model: string;
|
|
1386
|
+
credential: string;
|
|
1387
|
+
} | undefined;
|
|
1388
|
+
} | undefined;
|
|
1389
|
+
} | undefined;
|
|
1350
1390
|
skills?: {
|
|
1351
1391
|
type: "skill";
|
|
1352
1392
|
id: string;
|
|
@@ -1375,10 +1415,16 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
1375
1415
|
name: string;
|
|
1376
1416
|
url: string;
|
|
1377
1417
|
description?: string | undefined;
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1418
|
+
approval?: {
|
|
1419
|
+
mode: "global";
|
|
1420
|
+
} | {
|
|
1421
|
+
mode: "selected";
|
|
1422
|
+
tools: string[];
|
|
1423
|
+
} | undefined;
|
|
1424
|
+
credential?: string | undefined;
|
|
1425
|
+
transport?: "sse" | "streamableHttp" | undefined;
|
|
1426
|
+
authentication?: string | undefined;
|
|
1427
|
+
metadata?: {
|
|
1382
1428
|
nodeTypeName?: string | undefined;
|
|
1383
1429
|
} | undefined;
|
|
1384
1430
|
toolFilter?: {
|
|
@@ -1388,12 +1434,6 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
1388
1434
|
mode: "exclude";
|
|
1389
1435
|
tools?: string[] | undefined;
|
|
1390
1436
|
} | undefined;
|
|
1391
|
-
approval?: {
|
|
1392
|
-
mode: "global";
|
|
1393
|
-
} | {
|
|
1394
|
-
mode: "selected";
|
|
1395
|
-
tools: string[];
|
|
1396
|
-
} | undefined;
|
|
1397
1437
|
connectionTimeoutMs?: number | undefined;
|
|
1398
1438
|
}[] | undefined;
|
|
1399
1439
|
config?: {
|
|
@@ -1421,37 +1461,6 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
1421
1461
|
memory: z.ZodOptional<z.ZodObject<{
|
|
1422
1462
|
enabled: z.ZodBoolean;
|
|
1423
1463
|
storage: z.ZodEnum<["n8n"]>;
|
|
1424
|
-
semanticRecall: z.ZodOptional<z.ZodObject<{
|
|
1425
|
-
topK: z.ZodNumber;
|
|
1426
|
-
scope: z.ZodOptional<z.ZodEnum<["thread", "resource"]>>;
|
|
1427
|
-
messageRange: z.ZodOptional<z.ZodObject<{
|
|
1428
|
-
before: z.ZodNumber;
|
|
1429
|
-
after: z.ZodNumber;
|
|
1430
|
-
}, "strip", z.ZodTypeAny, {
|
|
1431
|
-
before: number;
|
|
1432
|
-
after: number;
|
|
1433
|
-
}, {
|
|
1434
|
-
before: number;
|
|
1435
|
-
after: number;
|
|
1436
|
-
}>>;
|
|
1437
|
-
embedder: z.ZodOptional<z.ZodString>;
|
|
1438
|
-
}, "strip", z.ZodTypeAny, {
|
|
1439
|
-
topK: number;
|
|
1440
|
-
scope?: "thread" | "resource" | undefined;
|
|
1441
|
-
messageRange?: {
|
|
1442
|
-
before: number;
|
|
1443
|
-
after: number;
|
|
1444
|
-
} | undefined;
|
|
1445
|
-
embedder?: string | undefined;
|
|
1446
|
-
}, {
|
|
1447
|
-
topK: number;
|
|
1448
|
-
scope?: "thread" | "resource" | undefined;
|
|
1449
|
-
messageRange?: {
|
|
1450
|
-
before: number;
|
|
1451
|
-
after: number;
|
|
1452
|
-
} | undefined;
|
|
1453
|
-
embedder?: string | undefined;
|
|
1454
|
-
}>>;
|
|
1455
1464
|
observationalMemory: z.ZodOptional<z.ZodObject<{
|
|
1456
1465
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1457
1466
|
observerModel: z.ZodOptional<z.ZodObject<{
|
|
@@ -1544,7 +1553,6 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
1544
1553
|
}, "strip", z.ZodTypeAny, {
|
|
1545
1554
|
credential: string;
|
|
1546
1555
|
enabled: true;
|
|
1547
|
-
topK?: number | undefined;
|
|
1548
1556
|
reflectorModel?: {
|
|
1549
1557
|
model: string;
|
|
1550
1558
|
credential: string;
|
|
@@ -1553,11 +1561,11 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
1553
1561
|
model: string;
|
|
1554
1562
|
credential: string;
|
|
1555
1563
|
} | undefined;
|
|
1564
|
+
topK?: number | undefined;
|
|
1556
1565
|
maxEntriesPerRun?: number | undefined;
|
|
1557
1566
|
}, {
|
|
1558
1567
|
credential: string;
|
|
1559
1568
|
enabled: true;
|
|
1560
|
-
topK?: number | undefined;
|
|
1561
1569
|
reflectorModel?: {
|
|
1562
1570
|
model: string;
|
|
1563
1571
|
credential: string;
|
|
@@ -1566,20 +1574,12 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
1566
1574
|
model: string;
|
|
1567
1575
|
credential: string;
|
|
1568
1576
|
} | undefined;
|
|
1577
|
+
topK?: number | undefined;
|
|
1569
1578
|
maxEntriesPerRun?: number | undefined;
|
|
1570
1579
|
}>]>>;
|
|
1571
1580
|
}, "strip", z.ZodTypeAny, {
|
|
1572
1581
|
enabled: boolean;
|
|
1573
1582
|
storage: "n8n";
|
|
1574
|
-
semanticRecall?: {
|
|
1575
|
-
topK: number;
|
|
1576
|
-
scope?: "thread" | "resource" | undefined;
|
|
1577
|
-
messageRange?: {
|
|
1578
|
-
before: number;
|
|
1579
|
-
after: number;
|
|
1580
|
-
} | undefined;
|
|
1581
|
-
embedder?: string | undefined;
|
|
1582
|
-
} | undefined;
|
|
1583
1583
|
observationalMemory?: {
|
|
1584
1584
|
enabled?: boolean | undefined;
|
|
1585
1585
|
observerModel?: {
|
|
@@ -1601,7 +1601,6 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
1601
1601
|
} | {
|
|
1602
1602
|
credential: string;
|
|
1603
1603
|
enabled: true;
|
|
1604
|
-
topK?: number | undefined;
|
|
1605
1604
|
reflectorModel?: {
|
|
1606
1605
|
model: string;
|
|
1607
1606
|
credential: string;
|
|
@@ -1610,20 +1609,12 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
1610
1609
|
model: string;
|
|
1611
1610
|
credential: string;
|
|
1612
1611
|
} | undefined;
|
|
1612
|
+
topK?: number | undefined;
|
|
1613
1613
|
maxEntriesPerRun?: number | undefined;
|
|
1614
1614
|
} | undefined;
|
|
1615
1615
|
}, {
|
|
1616
1616
|
enabled: boolean;
|
|
1617
1617
|
storage: "n8n";
|
|
1618
|
-
semanticRecall?: {
|
|
1619
|
-
topK: number;
|
|
1620
|
-
scope?: "thread" | "resource" | undefined;
|
|
1621
|
-
messageRange?: {
|
|
1622
|
-
before: number;
|
|
1623
|
-
after: number;
|
|
1624
|
-
} | undefined;
|
|
1625
|
-
embedder?: string | undefined;
|
|
1626
|
-
} | undefined;
|
|
1627
1618
|
observationalMemory?: {
|
|
1628
1619
|
enabled?: boolean | undefined;
|
|
1629
1620
|
observerModel?: {
|
|
@@ -1645,7 +1636,6 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
1645
1636
|
} | {
|
|
1646
1637
|
credential: string;
|
|
1647
1638
|
enabled: true;
|
|
1648
|
-
topK?: number | undefined;
|
|
1649
1639
|
reflectorModel?: {
|
|
1650
1640
|
model: string;
|
|
1651
1641
|
credential: string;
|
|
@@ -1654,9 +1644,116 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
1654
1644
|
model: string;
|
|
1655
1645
|
credential: string;
|
|
1656
1646
|
} | undefined;
|
|
1647
|
+
topK?: number | undefined;
|
|
1657
1648
|
maxEntriesPerRun?: number | undefined;
|
|
1658
1649
|
} | undefined;
|
|
1659
1650
|
}>>;
|
|
1651
|
+
subAgents: z.ZodOptional<z.ZodObject<{
|
|
1652
|
+
maxChildren: z.ZodOptional<z.ZodNumber>;
|
|
1653
|
+
agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1654
|
+
agentId: z.ZodString;
|
|
1655
|
+
}, "strip", z.ZodTypeAny, {
|
|
1656
|
+
agentId: string;
|
|
1657
|
+
}, {
|
|
1658
|
+
agentId: string;
|
|
1659
|
+
}>, "many">>;
|
|
1660
|
+
modelsByDifficulty: z.ZodOptional<z.ZodObject<{
|
|
1661
|
+
low: z.ZodOptional<z.ZodObject<{
|
|
1662
|
+
model: z.ZodString;
|
|
1663
|
+
credential: z.ZodString;
|
|
1664
|
+
}, "strict", z.ZodTypeAny, {
|
|
1665
|
+
model: string;
|
|
1666
|
+
credential: string;
|
|
1667
|
+
}, {
|
|
1668
|
+
model: string;
|
|
1669
|
+
credential: string;
|
|
1670
|
+
}>>;
|
|
1671
|
+
medium: z.ZodOptional<z.ZodObject<{
|
|
1672
|
+
model: z.ZodString;
|
|
1673
|
+
credential: z.ZodString;
|
|
1674
|
+
}, "strict", z.ZodTypeAny, {
|
|
1675
|
+
model: string;
|
|
1676
|
+
credential: string;
|
|
1677
|
+
}, {
|
|
1678
|
+
model: string;
|
|
1679
|
+
credential: string;
|
|
1680
|
+
}>>;
|
|
1681
|
+
high: z.ZodOptional<z.ZodObject<{
|
|
1682
|
+
model: z.ZodString;
|
|
1683
|
+
credential: z.ZodString;
|
|
1684
|
+
}, "strict", z.ZodTypeAny, {
|
|
1685
|
+
model: string;
|
|
1686
|
+
credential: string;
|
|
1687
|
+
}, {
|
|
1688
|
+
model: string;
|
|
1689
|
+
credential: string;
|
|
1690
|
+
}>>;
|
|
1691
|
+
}, "strict", z.ZodTypeAny, {
|
|
1692
|
+
low?: {
|
|
1693
|
+
model: string;
|
|
1694
|
+
credential: string;
|
|
1695
|
+
} | undefined;
|
|
1696
|
+
medium?: {
|
|
1697
|
+
model: string;
|
|
1698
|
+
credential: string;
|
|
1699
|
+
} | undefined;
|
|
1700
|
+
high?: {
|
|
1701
|
+
model: string;
|
|
1702
|
+
credential: string;
|
|
1703
|
+
} | undefined;
|
|
1704
|
+
}, {
|
|
1705
|
+
low?: {
|
|
1706
|
+
model: string;
|
|
1707
|
+
credential: string;
|
|
1708
|
+
} | undefined;
|
|
1709
|
+
medium?: {
|
|
1710
|
+
model: string;
|
|
1711
|
+
credential: string;
|
|
1712
|
+
} | undefined;
|
|
1713
|
+
high?: {
|
|
1714
|
+
model: string;
|
|
1715
|
+
credential: string;
|
|
1716
|
+
} | undefined;
|
|
1717
|
+
}>>;
|
|
1718
|
+
}, "strict", z.ZodTypeAny, {
|
|
1719
|
+
maxChildren?: number | undefined;
|
|
1720
|
+
agents?: {
|
|
1721
|
+
agentId: string;
|
|
1722
|
+
}[] | undefined;
|
|
1723
|
+
modelsByDifficulty?: {
|
|
1724
|
+
low?: {
|
|
1725
|
+
model: string;
|
|
1726
|
+
credential: string;
|
|
1727
|
+
} | undefined;
|
|
1728
|
+
medium?: {
|
|
1729
|
+
model: string;
|
|
1730
|
+
credential: string;
|
|
1731
|
+
} | undefined;
|
|
1732
|
+
high?: {
|
|
1733
|
+
model: string;
|
|
1734
|
+
credential: string;
|
|
1735
|
+
} | undefined;
|
|
1736
|
+
} | undefined;
|
|
1737
|
+
}, {
|
|
1738
|
+
maxChildren?: number | undefined;
|
|
1739
|
+
agents?: {
|
|
1740
|
+
agentId: string;
|
|
1741
|
+
}[] | undefined;
|
|
1742
|
+
modelsByDifficulty?: {
|
|
1743
|
+
low?: {
|
|
1744
|
+
model: string;
|
|
1745
|
+
credential: string;
|
|
1746
|
+
} | undefined;
|
|
1747
|
+
medium?: {
|
|
1748
|
+
model: string;
|
|
1749
|
+
credential: string;
|
|
1750
|
+
} | undefined;
|
|
1751
|
+
high?: {
|
|
1752
|
+
model: string;
|
|
1753
|
+
credential: string;
|
|
1754
|
+
} | undefined;
|
|
1755
|
+
} | undefined;
|
|
1756
|
+
}>>;
|
|
1660
1757
|
tools: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1661
1758
|
type: z.ZodLiteral<"custom">;
|
|
1662
1759
|
id: z.ZodString;
|
|
@@ -1694,6 +1791,7 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
1694
1791
|
type: z.ZodLiteral<"node">;
|
|
1695
1792
|
name: z.ZodString;
|
|
1696
1793
|
description: z.ZodOptional<z.ZodString>;
|
|
1794
|
+
inputSchema: z.ZodOptional<z.ZodNever>;
|
|
1697
1795
|
node: z.ZodObject<{
|
|
1698
1796
|
nodeType: z.ZodString;
|
|
1699
1797
|
nodeTypeVersion: z.ZodNumber;
|
|
@@ -1702,27 +1800,27 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
1702
1800
|
id: z.ZodString;
|
|
1703
1801
|
name: z.ZodString;
|
|
1704
1802
|
}, "strip", z.ZodTypeAny, {
|
|
1705
|
-
id: string;
|
|
1706
1803
|
name: string;
|
|
1707
|
-
}, {
|
|
1708
1804
|
id: string;
|
|
1805
|
+
}, {
|
|
1709
1806
|
name: string;
|
|
1807
|
+
id: string;
|
|
1710
1808
|
}>>>;
|
|
1711
1809
|
}, "strip", z.ZodTypeAny, {
|
|
1712
1810
|
nodeType: string;
|
|
1713
1811
|
nodeTypeVersion: number;
|
|
1714
1812
|
nodeParameters: Record<string, unknown>;
|
|
1715
1813
|
credentials?: Record<string, {
|
|
1716
|
-
id: string;
|
|
1717
1814
|
name: string;
|
|
1815
|
+
id: string;
|
|
1718
1816
|
}> | undefined;
|
|
1719
1817
|
}, {
|
|
1720
1818
|
nodeType: string;
|
|
1721
1819
|
nodeTypeVersion: number;
|
|
1722
1820
|
nodeParameters?: Record<string, unknown> | undefined;
|
|
1723
1821
|
credentials?: Record<string, {
|
|
1724
|
-
id: string;
|
|
1725
1822
|
name: string;
|
|
1823
|
+
id: string;
|
|
1726
1824
|
}> | undefined;
|
|
1727
1825
|
}>;
|
|
1728
1826
|
requireApproval: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1734,12 +1832,13 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
1734
1832
|
nodeTypeVersion: number;
|
|
1735
1833
|
nodeParameters: Record<string, unknown>;
|
|
1736
1834
|
credentials?: Record<string, {
|
|
1737
|
-
id: string;
|
|
1738
1835
|
name: string;
|
|
1836
|
+
id: string;
|
|
1739
1837
|
}> | undefined;
|
|
1740
1838
|
};
|
|
1741
1839
|
description?: string | undefined;
|
|
1742
1840
|
requireApproval?: boolean | undefined;
|
|
1841
|
+
inputSchema?: undefined;
|
|
1743
1842
|
}, {
|
|
1744
1843
|
type: "node";
|
|
1745
1844
|
name: string;
|
|
@@ -1748,12 +1847,13 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
1748
1847
|
nodeTypeVersion: number;
|
|
1749
1848
|
nodeParameters?: Record<string, unknown> | undefined;
|
|
1750
1849
|
credentials?: Record<string, {
|
|
1751
|
-
id: string;
|
|
1752
1850
|
name: string;
|
|
1851
|
+
id: string;
|
|
1753
1852
|
}> | undefined;
|
|
1754
1853
|
};
|
|
1755
1854
|
description?: string | undefined;
|
|
1756
1855
|
requireApproval?: boolean | undefined;
|
|
1856
|
+
inputSchema?: undefined;
|
|
1757
1857
|
}>]>, "many">>;
|
|
1758
1858
|
skills: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1759
1859
|
type: z.ZodLiteral<"skill">;
|
|
@@ -1888,6 +1988,12 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
1888
1988
|
transport: "sse" | "streamableHttp";
|
|
1889
1989
|
authentication: string;
|
|
1890
1990
|
description?: string | undefined;
|
|
1991
|
+
approval?: {
|
|
1992
|
+
mode: "global";
|
|
1993
|
+
} | {
|
|
1994
|
+
mode: "selected";
|
|
1995
|
+
tools: string[];
|
|
1996
|
+
} | undefined;
|
|
1891
1997
|
credential?: string | undefined;
|
|
1892
1998
|
metadata?: {
|
|
1893
1999
|
nodeTypeName?: string | undefined;
|
|
@@ -1899,17 +2005,17 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
1899
2005
|
mode: "exclude";
|
|
1900
2006
|
tools: string[];
|
|
1901
2007
|
} | undefined;
|
|
2008
|
+
connectionTimeoutMs?: number | undefined;
|
|
2009
|
+
}, {
|
|
2010
|
+
name: string;
|
|
2011
|
+
url: string;
|
|
2012
|
+
description?: string | undefined;
|
|
1902
2013
|
approval?: {
|
|
1903
2014
|
mode: "global";
|
|
1904
2015
|
} | {
|
|
1905
2016
|
mode: "selected";
|
|
1906
2017
|
tools: string[];
|
|
1907
2018
|
} | undefined;
|
|
1908
|
-
connectionTimeoutMs?: number | undefined;
|
|
1909
|
-
}, {
|
|
1910
|
-
name: string;
|
|
1911
|
-
url: string;
|
|
1912
|
-
description?: string | undefined;
|
|
1913
2019
|
credential?: string | undefined;
|
|
1914
2020
|
transport?: "sse" | "streamableHttp" | undefined;
|
|
1915
2021
|
authentication?: string | undefined;
|
|
@@ -1923,12 +2029,6 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
1923
2029
|
mode: "exclude";
|
|
1924
2030
|
tools?: string[] | undefined;
|
|
1925
2031
|
} | undefined;
|
|
1926
|
-
approval?: {
|
|
1927
|
-
mode: "global";
|
|
1928
|
-
} | {
|
|
1929
|
-
mode: "selected";
|
|
1930
|
-
tools: string[];
|
|
1931
|
-
} | undefined;
|
|
1932
2032
|
connectionTimeoutMs?: number | undefined;
|
|
1933
2033
|
}>, "many">, {
|
|
1934
2034
|
name: string;
|
|
@@ -1936,6 +2036,12 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
1936
2036
|
transport: "sse" | "streamableHttp";
|
|
1937
2037
|
authentication: string;
|
|
1938
2038
|
description?: string | undefined;
|
|
2039
|
+
approval?: {
|
|
2040
|
+
mode: "global";
|
|
2041
|
+
} | {
|
|
2042
|
+
mode: "selected";
|
|
2043
|
+
tools: string[];
|
|
2044
|
+
} | undefined;
|
|
1939
2045
|
credential?: string | undefined;
|
|
1940
2046
|
metadata?: {
|
|
1941
2047
|
nodeTypeName?: string | undefined;
|
|
@@ -1947,17 +2053,17 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
1947
2053
|
mode: "exclude";
|
|
1948
2054
|
tools: string[];
|
|
1949
2055
|
} | undefined;
|
|
2056
|
+
connectionTimeoutMs?: number | undefined;
|
|
2057
|
+
}[], {
|
|
2058
|
+
name: string;
|
|
2059
|
+
url: string;
|
|
2060
|
+
description?: string | undefined;
|
|
1950
2061
|
approval?: {
|
|
1951
2062
|
mode: "global";
|
|
1952
2063
|
} | {
|
|
1953
2064
|
mode: "selected";
|
|
1954
2065
|
tools: string[];
|
|
1955
2066
|
} | undefined;
|
|
1956
|
-
connectionTimeoutMs?: number | undefined;
|
|
1957
|
-
}[], {
|
|
1958
|
-
name: string;
|
|
1959
|
-
url: string;
|
|
1960
|
-
description?: string | undefined;
|
|
1961
2067
|
credential?: string | undefined;
|
|
1962
2068
|
transport?: "sse" | "streamableHttp" | undefined;
|
|
1963
2069
|
authentication?: string | undefined;
|
|
@@ -1971,12 +2077,6 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
1971
2077
|
mode: "exclude";
|
|
1972
2078
|
tools?: string[] | undefined;
|
|
1973
2079
|
} | undefined;
|
|
1974
|
-
approval?: {
|
|
1975
|
-
mode: "global";
|
|
1976
|
-
} | {
|
|
1977
|
-
mode: "selected";
|
|
1978
|
-
tools: string[];
|
|
1979
|
-
} | undefined;
|
|
1980
2080
|
connectionTimeoutMs?: number | undefined;
|
|
1981
2081
|
}[]>>;
|
|
1982
2082
|
config: z.ZodOptional<z.ZodObject<{
|
|
@@ -2076,25 +2176,17 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
2076
2176
|
nodeTypeVersion: number;
|
|
2077
2177
|
nodeParameters: Record<string, unknown>;
|
|
2078
2178
|
credentials?: Record<string, {
|
|
2079
|
-
id: string;
|
|
2080
2179
|
name: string;
|
|
2180
|
+
id: string;
|
|
2081
2181
|
}> | undefined;
|
|
2082
2182
|
};
|
|
2083
2183
|
description?: string | undefined;
|
|
2084
2184
|
requireApproval?: boolean | undefined;
|
|
2185
|
+
inputSchema?: undefined;
|
|
2085
2186
|
})[] | undefined;
|
|
2086
2187
|
memory?: {
|
|
2087
2188
|
enabled: boolean;
|
|
2088
2189
|
storage: "n8n";
|
|
2089
|
-
semanticRecall?: {
|
|
2090
|
-
topK: number;
|
|
2091
|
-
scope?: "thread" | "resource" | undefined;
|
|
2092
|
-
messageRange?: {
|
|
2093
|
-
before: number;
|
|
2094
|
-
after: number;
|
|
2095
|
-
} | undefined;
|
|
2096
|
-
embedder?: string | undefined;
|
|
2097
|
-
} | undefined;
|
|
2098
2190
|
observationalMemory?: {
|
|
2099
2191
|
enabled?: boolean | undefined;
|
|
2100
2192
|
observerModel?: {
|
|
@@ -2116,7 +2208,6 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
2116
2208
|
} | {
|
|
2117
2209
|
credential: string;
|
|
2118
2210
|
enabled: true;
|
|
2119
|
-
topK?: number | undefined;
|
|
2120
2211
|
reflectorModel?: {
|
|
2121
2212
|
model: string;
|
|
2122
2213
|
credential: string;
|
|
@@ -2125,9 +2216,30 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
2125
2216
|
model: string;
|
|
2126
2217
|
credential: string;
|
|
2127
2218
|
} | undefined;
|
|
2219
|
+
topK?: number | undefined;
|
|
2128
2220
|
maxEntriesPerRun?: number | undefined;
|
|
2129
2221
|
} | undefined;
|
|
2130
2222
|
} | undefined;
|
|
2223
|
+
subAgents?: {
|
|
2224
|
+
maxChildren?: number | undefined;
|
|
2225
|
+
agents?: {
|
|
2226
|
+
agentId: string;
|
|
2227
|
+
}[] | undefined;
|
|
2228
|
+
modelsByDifficulty?: {
|
|
2229
|
+
low?: {
|
|
2230
|
+
model: string;
|
|
2231
|
+
credential: string;
|
|
2232
|
+
} | undefined;
|
|
2233
|
+
medium?: {
|
|
2234
|
+
model: string;
|
|
2235
|
+
credential: string;
|
|
2236
|
+
} | undefined;
|
|
2237
|
+
high?: {
|
|
2238
|
+
model: string;
|
|
2239
|
+
credential: string;
|
|
2240
|
+
} | undefined;
|
|
2241
|
+
} | undefined;
|
|
2242
|
+
} | undefined;
|
|
2131
2243
|
skills?: {
|
|
2132
2244
|
type: "skill";
|
|
2133
2245
|
id: string;
|
|
@@ -2158,6 +2270,12 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
2158
2270
|
transport: "sse" | "streamableHttp";
|
|
2159
2271
|
authentication: string;
|
|
2160
2272
|
description?: string | undefined;
|
|
2273
|
+
approval?: {
|
|
2274
|
+
mode: "global";
|
|
2275
|
+
} | {
|
|
2276
|
+
mode: "selected";
|
|
2277
|
+
tools: string[];
|
|
2278
|
+
} | undefined;
|
|
2161
2279
|
credential?: string | undefined;
|
|
2162
2280
|
metadata?: {
|
|
2163
2281
|
nodeTypeName?: string | undefined;
|
|
@@ -2169,12 +2287,6 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
2169
2287
|
mode: "exclude";
|
|
2170
2288
|
tools: string[];
|
|
2171
2289
|
} | undefined;
|
|
2172
|
-
approval?: {
|
|
2173
|
-
mode: "global";
|
|
2174
|
-
} | {
|
|
2175
|
-
mode: "selected";
|
|
2176
|
-
tools: string[];
|
|
2177
|
-
} | undefined;
|
|
2178
2290
|
connectionTimeoutMs?: number | undefined;
|
|
2179
2291
|
}[] | undefined;
|
|
2180
2292
|
config?: {
|
|
@@ -2219,25 +2331,17 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
2219
2331
|
nodeTypeVersion: number;
|
|
2220
2332
|
nodeParameters?: Record<string, unknown> | undefined;
|
|
2221
2333
|
credentials?: Record<string, {
|
|
2222
|
-
id: string;
|
|
2223
2334
|
name: string;
|
|
2335
|
+
id: string;
|
|
2224
2336
|
}> | undefined;
|
|
2225
2337
|
};
|
|
2226
2338
|
description?: string | undefined;
|
|
2227
2339
|
requireApproval?: boolean | undefined;
|
|
2340
|
+
inputSchema?: undefined;
|
|
2228
2341
|
})[] | undefined;
|
|
2229
2342
|
memory?: {
|
|
2230
2343
|
enabled: boolean;
|
|
2231
2344
|
storage: "n8n";
|
|
2232
|
-
semanticRecall?: {
|
|
2233
|
-
topK: number;
|
|
2234
|
-
scope?: "thread" | "resource" | undefined;
|
|
2235
|
-
messageRange?: {
|
|
2236
|
-
before: number;
|
|
2237
|
-
after: number;
|
|
2238
|
-
} | undefined;
|
|
2239
|
-
embedder?: string | undefined;
|
|
2240
|
-
} | undefined;
|
|
2241
2345
|
observationalMemory?: {
|
|
2242
2346
|
enabled?: boolean | undefined;
|
|
2243
2347
|
observerModel?: {
|
|
@@ -2259,7 +2363,6 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
2259
2363
|
} | {
|
|
2260
2364
|
credential: string;
|
|
2261
2365
|
enabled: true;
|
|
2262
|
-
topK?: number | undefined;
|
|
2263
2366
|
reflectorModel?: {
|
|
2264
2367
|
model: string;
|
|
2265
2368
|
credential: string;
|
|
@@ -2268,9 +2371,30 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
2268
2371
|
model: string;
|
|
2269
2372
|
credential: string;
|
|
2270
2373
|
} | undefined;
|
|
2374
|
+
topK?: number | undefined;
|
|
2271
2375
|
maxEntriesPerRun?: number | undefined;
|
|
2272
2376
|
} | undefined;
|
|
2273
2377
|
} | undefined;
|
|
2378
|
+
subAgents?: {
|
|
2379
|
+
maxChildren?: number | undefined;
|
|
2380
|
+
agents?: {
|
|
2381
|
+
agentId: string;
|
|
2382
|
+
}[] | undefined;
|
|
2383
|
+
modelsByDifficulty?: {
|
|
2384
|
+
low?: {
|
|
2385
|
+
model: string;
|
|
2386
|
+
credential: string;
|
|
2387
|
+
} | undefined;
|
|
2388
|
+
medium?: {
|
|
2389
|
+
model: string;
|
|
2390
|
+
credential: string;
|
|
2391
|
+
} | undefined;
|
|
2392
|
+
high?: {
|
|
2393
|
+
model: string;
|
|
2394
|
+
credential: string;
|
|
2395
|
+
} | undefined;
|
|
2396
|
+
} | undefined;
|
|
2397
|
+
} | undefined;
|
|
2274
2398
|
skills?: {
|
|
2275
2399
|
type: "skill";
|
|
2276
2400
|
id: string;
|
|
@@ -2299,6 +2423,12 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
2299
2423
|
name: string;
|
|
2300
2424
|
url: string;
|
|
2301
2425
|
description?: string | undefined;
|
|
2426
|
+
approval?: {
|
|
2427
|
+
mode: "global";
|
|
2428
|
+
} | {
|
|
2429
|
+
mode: "selected";
|
|
2430
|
+
tools: string[];
|
|
2431
|
+
} | undefined;
|
|
2302
2432
|
credential?: string | undefined;
|
|
2303
2433
|
transport?: "sse" | "streamableHttp" | undefined;
|
|
2304
2434
|
authentication?: string | undefined;
|
|
@@ -2312,12 +2442,6 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
2312
2442
|
mode: "exclude";
|
|
2313
2443
|
tools?: string[] | undefined;
|
|
2314
2444
|
} | undefined;
|
|
2315
|
-
approval?: {
|
|
2316
|
-
mode: "global";
|
|
2317
|
-
} | {
|
|
2318
|
-
mode: "selected";
|
|
2319
|
-
tools: string[];
|
|
2320
|
-
} | undefined;
|
|
2321
2445
|
connectionTimeoutMs?: number | undefined;
|
|
2322
2446
|
}[] | undefined;
|
|
2323
2447
|
config?: {
|
|
@@ -2347,37 +2471,6 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
2347
2471
|
memory: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
2348
2472
|
enabled: z.ZodBoolean;
|
|
2349
2473
|
storage: z.ZodEnum<["n8n"]>;
|
|
2350
|
-
semanticRecall: z.ZodOptional<z.ZodObject<{
|
|
2351
|
-
topK: z.ZodNumber;
|
|
2352
|
-
scope: z.ZodOptional<z.ZodEnum<["thread", "resource"]>>;
|
|
2353
|
-
messageRange: z.ZodOptional<z.ZodObject<{
|
|
2354
|
-
before: z.ZodNumber;
|
|
2355
|
-
after: z.ZodNumber;
|
|
2356
|
-
}, "strip", z.ZodTypeAny, {
|
|
2357
|
-
before: number;
|
|
2358
|
-
after: number;
|
|
2359
|
-
}, {
|
|
2360
|
-
before: number;
|
|
2361
|
-
after: number;
|
|
2362
|
-
}>>;
|
|
2363
|
-
embedder: z.ZodOptional<z.ZodString>;
|
|
2364
|
-
}, "strip", z.ZodTypeAny, {
|
|
2365
|
-
topK: number;
|
|
2366
|
-
scope?: "thread" | "resource" | undefined;
|
|
2367
|
-
messageRange?: {
|
|
2368
|
-
before: number;
|
|
2369
|
-
after: number;
|
|
2370
|
-
} | undefined;
|
|
2371
|
-
embedder?: string | undefined;
|
|
2372
|
-
}, {
|
|
2373
|
-
topK: number;
|
|
2374
|
-
scope?: "thread" | "resource" | undefined;
|
|
2375
|
-
messageRange?: {
|
|
2376
|
-
before: number;
|
|
2377
|
-
after: number;
|
|
2378
|
-
} | undefined;
|
|
2379
|
-
embedder?: string | undefined;
|
|
2380
|
-
}>>;
|
|
2381
2474
|
observationalMemory: z.ZodOptional<z.ZodObject<{
|
|
2382
2475
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
2383
2476
|
observerModel: z.ZodOptional<z.ZodObject<{
|
|
@@ -2470,7 +2563,6 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
2470
2563
|
}, "strip", z.ZodTypeAny, {
|
|
2471
2564
|
credential: string;
|
|
2472
2565
|
enabled: true;
|
|
2473
|
-
topK?: number | undefined;
|
|
2474
2566
|
reflectorModel?: {
|
|
2475
2567
|
model: string;
|
|
2476
2568
|
credential: string;
|
|
@@ -2479,11 +2571,11 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
2479
2571
|
model: string;
|
|
2480
2572
|
credential: string;
|
|
2481
2573
|
} | undefined;
|
|
2574
|
+
topK?: number | undefined;
|
|
2482
2575
|
maxEntriesPerRun?: number | undefined;
|
|
2483
2576
|
}, {
|
|
2484
2577
|
credential: string;
|
|
2485
2578
|
enabled: true;
|
|
2486
|
-
topK?: number | undefined;
|
|
2487
2579
|
reflectorModel?: {
|
|
2488
2580
|
model: string;
|
|
2489
2581
|
credential: string;
|
|
@@ -2492,20 +2584,12 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
2492
2584
|
model: string;
|
|
2493
2585
|
credential: string;
|
|
2494
2586
|
} | undefined;
|
|
2587
|
+
topK?: number | undefined;
|
|
2495
2588
|
maxEntriesPerRun?: number | undefined;
|
|
2496
2589
|
}>]>>;
|
|
2497
2590
|
}, "strip", z.ZodTypeAny, {
|
|
2498
2591
|
enabled: boolean;
|
|
2499
2592
|
storage: "n8n";
|
|
2500
|
-
semanticRecall?: {
|
|
2501
|
-
topK: number;
|
|
2502
|
-
scope?: "thread" | "resource" | undefined;
|
|
2503
|
-
messageRange?: {
|
|
2504
|
-
before: number;
|
|
2505
|
-
after: number;
|
|
2506
|
-
} | undefined;
|
|
2507
|
-
embedder?: string | undefined;
|
|
2508
|
-
} | undefined;
|
|
2509
2593
|
observationalMemory?: {
|
|
2510
2594
|
enabled?: boolean | undefined;
|
|
2511
2595
|
observerModel?: {
|
|
@@ -2527,7 +2611,6 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
2527
2611
|
} | {
|
|
2528
2612
|
credential: string;
|
|
2529
2613
|
enabled: true;
|
|
2530
|
-
topK?: number | undefined;
|
|
2531
2614
|
reflectorModel?: {
|
|
2532
2615
|
model: string;
|
|
2533
2616
|
credential: string;
|
|
@@ -2536,20 +2619,12 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
2536
2619
|
model: string;
|
|
2537
2620
|
credential: string;
|
|
2538
2621
|
} | undefined;
|
|
2622
|
+
topK?: number | undefined;
|
|
2539
2623
|
maxEntriesPerRun?: number | undefined;
|
|
2540
2624
|
} | undefined;
|
|
2541
2625
|
}, {
|
|
2542
2626
|
enabled: boolean;
|
|
2543
2627
|
storage: "n8n";
|
|
2544
|
-
semanticRecall?: {
|
|
2545
|
-
topK: number;
|
|
2546
|
-
scope?: "thread" | "resource" | undefined;
|
|
2547
|
-
messageRange?: {
|
|
2548
|
-
before: number;
|
|
2549
|
-
after: number;
|
|
2550
|
-
} | undefined;
|
|
2551
|
-
embedder?: string | undefined;
|
|
2552
|
-
} | undefined;
|
|
2553
2628
|
observationalMemory?: {
|
|
2554
2629
|
enabled?: boolean | undefined;
|
|
2555
2630
|
observerModel?: {
|
|
@@ -2571,7 +2646,6 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
2571
2646
|
} | {
|
|
2572
2647
|
credential: string;
|
|
2573
2648
|
enabled: true;
|
|
2574
|
-
topK?: number | undefined;
|
|
2575
2649
|
reflectorModel?: {
|
|
2576
2650
|
model: string;
|
|
2577
2651
|
credential: string;
|
|
@@ -2580,9 +2654,116 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
2580
2654
|
model: string;
|
|
2581
2655
|
credential: string;
|
|
2582
2656
|
} | undefined;
|
|
2657
|
+
topK?: number | undefined;
|
|
2583
2658
|
maxEntriesPerRun?: number | undefined;
|
|
2584
2659
|
} | undefined;
|
|
2585
2660
|
}>>>;
|
|
2661
|
+
subAgents: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
2662
|
+
maxChildren: z.ZodOptional<z.ZodNumber>;
|
|
2663
|
+
agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2664
|
+
agentId: z.ZodString;
|
|
2665
|
+
}, "strip", z.ZodTypeAny, {
|
|
2666
|
+
agentId: string;
|
|
2667
|
+
}, {
|
|
2668
|
+
agentId: string;
|
|
2669
|
+
}>, "many">>;
|
|
2670
|
+
modelsByDifficulty: z.ZodOptional<z.ZodObject<{
|
|
2671
|
+
low: z.ZodOptional<z.ZodObject<{
|
|
2672
|
+
model: z.ZodString;
|
|
2673
|
+
credential: z.ZodString;
|
|
2674
|
+
}, "strict", z.ZodTypeAny, {
|
|
2675
|
+
model: string;
|
|
2676
|
+
credential: string;
|
|
2677
|
+
}, {
|
|
2678
|
+
model: string;
|
|
2679
|
+
credential: string;
|
|
2680
|
+
}>>;
|
|
2681
|
+
medium: z.ZodOptional<z.ZodObject<{
|
|
2682
|
+
model: z.ZodString;
|
|
2683
|
+
credential: z.ZodString;
|
|
2684
|
+
}, "strict", z.ZodTypeAny, {
|
|
2685
|
+
model: string;
|
|
2686
|
+
credential: string;
|
|
2687
|
+
}, {
|
|
2688
|
+
model: string;
|
|
2689
|
+
credential: string;
|
|
2690
|
+
}>>;
|
|
2691
|
+
high: z.ZodOptional<z.ZodObject<{
|
|
2692
|
+
model: z.ZodString;
|
|
2693
|
+
credential: z.ZodString;
|
|
2694
|
+
}, "strict", z.ZodTypeAny, {
|
|
2695
|
+
model: string;
|
|
2696
|
+
credential: string;
|
|
2697
|
+
}, {
|
|
2698
|
+
model: string;
|
|
2699
|
+
credential: string;
|
|
2700
|
+
}>>;
|
|
2701
|
+
}, "strict", z.ZodTypeAny, {
|
|
2702
|
+
low?: {
|
|
2703
|
+
model: string;
|
|
2704
|
+
credential: string;
|
|
2705
|
+
} | undefined;
|
|
2706
|
+
medium?: {
|
|
2707
|
+
model: string;
|
|
2708
|
+
credential: string;
|
|
2709
|
+
} | undefined;
|
|
2710
|
+
high?: {
|
|
2711
|
+
model: string;
|
|
2712
|
+
credential: string;
|
|
2713
|
+
} | undefined;
|
|
2714
|
+
}, {
|
|
2715
|
+
low?: {
|
|
2716
|
+
model: string;
|
|
2717
|
+
credential: string;
|
|
2718
|
+
} | undefined;
|
|
2719
|
+
medium?: {
|
|
2720
|
+
model: string;
|
|
2721
|
+
credential: string;
|
|
2722
|
+
} | undefined;
|
|
2723
|
+
high?: {
|
|
2724
|
+
model: string;
|
|
2725
|
+
credential: string;
|
|
2726
|
+
} | undefined;
|
|
2727
|
+
}>>;
|
|
2728
|
+
}, "strict", z.ZodTypeAny, {
|
|
2729
|
+
maxChildren?: number | undefined;
|
|
2730
|
+
agents?: {
|
|
2731
|
+
agentId: string;
|
|
2732
|
+
}[] | undefined;
|
|
2733
|
+
modelsByDifficulty?: {
|
|
2734
|
+
low?: {
|
|
2735
|
+
model: string;
|
|
2736
|
+
credential: string;
|
|
2737
|
+
} | undefined;
|
|
2738
|
+
medium?: {
|
|
2739
|
+
model: string;
|
|
2740
|
+
credential: string;
|
|
2741
|
+
} | undefined;
|
|
2742
|
+
high?: {
|
|
2743
|
+
model: string;
|
|
2744
|
+
credential: string;
|
|
2745
|
+
} | undefined;
|
|
2746
|
+
} | undefined;
|
|
2747
|
+
}, {
|
|
2748
|
+
maxChildren?: number | undefined;
|
|
2749
|
+
agents?: {
|
|
2750
|
+
agentId: string;
|
|
2751
|
+
}[] | undefined;
|
|
2752
|
+
modelsByDifficulty?: {
|
|
2753
|
+
low?: {
|
|
2754
|
+
model: string;
|
|
2755
|
+
credential: string;
|
|
2756
|
+
} | undefined;
|
|
2757
|
+
medium?: {
|
|
2758
|
+
model: string;
|
|
2759
|
+
credential: string;
|
|
2760
|
+
} | undefined;
|
|
2761
|
+
high?: {
|
|
2762
|
+
model: string;
|
|
2763
|
+
credential: string;
|
|
2764
|
+
} | undefined;
|
|
2765
|
+
} | undefined;
|
|
2766
|
+
}>>>;
|
|
2586
2767
|
tools: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
2587
2768
|
type: z.ZodLiteral<"custom">;
|
|
2588
2769
|
id: z.ZodString;
|
|
@@ -2620,6 +2801,7 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
2620
2801
|
type: z.ZodLiteral<"node">;
|
|
2621
2802
|
name: z.ZodString;
|
|
2622
2803
|
description: z.ZodOptional<z.ZodString>;
|
|
2804
|
+
inputSchema: z.ZodOptional<z.ZodNever>;
|
|
2623
2805
|
node: z.ZodObject<{
|
|
2624
2806
|
nodeType: z.ZodString;
|
|
2625
2807
|
nodeTypeVersion: z.ZodNumber;
|
|
@@ -2628,27 +2810,27 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
2628
2810
|
id: z.ZodString;
|
|
2629
2811
|
name: z.ZodString;
|
|
2630
2812
|
}, "strip", z.ZodTypeAny, {
|
|
2631
|
-
id: string;
|
|
2632
2813
|
name: string;
|
|
2633
|
-
}, {
|
|
2634
2814
|
id: string;
|
|
2815
|
+
}, {
|
|
2635
2816
|
name: string;
|
|
2817
|
+
id: string;
|
|
2636
2818
|
}>>>;
|
|
2637
2819
|
}, "strip", z.ZodTypeAny, {
|
|
2638
2820
|
nodeType: string;
|
|
2639
2821
|
nodeTypeVersion: number;
|
|
2640
2822
|
nodeParameters: Record<string, unknown>;
|
|
2641
2823
|
credentials?: Record<string, {
|
|
2642
|
-
id: string;
|
|
2643
2824
|
name: string;
|
|
2825
|
+
id: string;
|
|
2644
2826
|
}> | undefined;
|
|
2645
2827
|
}, {
|
|
2646
2828
|
nodeType: string;
|
|
2647
2829
|
nodeTypeVersion: number;
|
|
2648
2830
|
nodeParameters?: Record<string, unknown> | undefined;
|
|
2649
2831
|
credentials?: Record<string, {
|
|
2650
|
-
id: string;
|
|
2651
2832
|
name: string;
|
|
2833
|
+
id: string;
|
|
2652
2834
|
}> | undefined;
|
|
2653
2835
|
}>;
|
|
2654
2836
|
requireApproval: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2660,12 +2842,13 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
2660
2842
|
nodeTypeVersion: number;
|
|
2661
2843
|
nodeParameters: Record<string, unknown>;
|
|
2662
2844
|
credentials?: Record<string, {
|
|
2663
|
-
id: string;
|
|
2664
2845
|
name: string;
|
|
2846
|
+
id: string;
|
|
2665
2847
|
}> | undefined;
|
|
2666
2848
|
};
|
|
2667
2849
|
description?: string | undefined;
|
|
2668
2850
|
requireApproval?: boolean | undefined;
|
|
2851
|
+
inputSchema?: undefined;
|
|
2669
2852
|
}, {
|
|
2670
2853
|
type: "node";
|
|
2671
2854
|
name: string;
|
|
@@ -2674,12 +2857,13 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
2674
2857
|
nodeTypeVersion: number;
|
|
2675
2858
|
nodeParameters?: Record<string, unknown> | undefined;
|
|
2676
2859
|
credentials?: Record<string, {
|
|
2677
|
-
id: string;
|
|
2678
2860
|
name: string;
|
|
2861
|
+
id: string;
|
|
2679
2862
|
}> | undefined;
|
|
2680
2863
|
};
|
|
2681
2864
|
description?: string | undefined;
|
|
2682
2865
|
requireApproval?: boolean | undefined;
|
|
2866
|
+
inputSchema?: undefined;
|
|
2683
2867
|
}>]>, "many">>>;
|
|
2684
2868
|
skills: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2685
2869
|
type: z.ZodLiteral<"skill">;
|
|
@@ -2814,6 +2998,12 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
2814
2998
|
transport: "sse" | "streamableHttp";
|
|
2815
2999
|
authentication: string;
|
|
2816
3000
|
description?: string | undefined;
|
|
3001
|
+
approval?: {
|
|
3002
|
+
mode: "global";
|
|
3003
|
+
} | {
|
|
3004
|
+
mode: "selected";
|
|
3005
|
+
tools: string[];
|
|
3006
|
+
} | undefined;
|
|
2817
3007
|
credential?: string | undefined;
|
|
2818
3008
|
metadata?: {
|
|
2819
3009
|
nodeTypeName?: string | undefined;
|
|
@@ -2825,17 +3015,17 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
2825
3015
|
mode: "exclude";
|
|
2826
3016
|
tools: string[];
|
|
2827
3017
|
} | undefined;
|
|
3018
|
+
connectionTimeoutMs?: number | undefined;
|
|
3019
|
+
}, {
|
|
3020
|
+
name: string;
|
|
3021
|
+
url: string;
|
|
3022
|
+
description?: string | undefined;
|
|
2828
3023
|
approval?: {
|
|
2829
3024
|
mode: "global";
|
|
2830
3025
|
} | {
|
|
2831
3026
|
mode: "selected";
|
|
2832
3027
|
tools: string[];
|
|
2833
3028
|
} | undefined;
|
|
2834
|
-
connectionTimeoutMs?: number | undefined;
|
|
2835
|
-
}, {
|
|
2836
|
-
name: string;
|
|
2837
|
-
url: string;
|
|
2838
|
-
description?: string | undefined;
|
|
2839
3029
|
credential?: string | undefined;
|
|
2840
3030
|
transport?: "sse" | "streamableHttp" | undefined;
|
|
2841
3031
|
authentication?: string | undefined;
|
|
@@ -2849,12 +3039,6 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
2849
3039
|
mode: "exclude";
|
|
2850
3040
|
tools?: string[] | undefined;
|
|
2851
3041
|
} | undefined;
|
|
2852
|
-
approval?: {
|
|
2853
|
-
mode: "global";
|
|
2854
|
-
} | {
|
|
2855
|
-
mode: "selected";
|
|
2856
|
-
tools: string[];
|
|
2857
|
-
} | undefined;
|
|
2858
3042
|
connectionTimeoutMs?: number | undefined;
|
|
2859
3043
|
}>, "many">, {
|
|
2860
3044
|
name: string;
|
|
@@ -2862,6 +3046,12 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
2862
3046
|
transport: "sse" | "streamableHttp";
|
|
2863
3047
|
authentication: string;
|
|
2864
3048
|
description?: string | undefined;
|
|
3049
|
+
approval?: {
|
|
3050
|
+
mode: "global";
|
|
3051
|
+
} | {
|
|
3052
|
+
mode: "selected";
|
|
3053
|
+
tools: string[];
|
|
3054
|
+
} | undefined;
|
|
2865
3055
|
credential?: string | undefined;
|
|
2866
3056
|
metadata?: {
|
|
2867
3057
|
nodeTypeName?: string | undefined;
|
|
@@ -2873,17 +3063,17 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
2873
3063
|
mode: "exclude";
|
|
2874
3064
|
tools: string[];
|
|
2875
3065
|
} | undefined;
|
|
3066
|
+
connectionTimeoutMs?: number | undefined;
|
|
3067
|
+
}[], {
|
|
3068
|
+
name: string;
|
|
3069
|
+
url: string;
|
|
3070
|
+
description?: string | undefined;
|
|
2876
3071
|
approval?: {
|
|
2877
3072
|
mode: "global";
|
|
2878
3073
|
} | {
|
|
2879
3074
|
mode: "selected";
|
|
2880
3075
|
tools: string[];
|
|
2881
3076
|
} | undefined;
|
|
2882
|
-
connectionTimeoutMs?: number | undefined;
|
|
2883
|
-
}[], {
|
|
2884
|
-
name: string;
|
|
2885
|
-
url: string;
|
|
2886
|
-
description?: string | undefined;
|
|
2887
3077
|
credential?: string | undefined;
|
|
2888
3078
|
transport?: "sse" | "streamableHttp" | undefined;
|
|
2889
3079
|
authentication?: string | undefined;
|
|
@@ -2897,12 +3087,6 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
2897
3087
|
mode: "exclude";
|
|
2898
3088
|
tools?: string[] | undefined;
|
|
2899
3089
|
} | undefined;
|
|
2900
|
-
approval?: {
|
|
2901
|
-
mode: "global";
|
|
2902
|
-
} | {
|
|
2903
|
-
mode: "selected";
|
|
2904
|
-
tools: string[];
|
|
2905
|
-
} | undefined;
|
|
2906
3090
|
connectionTimeoutMs?: number | undefined;
|
|
2907
3091
|
}[]>>>;
|
|
2908
3092
|
config: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
@@ -2975,8 +3159,8 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
2975
3159
|
} | undefined;
|
|
2976
3160
|
}>>>;
|
|
2977
3161
|
}, "strip", z.ZodTypeAny, {
|
|
2978
|
-
model?: string | undefined;
|
|
2979
3162
|
description?: string | undefined;
|
|
3163
|
+
model?: string | undefined;
|
|
2980
3164
|
credential?: string | undefined;
|
|
2981
3165
|
name?: string | undefined;
|
|
2982
3166
|
tools?: ({
|
|
@@ -2998,26 +3182,18 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
2998
3182
|
nodeTypeVersion: number;
|
|
2999
3183
|
nodeParameters: Record<string, unknown>;
|
|
3000
3184
|
credentials?: Record<string, {
|
|
3001
|
-
id: string;
|
|
3002
3185
|
name: string;
|
|
3186
|
+
id: string;
|
|
3003
3187
|
}> | undefined;
|
|
3004
3188
|
};
|
|
3005
3189
|
description?: string | undefined;
|
|
3006
3190
|
requireApproval?: boolean | undefined;
|
|
3191
|
+
inputSchema?: undefined;
|
|
3007
3192
|
})[] | undefined;
|
|
3008
3193
|
instructions?: string | undefined;
|
|
3009
3194
|
memory?: {
|
|
3010
3195
|
enabled: boolean;
|
|
3011
3196
|
storage: "n8n";
|
|
3012
|
-
semanticRecall?: {
|
|
3013
|
-
topK: number;
|
|
3014
|
-
scope?: "thread" | "resource" | undefined;
|
|
3015
|
-
messageRange?: {
|
|
3016
|
-
before: number;
|
|
3017
|
-
after: number;
|
|
3018
|
-
} | undefined;
|
|
3019
|
-
embedder?: string | undefined;
|
|
3020
|
-
} | undefined;
|
|
3021
3197
|
observationalMemory?: {
|
|
3022
3198
|
enabled?: boolean | undefined;
|
|
3023
3199
|
observerModel?: {
|
|
@@ -3039,7 +3215,6 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
3039
3215
|
} | {
|
|
3040
3216
|
credential: string;
|
|
3041
3217
|
enabled: true;
|
|
3042
|
-
topK?: number | undefined;
|
|
3043
3218
|
reflectorModel?: {
|
|
3044
3219
|
model: string;
|
|
3045
3220
|
credential: string;
|
|
@@ -3048,9 +3223,30 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
3048
3223
|
model: string;
|
|
3049
3224
|
credential: string;
|
|
3050
3225
|
} | undefined;
|
|
3226
|
+
topK?: number | undefined;
|
|
3051
3227
|
maxEntriesPerRun?: number | undefined;
|
|
3052
3228
|
} | undefined;
|
|
3053
3229
|
} | undefined;
|
|
3230
|
+
subAgents?: {
|
|
3231
|
+
maxChildren?: number | undefined;
|
|
3232
|
+
agents?: {
|
|
3233
|
+
agentId: string;
|
|
3234
|
+
}[] | undefined;
|
|
3235
|
+
modelsByDifficulty?: {
|
|
3236
|
+
low?: {
|
|
3237
|
+
model: string;
|
|
3238
|
+
credential: string;
|
|
3239
|
+
} | undefined;
|
|
3240
|
+
medium?: {
|
|
3241
|
+
model: string;
|
|
3242
|
+
credential: string;
|
|
3243
|
+
} | undefined;
|
|
3244
|
+
high?: {
|
|
3245
|
+
model: string;
|
|
3246
|
+
credential: string;
|
|
3247
|
+
} | undefined;
|
|
3248
|
+
} | undefined;
|
|
3249
|
+
} | undefined;
|
|
3054
3250
|
skills?: {
|
|
3055
3251
|
type: "skill";
|
|
3056
3252
|
id: string;
|
|
@@ -3081,6 +3277,12 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
3081
3277
|
transport: "sse" | "streamableHttp";
|
|
3082
3278
|
authentication: string;
|
|
3083
3279
|
description?: string | undefined;
|
|
3280
|
+
approval?: {
|
|
3281
|
+
mode: "global";
|
|
3282
|
+
} | {
|
|
3283
|
+
mode: "selected";
|
|
3284
|
+
tools: string[];
|
|
3285
|
+
} | undefined;
|
|
3084
3286
|
credential?: string | undefined;
|
|
3085
3287
|
metadata?: {
|
|
3086
3288
|
nodeTypeName?: string | undefined;
|
|
@@ -3092,12 +3294,6 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
3092
3294
|
mode: "exclude";
|
|
3093
3295
|
tools: string[];
|
|
3094
3296
|
} | undefined;
|
|
3095
|
-
approval?: {
|
|
3096
|
-
mode: "global";
|
|
3097
|
-
} | {
|
|
3098
|
-
mode: "selected";
|
|
3099
|
-
tools: string[];
|
|
3100
|
-
} | undefined;
|
|
3101
3297
|
connectionTimeoutMs?: number | undefined;
|
|
3102
3298
|
}[] | undefined;
|
|
3103
3299
|
config?: {
|
|
@@ -3118,8 +3314,8 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
3118
3314
|
} | undefined;
|
|
3119
3315
|
} | undefined;
|
|
3120
3316
|
}, {
|
|
3121
|
-
model?: string | undefined;
|
|
3122
3317
|
description?: string | undefined;
|
|
3318
|
+
model?: string | undefined;
|
|
3123
3319
|
credential?: string | undefined;
|
|
3124
3320
|
name?: string | undefined;
|
|
3125
3321
|
tools?: ({
|
|
@@ -3141,26 +3337,18 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
3141
3337
|
nodeTypeVersion: number;
|
|
3142
3338
|
nodeParameters?: Record<string, unknown> | undefined;
|
|
3143
3339
|
credentials?: Record<string, {
|
|
3144
|
-
id: string;
|
|
3145
3340
|
name: string;
|
|
3341
|
+
id: string;
|
|
3146
3342
|
}> | undefined;
|
|
3147
3343
|
};
|
|
3148
3344
|
description?: string | undefined;
|
|
3149
3345
|
requireApproval?: boolean | undefined;
|
|
3346
|
+
inputSchema?: undefined;
|
|
3150
3347
|
})[] | undefined;
|
|
3151
3348
|
instructions?: string | undefined;
|
|
3152
3349
|
memory?: {
|
|
3153
3350
|
enabled: boolean;
|
|
3154
3351
|
storage: "n8n";
|
|
3155
|
-
semanticRecall?: {
|
|
3156
|
-
topK: number;
|
|
3157
|
-
scope?: "thread" | "resource" | undefined;
|
|
3158
|
-
messageRange?: {
|
|
3159
|
-
before: number;
|
|
3160
|
-
after: number;
|
|
3161
|
-
} | undefined;
|
|
3162
|
-
embedder?: string | undefined;
|
|
3163
|
-
} | undefined;
|
|
3164
3352
|
observationalMemory?: {
|
|
3165
3353
|
enabled?: boolean | undefined;
|
|
3166
3354
|
observerModel?: {
|
|
@@ -3182,7 +3370,6 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
3182
3370
|
} | {
|
|
3183
3371
|
credential: string;
|
|
3184
3372
|
enabled: true;
|
|
3185
|
-
topK?: number | undefined;
|
|
3186
3373
|
reflectorModel?: {
|
|
3187
3374
|
model: string;
|
|
3188
3375
|
credential: string;
|
|
@@ -3191,9 +3378,30 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
3191
3378
|
model: string;
|
|
3192
3379
|
credential: string;
|
|
3193
3380
|
} | undefined;
|
|
3381
|
+
topK?: number | undefined;
|
|
3194
3382
|
maxEntriesPerRun?: number | undefined;
|
|
3195
3383
|
} | undefined;
|
|
3196
3384
|
} | undefined;
|
|
3385
|
+
subAgents?: {
|
|
3386
|
+
maxChildren?: number | undefined;
|
|
3387
|
+
agents?: {
|
|
3388
|
+
agentId: string;
|
|
3389
|
+
}[] | undefined;
|
|
3390
|
+
modelsByDifficulty?: {
|
|
3391
|
+
low?: {
|
|
3392
|
+
model: string;
|
|
3393
|
+
credential: string;
|
|
3394
|
+
} | undefined;
|
|
3395
|
+
medium?: {
|
|
3396
|
+
model: string;
|
|
3397
|
+
credential: string;
|
|
3398
|
+
} | undefined;
|
|
3399
|
+
high?: {
|
|
3400
|
+
model: string;
|
|
3401
|
+
credential: string;
|
|
3402
|
+
} | undefined;
|
|
3403
|
+
} | undefined;
|
|
3404
|
+
} | undefined;
|
|
3197
3405
|
skills?: {
|
|
3198
3406
|
type: "skill";
|
|
3199
3407
|
id: string;
|
|
@@ -3222,6 +3430,12 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
3222
3430
|
name: string;
|
|
3223
3431
|
url: string;
|
|
3224
3432
|
description?: string | undefined;
|
|
3433
|
+
approval?: {
|
|
3434
|
+
mode: "global";
|
|
3435
|
+
} | {
|
|
3436
|
+
mode: "selected";
|
|
3437
|
+
tools: string[];
|
|
3438
|
+
} | undefined;
|
|
3225
3439
|
credential?: string | undefined;
|
|
3226
3440
|
transport?: "sse" | "streamableHttp" | undefined;
|
|
3227
3441
|
authentication?: string | undefined;
|
|
@@ -3235,12 +3449,6 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
3235
3449
|
mode: "exclude";
|
|
3236
3450
|
tools?: string[] | undefined;
|
|
3237
3451
|
} | undefined;
|
|
3238
|
-
approval?: {
|
|
3239
|
-
mode: "global";
|
|
3240
|
-
} | {
|
|
3241
|
-
mode: "selected";
|
|
3242
|
-
tools: string[];
|
|
3243
|
-
} | undefined;
|
|
3244
3452
|
connectionTimeoutMs?: number | undefined;
|
|
3245
3453
|
}[] | undefined;
|
|
3246
3454
|
config?: {
|
|
@@ -3262,6 +3470,7 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
3262
3470
|
} | undefined;
|
|
3263
3471
|
}>;
|
|
3264
3472
|
export type AgentJsonConfig = z.infer<typeof AgentJsonConfigSchema>;
|
|
3473
|
+
export type RunnableAgentJsonConfig = z.infer<typeof RunnableAgentJsonConfigSchema>;
|
|
3265
3474
|
export type AgentJsonToolConfig = z.infer<typeof AgentJsonToolConfigSchema>;
|
|
3266
3475
|
export type AgentJsonWorkflowToolConfig = Extract<AgentJsonToolConfig, {
|
|
3267
3476
|
type: 'workflow';
|
|
@@ -3278,6 +3487,7 @@ export type AgentJsonMemoryConfig = z.infer<typeof MemoryConfigSchema>;
|
|
|
3278
3487
|
export type NodeToolConfig = z.infer<typeof NodeConfigSchema>;
|
|
3279
3488
|
export type AgentJsonMcpServerConfig = z.infer<typeof McpServerConfigSchema>;
|
|
3280
3489
|
export type McpAuthenticationSchemaType = z.infer<typeof McpAuthenticationSchemaTypes>;
|
|
3490
|
+
export type SubAgentTaskDifficulty = z.infer<typeof SubAgentTaskDifficultySchema>;
|
|
3281
3491
|
export interface ConfigValidationError {
|
|
3282
3492
|
path: string;
|
|
3283
3493
|
message: string;
|