@n8n/api-types 1.23.1 → 1.25.0
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 +3 -3
- package/dist/agent-builder-interactive.js +5 -5
- package/dist/agent-builder-interactive.js.map +1 -1
- package/dist/agents/agent-files.constants.d.ts +4 -0
- package/dist/agents/agent-files.constants.js +8 -0
- package/dist/agents/agent-files.constants.js.map +1 -0
- package/dist/agents/agent-integration.schema.d.ts +1 -95
- package/dist/agents/agent-integration.schema.js +2 -23
- package/dist/agents/agent-integration.schema.js.map +1 -1
- package/dist/agents/agent-json-config.schema.d.ts +1567 -273
- package/dist/agents/agent-json-config.schema.js +111 -6
- package/dist/agents/agent-json-config.schema.js.map +1 -1
- package/dist/agents/agent-task.schema.d.ts +24 -0
- package/dist/agents/agent-task.schema.js +14 -0
- package/dist/agents/agent-task.schema.js.map +1 -0
- package/dist/agents/dto.d.ts +26 -4
- package/dist/agents/dto.js +20 -5
- package/dist/agents/dto.js.map +1 -1
- package/dist/agents/index.d.ts +3 -0
- package/dist/agents/index.js +3 -0
- package/dist/agents/index.js.map +1 -1
- package/dist/agents/provider-capabilities.d.ts +39 -0
- package/dist/agents/provider-capabilities.js +63 -0
- package/dist/agents/provider-capabilities.js.map +1 -0
- package/dist/agents/types.d.ts +19 -6
- package/dist/agents/types.js +1 -2
- package/dist/agents/types.js.map +1 -1
- package/dist/api-keys.d.ts +5 -0
- package/dist/build.tsbuildinfo +1 -1
- package/dist/chat-hub.d.ts +12 -12
- package/dist/dto/ai/ai-build-request.dto.d.ts +3 -3
- package/dist/dto/ai/ai-session-retrieval-request.dto.d.ts +2 -0
- package/dist/dto/ai/ai-session-retrieval-request.dto.js +1 -0
- package/dist/dto/ai/ai-session-retrieval-request.dto.js.map +1 -1
- package/dist/dto/credentials/credential-connection-status.d.ts +1 -0
- package/dist/dto/index.d.ts +2 -1
- package/dist/dto/index.js +6 -2
- package/dist/dto/index.js.map +1 -1
- package/dist/dto/instance-ai/instance-ai-rename-thread-request.dto.d.ts +1 -1
- package/dist/dto/oidc/config.dto.d.ts +1 -1
- package/dist/dto/packages/import-package-request.dto.d.ts +12 -0
- package/dist/dto/packages/import-package-request.dto.js +22 -0
- package/dist/dto/packages/import-package-request.dto.js.map +1 -0
- package/dist/dto/project/update-project.dto.d.ts +40 -0
- package/dist/dto/project/update-project.dto.js +11 -0
- package/dist/dto/project/update-project.dto.js.map +1 -1
- package/dist/dto/source-control/pull-work-folder-request.dto.d.ts +1 -1
- package/dist/dto/workflows/base-workflow.dto.d.ts +2 -2
- package/dist/dto/workflows/base-workflow.dto.js +22 -3
- package/dist/dto/workflows/base-workflow.dto.js.map +1 -1
- package/dist/dto/workflows/create-workflow.dto.d.ts +2 -2
- package/dist/dto/workflows/import-workflow-from-url.dto.d.ts +1 -1
- package/dist/dto/workflows/update-workflow.dto.d.ts +2 -2
- package/dist/index.d.ts +2 -1
- package/dist/index.js +9 -4
- package/dist/index.js.map +1 -1
- package/dist/schemas/breaking-changes.schema.d.ts +44 -44
- package/dist/schemas/credential-resolver.schema.d.ts +1 -0
- package/dist/schemas/credential-resolver.schema.js +2 -1
- package/dist/schemas/credential-resolver.schema.js.map +1 -1
- package/dist/schemas/instance-ai.schema.d.ts +54 -56
- package/dist/schemas/instance-ai.schema.js +1 -4
- package/dist/schemas/instance-ai.schema.js.map +1 -1
- package/dist/schemas/mcp.schema.d.ts +3 -0
- package/dist/schemas/mcp.schema.js +7 -0
- package/dist/schemas/mcp.schema.js.map +1 -0
- package/package.json +5 -5
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z, type ZodError } from 'zod';
|
|
2
|
+
export declare const AgentModelSchema: z.ZodString;
|
|
2
3
|
declare const MemoryConfigSchema: z.ZodObject<{
|
|
3
4
|
enabled: z.ZodBoolean;
|
|
4
5
|
storage: z.ZodEnum<["n8n"]>;
|
|
5
|
-
lastMessages: z.ZodOptional<z.ZodNumber>;
|
|
6
6
|
semanticRecall: z.ZodOptional<z.ZodObject<{
|
|
7
7
|
topK: z.ZodNumber;
|
|
8
8
|
scope: z.ZodOptional<z.ZodEnum<["thread", "resource"]>>;
|
|
@@ -36,6 +36,26 @@ declare const MemoryConfigSchema: z.ZodObject<{
|
|
|
36
36
|
}>>;
|
|
37
37
|
observationalMemory: z.ZodOptional<z.ZodObject<{
|
|
38
38
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
39
|
+
observerModel: z.ZodOptional<z.ZodObject<{
|
|
40
|
+
model: z.ZodString;
|
|
41
|
+
credential: z.ZodString;
|
|
42
|
+
}, "strip", z.ZodTypeAny, {
|
|
43
|
+
model: string;
|
|
44
|
+
credential: string;
|
|
45
|
+
}, {
|
|
46
|
+
model: string;
|
|
47
|
+
credential: string;
|
|
48
|
+
}>>;
|
|
49
|
+
reflectorModel: z.ZodOptional<z.ZodObject<{
|
|
50
|
+
model: z.ZodString;
|
|
51
|
+
credential: z.ZodString;
|
|
52
|
+
}, "strip", z.ZodTypeAny, {
|
|
53
|
+
model: string;
|
|
54
|
+
credential: string;
|
|
55
|
+
}, {
|
|
56
|
+
model: string;
|
|
57
|
+
credential: string;
|
|
58
|
+
}>>;
|
|
39
59
|
observerThresholdTokens: z.ZodOptional<z.ZodNumber>;
|
|
40
60
|
reflectorThresholdTokens: z.ZodOptional<z.ZodNumber>;
|
|
41
61
|
renderTokenBudget: z.ZodOptional<z.ZodNumber>;
|
|
@@ -43,6 +63,14 @@ declare const MemoryConfigSchema: z.ZodObject<{
|
|
|
43
63
|
lockTtlMs: z.ZodOptional<z.ZodNumber>;
|
|
44
64
|
}, "strip", z.ZodTypeAny, {
|
|
45
65
|
enabled?: boolean | undefined;
|
|
66
|
+
observerModel?: {
|
|
67
|
+
model: string;
|
|
68
|
+
credential: string;
|
|
69
|
+
} | undefined;
|
|
70
|
+
reflectorModel?: {
|
|
71
|
+
model: string;
|
|
72
|
+
credential: string;
|
|
73
|
+
} | undefined;
|
|
46
74
|
observerThresholdTokens?: number | undefined;
|
|
47
75
|
reflectorThresholdTokens?: number | undefined;
|
|
48
76
|
renderTokenBudget?: number | undefined;
|
|
@@ -50,6 +78,14 @@ declare const MemoryConfigSchema: z.ZodObject<{
|
|
|
50
78
|
lockTtlMs?: number | undefined;
|
|
51
79
|
}, {
|
|
52
80
|
enabled?: boolean | undefined;
|
|
81
|
+
observerModel?: {
|
|
82
|
+
model: string;
|
|
83
|
+
credential: string;
|
|
84
|
+
} | undefined;
|
|
85
|
+
reflectorModel?: {
|
|
86
|
+
model: string;
|
|
87
|
+
credential: string;
|
|
88
|
+
} | undefined;
|
|
53
89
|
observerThresholdTokens?: number | undefined;
|
|
54
90
|
reflectorThresholdTokens?: number | undefined;
|
|
55
91
|
renderTokenBudget?: number | undefined;
|
|
@@ -65,23 +101,58 @@ declare const MemoryConfigSchema: z.ZodObject<{
|
|
|
65
101
|
}>, z.ZodObject<{
|
|
66
102
|
enabled: z.ZodLiteral<true>;
|
|
67
103
|
credential: z.ZodString;
|
|
104
|
+
extractorModel: z.ZodOptional<z.ZodObject<{
|
|
105
|
+
model: z.ZodString;
|
|
106
|
+
credential: z.ZodString;
|
|
107
|
+
}, "strip", z.ZodTypeAny, {
|
|
108
|
+
model: string;
|
|
109
|
+
credential: string;
|
|
110
|
+
}, {
|
|
111
|
+
model: string;
|
|
112
|
+
credential: string;
|
|
113
|
+
}>>;
|
|
114
|
+
reflectorModel: z.ZodOptional<z.ZodObject<{
|
|
115
|
+
model: z.ZodString;
|
|
116
|
+
credential: z.ZodString;
|
|
117
|
+
}, "strip", z.ZodTypeAny, {
|
|
118
|
+
model: string;
|
|
119
|
+
credential: string;
|
|
120
|
+
}, {
|
|
121
|
+
model: string;
|
|
122
|
+
credential: string;
|
|
123
|
+
}>>;
|
|
68
124
|
topK: z.ZodOptional<z.ZodNumber>;
|
|
69
125
|
maxEntriesPerRun: z.ZodOptional<z.ZodNumber>;
|
|
70
126
|
}, "strip", z.ZodTypeAny, {
|
|
71
|
-
enabled: true;
|
|
72
127
|
credential: string;
|
|
128
|
+
enabled: true;
|
|
73
129
|
topK?: number | undefined;
|
|
130
|
+
reflectorModel?: {
|
|
131
|
+
model: string;
|
|
132
|
+
credential: string;
|
|
133
|
+
} | undefined;
|
|
134
|
+
extractorModel?: {
|
|
135
|
+
model: string;
|
|
136
|
+
credential: string;
|
|
137
|
+
} | undefined;
|
|
74
138
|
maxEntriesPerRun?: number | undefined;
|
|
75
139
|
}, {
|
|
76
|
-
enabled: true;
|
|
77
140
|
credential: string;
|
|
141
|
+
enabled: true;
|
|
78
142
|
topK?: number | undefined;
|
|
143
|
+
reflectorModel?: {
|
|
144
|
+
model: string;
|
|
145
|
+
credential: string;
|
|
146
|
+
} | undefined;
|
|
147
|
+
extractorModel?: {
|
|
148
|
+
model: string;
|
|
149
|
+
credential: string;
|
|
150
|
+
} | undefined;
|
|
79
151
|
maxEntriesPerRun?: number | undefined;
|
|
80
152
|
}>]>>;
|
|
81
153
|
}, "strip", z.ZodTypeAny, {
|
|
82
154
|
enabled: boolean;
|
|
83
155
|
storage: "n8n";
|
|
84
|
-
lastMessages?: number | undefined;
|
|
85
156
|
semanticRecall?: {
|
|
86
157
|
topK: number;
|
|
87
158
|
scope?: "thread" | "resource" | undefined;
|
|
@@ -93,6 +164,14 @@ declare const MemoryConfigSchema: z.ZodObject<{
|
|
|
93
164
|
} | undefined;
|
|
94
165
|
observationalMemory?: {
|
|
95
166
|
enabled?: boolean | undefined;
|
|
167
|
+
observerModel?: {
|
|
168
|
+
model: string;
|
|
169
|
+
credential: string;
|
|
170
|
+
} | undefined;
|
|
171
|
+
reflectorModel?: {
|
|
172
|
+
model: string;
|
|
173
|
+
credential: string;
|
|
174
|
+
} | undefined;
|
|
96
175
|
observerThresholdTokens?: number | undefined;
|
|
97
176
|
reflectorThresholdTokens?: number | undefined;
|
|
98
177
|
renderTokenBudget?: number | undefined;
|
|
@@ -102,15 +181,22 @@ declare const MemoryConfigSchema: z.ZodObject<{
|
|
|
102
181
|
episodicMemory?: {
|
|
103
182
|
enabled: false;
|
|
104
183
|
} | {
|
|
105
|
-
enabled: true;
|
|
106
184
|
credential: string;
|
|
185
|
+
enabled: true;
|
|
107
186
|
topK?: number | undefined;
|
|
187
|
+
reflectorModel?: {
|
|
188
|
+
model: string;
|
|
189
|
+
credential: string;
|
|
190
|
+
} | undefined;
|
|
191
|
+
extractorModel?: {
|
|
192
|
+
model: string;
|
|
193
|
+
credential: string;
|
|
194
|
+
} | undefined;
|
|
108
195
|
maxEntriesPerRun?: number | undefined;
|
|
109
196
|
} | undefined;
|
|
110
197
|
}, {
|
|
111
198
|
enabled: boolean;
|
|
112
199
|
storage: "n8n";
|
|
113
|
-
lastMessages?: number | undefined;
|
|
114
200
|
semanticRecall?: {
|
|
115
201
|
topK: number;
|
|
116
202
|
scope?: "thread" | "resource" | undefined;
|
|
@@ -122,6 +208,14 @@ declare const MemoryConfigSchema: z.ZodObject<{
|
|
|
122
208
|
} | undefined;
|
|
123
209
|
observationalMemory?: {
|
|
124
210
|
enabled?: boolean | undefined;
|
|
211
|
+
observerModel?: {
|
|
212
|
+
model: string;
|
|
213
|
+
credential: string;
|
|
214
|
+
} | undefined;
|
|
215
|
+
reflectorModel?: {
|
|
216
|
+
model: string;
|
|
217
|
+
credential: string;
|
|
218
|
+
} | undefined;
|
|
125
219
|
observerThresholdTokens?: number | undefined;
|
|
126
220
|
reflectorThresholdTokens?: number | undefined;
|
|
127
221
|
renderTokenBudget?: number | undefined;
|
|
@@ -131,13 +225,20 @@ declare const MemoryConfigSchema: z.ZodObject<{
|
|
|
131
225
|
episodicMemory?: {
|
|
132
226
|
enabled: false;
|
|
133
227
|
} | {
|
|
134
|
-
enabled: true;
|
|
135
228
|
credential: string;
|
|
229
|
+
enabled: true;
|
|
136
230
|
topK?: number | undefined;
|
|
231
|
+
reflectorModel?: {
|
|
232
|
+
model: string;
|
|
233
|
+
credential: string;
|
|
234
|
+
} | undefined;
|
|
235
|
+
extractorModel?: {
|
|
236
|
+
model: string;
|
|
237
|
+
credential: string;
|
|
238
|
+
} | undefined;
|
|
137
239
|
maxEntriesPerRun?: number | undefined;
|
|
138
240
|
} | undefined;
|
|
139
241
|
}>;
|
|
140
|
-
export declare const AgentModelSchema: z.ZodString;
|
|
141
242
|
export declare const NodeConfigSchema: z.ZodObject<{
|
|
142
243
|
nodeType: z.ZodString;
|
|
143
244
|
nodeTypeVersion: z.ZodNumber;
|
|
@@ -179,6 +280,119 @@ declare const AgentJsonSkillConfigSchema: z.ZodObject<{
|
|
|
179
280
|
type: "skill";
|
|
180
281
|
id: string;
|
|
181
282
|
}>;
|
|
283
|
+
declare const AgentJsonTaskConfigSchema: z.ZodObject<{
|
|
284
|
+
type: z.ZodLiteral<"task">;
|
|
285
|
+
id: z.ZodString;
|
|
286
|
+
enabled: z.ZodBoolean;
|
|
287
|
+
}, "strip", z.ZodTypeAny, {
|
|
288
|
+
type: "task";
|
|
289
|
+
enabled: boolean;
|
|
290
|
+
id: string;
|
|
291
|
+
}, {
|
|
292
|
+
type: "task";
|
|
293
|
+
enabled: boolean;
|
|
294
|
+
id: string;
|
|
295
|
+
}>;
|
|
296
|
+
export declare const McpAuthenticationSchemaTypes: z.ZodEnum<["none", "bearerAuth", "headerAuth", "multipleHeadersAuth", "mcpOAuth2Api"]>;
|
|
297
|
+
export declare const McpServerConfigSchema: z.ZodObject<{
|
|
298
|
+
name: z.ZodString;
|
|
299
|
+
description: z.ZodOptional<z.ZodString>;
|
|
300
|
+
url: z.ZodString;
|
|
301
|
+
transport: z.ZodDefault<z.ZodEnum<["sse", "streamableHttp"]>>;
|
|
302
|
+
authentication: z.ZodDefault<z.ZodUnion<[z.ZodEnum<["none", "bearerAuth", "headerAuth", "multipleHeadersAuth", "mcpOAuth2Api"]>, z.ZodString]>>;
|
|
303
|
+
credential: z.ZodOptional<z.ZodString>;
|
|
304
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
305
|
+
nodeTypeName: z.ZodOptional<z.ZodString>;
|
|
306
|
+
}, "strip", z.ZodTypeAny, {
|
|
307
|
+
nodeTypeName?: string | undefined;
|
|
308
|
+
}, {
|
|
309
|
+
nodeTypeName?: string | undefined;
|
|
310
|
+
}>>;
|
|
311
|
+
toolFilter: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
|
|
312
|
+
mode: z.ZodLiteral<"allow">;
|
|
313
|
+
tools: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
314
|
+
}, "strict", z.ZodTypeAny, {
|
|
315
|
+
mode: "allow";
|
|
316
|
+
tools: string[];
|
|
317
|
+
}, {
|
|
318
|
+
mode: "allow";
|
|
319
|
+
tools?: string[] | undefined;
|
|
320
|
+
}>, z.ZodObject<{
|
|
321
|
+
mode: z.ZodLiteral<"exclude">;
|
|
322
|
+
tools: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
323
|
+
}, "strict", z.ZodTypeAny, {
|
|
324
|
+
mode: "exclude";
|
|
325
|
+
tools: string[];
|
|
326
|
+
}, {
|
|
327
|
+
mode: "exclude";
|
|
328
|
+
tools?: string[] | undefined;
|
|
329
|
+
}>]>>;
|
|
330
|
+
approval: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
|
|
331
|
+
mode: z.ZodLiteral<"global">;
|
|
332
|
+
}, "strict", z.ZodTypeAny, {
|
|
333
|
+
mode: "global";
|
|
334
|
+
}, {
|
|
335
|
+
mode: "global";
|
|
336
|
+
}>, z.ZodObject<{
|
|
337
|
+
mode: z.ZodLiteral<"selected">;
|
|
338
|
+
tools: z.ZodArray<z.ZodString, "many">;
|
|
339
|
+
}, "strict", z.ZodTypeAny, {
|
|
340
|
+
mode: "selected";
|
|
341
|
+
tools: string[];
|
|
342
|
+
}, {
|
|
343
|
+
mode: "selected";
|
|
344
|
+
tools: string[];
|
|
345
|
+
}>]>>;
|
|
346
|
+
connectionTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
347
|
+
}, "strict", z.ZodTypeAny, {
|
|
348
|
+
name: string;
|
|
349
|
+
url: string;
|
|
350
|
+
transport: "sse" | "streamableHttp";
|
|
351
|
+
authentication: string;
|
|
352
|
+
description?: string | undefined;
|
|
353
|
+
credential?: string | undefined;
|
|
354
|
+
metadata?: {
|
|
355
|
+
nodeTypeName?: string | undefined;
|
|
356
|
+
} | undefined;
|
|
357
|
+
toolFilter?: {
|
|
358
|
+
mode: "allow";
|
|
359
|
+
tools: string[];
|
|
360
|
+
} | {
|
|
361
|
+
mode: "exclude";
|
|
362
|
+
tools: string[];
|
|
363
|
+
} | undefined;
|
|
364
|
+
approval?: {
|
|
365
|
+
mode: "global";
|
|
366
|
+
} | {
|
|
367
|
+
mode: "selected";
|
|
368
|
+
tools: string[];
|
|
369
|
+
} | undefined;
|
|
370
|
+
connectionTimeoutMs?: number | undefined;
|
|
371
|
+
}, {
|
|
372
|
+
name: string;
|
|
373
|
+
url: string;
|
|
374
|
+
description?: string | undefined;
|
|
375
|
+
credential?: string | undefined;
|
|
376
|
+
transport?: "sse" | "streamableHttp" | undefined;
|
|
377
|
+
authentication?: string | undefined;
|
|
378
|
+
metadata?: {
|
|
379
|
+
nodeTypeName?: string | undefined;
|
|
380
|
+
} | undefined;
|
|
381
|
+
toolFilter?: {
|
|
382
|
+
mode: "allow";
|
|
383
|
+
tools?: string[] | undefined;
|
|
384
|
+
} | {
|
|
385
|
+
mode: "exclude";
|
|
386
|
+
tools?: string[] | undefined;
|
|
387
|
+
} | undefined;
|
|
388
|
+
approval?: {
|
|
389
|
+
mode: "global";
|
|
390
|
+
} | {
|
|
391
|
+
mode: "selected";
|
|
392
|
+
tools: string[];
|
|
393
|
+
} | undefined;
|
|
394
|
+
connectionTimeoutMs?: number | undefined;
|
|
395
|
+
}>;
|
|
182
396
|
declare const AgentJsonToolConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
183
397
|
type: z.ZodLiteral<"custom">;
|
|
184
398
|
id: z.ZodString;
|
|
@@ -286,7 +500,6 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
286
500
|
memory: z.ZodOptional<z.ZodObject<{
|
|
287
501
|
enabled: z.ZodBoolean;
|
|
288
502
|
storage: z.ZodEnum<["n8n"]>;
|
|
289
|
-
lastMessages: z.ZodOptional<z.ZodNumber>;
|
|
290
503
|
semanticRecall: z.ZodOptional<z.ZodObject<{
|
|
291
504
|
topK: z.ZodNumber;
|
|
292
505
|
scope: z.ZodOptional<z.ZodEnum<["thread", "resource"]>>;
|
|
@@ -320,6 +533,26 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
320
533
|
}>>;
|
|
321
534
|
observationalMemory: z.ZodOptional<z.ZodObject<{
|
|
322
535
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
536
|
+
observerModel: z.ZodOptional<z.ZodObject<{
|
|
537
|
+
model: z.ZodString;
|
|
538
|
+
credential: z.ZodString;
|
|
539
|
+
}, "strip", z.ZodTypeAny, {
|
|
540
|
+
model: string;
|
|
541
|
+
credential: string;
|
|
542
|
+
}, {
|
|
543
|
+
model: string;
|
|
544
|
+
credential: string;
|
|
545
|
+
}>>;
|
|
546
|
+
reflectorModel: z.ZodOptional<z.ZodObject<{
|
|
547
|
+
model: z.ZodString;
|
|
548
|
+
credential: z.ZodString;
|
|
549
|
+
}, "strip", z.ZodTypeAny, {
|
|
550
|
+
model: string;
|
|
551
|
+
credential: string;
|
|
552
|
+
}, {
|
|
553
|
+
model: string;
|
|
554
|
+
credential: string;
|
|
555
|
+
}>>;
|
|
323
556
|
observerThresholdTokens: z.ZodOptional<z.ZodNumber>;
|
|
324
557
|
reflectorThresholdTokens: z.ZodOptional<z.ZodNumber>;
|
|
325
558
|
renderTokenBudget: z.ZodOptional<z.ZodNumber>;
|
|
@@ -327,6 +560,14 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
327
560
|
lockTtlMs: z.ZodOptional<z.ZodNumber>;
|
|
328
561
|
}, "strip", z.ZodTypeAny, {
|
|
329
562
|
enabled?: boolean | undefined;
|
|
563
|
+
observerModel?: {
|
|
564
|
+
model: string;
|
|
565
|
+
credential: string;
|
|
566
|
+
} | undefined;
|
|
567
|
+
reflectorModel?: {
|
|
568
|
+
model: string;
|
|
569
|
+
credential: string;
|
|
570
|
+
} | undefined;
|
|
330
571
|
observerThresholdTokens?: number | undefined;
|
|
331
572
|
reflectorThresholdTokens?: number | undefined;
|
|
332
573
|
renderTokenBudget?: number | undefined;
|
|
@@ -334,6 +575,14 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
334
575
|
lockTtlMs?: number | undefined;
|
|
335
576
|
}, {
|
|
336
577
|
enabled?: boolean | undefined;
|
|
578
|
+
observerModel?: {
|
|
579
|
+
model: string;
|
|
580
|
+
credential: string;
|
|
581
|
+
} | undefined;
|
|
582
|
+
reflectorModel?: {
|
|
583
|
+
model: string;
|
|
584
|
+
credential: string;
|
|
585
|
+
} | undefined;
|
|
337
586
|
observerThresholdTokens?: number | undefined;
|
|
338
587
|
reflectorThresholdTokens?: number | undefined;
|
|
339
588
|
renderTokenBudget?: number | undefined;
|
|
@@ -349,23 +598,58 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
349
598
|
}>, z.ZodObject<{
|
|
350
599
|
enabled: z.ZodLiteral<true>;
|
|
351
600
|
credential: z.ZodString;
|
|
601
|
+
extractorModel: z.ZodOptional<z.ZodObject<{
|
|
602
|
+
model: z.ZodString;
|
|
603
|
+
credential: z.ZodString;
|
|
604
|
+
}, "strip", z.ZodTypeAny, {
|
|
605
|
+
model: string;
|
|
606
|
+
credential: string;
|
|
607
|
+
}, {
|
|
608
|
+
model: string;
|
|
609
|
+
credential: string;
|
|
610
|
+
}>>;
|
|
611
|
+
reflectorModel: z.ZodOptional<z.ZodObject<{
|
|
612
|
+
model: z.ZodString;
|
|
613
|
+
credential: z.ZodString;
|
|
614
|
+
}, "strip", z.ZodTypeAny, {
|
|
615
|
+
model: string;
|
|
616
|
+
credential: string;
|
|
617
|
+
}, {
|
|
618
|
+
model: string;
|
|
619
|
+
credential: string;
|
|
620
|
+
}>>;
|
|
352
621
|
topK: z.ZodOptional<z.ZodNumber>;
|
|
353
622
|
maxEntriesPerRun: z.ZodOptional<z.ZodNumber>;
|
|
354
623
|
}, "strip", z.ZodTypeAny, {
|
|
355
|
-
enabled: true;
|
|
356
624
|
credential: string;
|
|
625
|
+
enabled: true;
|
|
357
626
|
topK?: number | undefined;
|
|
627
|
+
reflectorModel?: {
|
|
628
|
+
model: string;
|
|
629
|
+
credential: string;
|
|
630
|
+
} | undefined;
|
|
631
|
+
extractorModel?: {
|
|
632
|
+
model: string;
|
|
633
|
+
credential: string;
|
|
634
|
+
} | undefined;
|
|
358
635
|
maxEntriesPerRun?: number | undefined;
|
|
359
636
|
}, {
|
|
360
|
-
enabled: true;
|
|
361
637
|
credential: string;
|
|
638
|
+
enabled: true;
|
|
362
639
|
topK?: number | undefined;
|
|
640
|
+
reflectorModel?: {
|
|
641
|
+
model: string;
|
|
642
|
+
credential: string;
|
|
643
|
+
} | undefined;
|
|
644
|
+
extractorModel?: {
|
|
645
|
+
model: string;
|
|
646
|
+
credential: string;
|
|
647
|
+
} | undefined;
|
|
363
648
|
maxEntriesPerRun?: number | undefined;
|
|
364
649
|
}>]>>;
|
|
365
650
|
}, "strip", z.ZodTypeAny, {
|
|
366
651
|
enabled: boolean;
|
|
367
652
|
storage: "n8n";
|
|
368
|
-
lastMessages?: number | undefined;
|
|
369
653
|
semanticRecall?: {
|
|
370
654
|
topK: number;
|
|
371
655
|
scope?: "thread" | "resource" | undefined;
|
|
@@ -377,6 +661,14 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
377
661
|
} | undefined;
|
|
378
662
|
observationalMemory?: {
|
|
379
663
|
enabled?: boolean | undefined;
|
|
664
|
+
observerModel?: {
|
|
665
|
+
model: string;
|
|
666
|
+
credential: string;
|
|
667
|
+
} | undefined;
|
|
668
|
+
reflectorModel?: {
|
|
669
|
+
model: string;
|
|
670
|
+
credential: string;
|
|
671
|
+
} | undefined;
|
|
380
672
|
observerThresholdTokens?: number | undefined;
|
|
381
673
|
reflectorThresholdTokens?: number | undefined;
|
|
382
674
|
renderTokenBudget?: number | undefined;
|
|
@@ -386,15 +678,22 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
386
678
|
episodicMemory?: {
|
|
387
679
|
enabled: false;
|
|
388
680
|
} | {
|
|
389
|
-
enabled: true;
|
|
390
681
|
credential: string;
|
|
682
|
+
enabled: true;
|
|
391
683
|
topK?: number | undefined;
|
|
684
|
+
reflectorModel?: {
|
|
685
|
+
model: string;
|
|
686
|
+
credential: string;
|
|
687
|
+
} | undefined;
|
|
688
|
+
extractorModel?: {
|
|
689
|
+
model: string;
|
|
690
|
+
credential: string;
|
|
691
|
+
} | undefined;
|
|
392
692
|
maxEntriesPerRun?: number | undefined;
|
|
393
693
|
} | undefined;
|
|
394
694
|
}, {
|
|
395
695
|
enabled: boolean;
|
|
396
696
|
storage: "n8n";
|
|
397
|
-
lastMessages?: number | undefined;
|
|
398
697
|
semanticRecall?: {
|
|
399
698
|
topK: number;
|
|
400
699
|
scope?: "thread" | "resource" | undefined;
|
|
@@ -406,6 +705,14 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
406
705
|
} | undefined;
|
|
407
706
|
observationalMemory?: {
|
|
408
707
|
enabled?: boolean | undefined;
|
|
708
|
+
observerModel?: {
|
|
709
|
+
model: string;
|
|
710
|
+
credential: string;
|
|
711
|
+
} | undefined;
|
|
712
|
+
reflectorModel?: {
|
|
713
|
+
model: string;
|
|
714
|
+
credential: string;
|
|
715
|
+
} | undefined;
|
|
409
716
|
observerThresholdTokens?: number | undefined;
|
|
410
717
|
reflectorThresholdTokens?: number | undefined;
|
|
411
718
|
renderTokenBudget?: number | undefined;
|
|
@@ -415,9 +722,17 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
415
722
|
episodicMemory?: {
|
|
416
723
|
enabled: false;
|
|
417
724
|
} | {
|
|
418
|
-
enabled: true;
|
|
419
725
|
credential: string;
|
|
726
|
+
enabled: true;
|
|
420
727
|
topK?: number | undefined;
|
|
728
|
+
reflectorModel?: {
|
|
729
|
+
model: string;
|
|
730
|
+
credential: string;
|
|
731
|
+
} | undefined;
|
|
732
|
+
extractorModel?: {
|
|
733
|
+
model: string;
|
|
734
|
+
credential: string;
|
|
735
|
+
} | undefined;
|
|
421
736
|
maxEntriesPerRun?: number | undefined;
|
|
422
737
|
} | undefined;
|
|
423
738
|
}>>;
|
|
@@ -529,8 +844,21 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
529
844
|
type: "skill";
|
|
530
845
|
id: string;
|
|
531
846
|
}>, "many">>;
|
|
847
|
+
tasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
848
|
+
type: z.ZodLiteral<"task">;
|
|
849
|
+
id: z.ZodString;
|
|
850
|
+
enabled: z.ZodBoolean;
|
|
851
|
+
}, "strip", z.ZodTypeAny, {
|
|
852
|
+
type: "task";
|
|
853
|
+
enabled: boolean;
|
|
854
|
+
id: string;
|
|
855
|
+
}, {
|
|
856
|
+
type: "task";
|
|
857
|
+
enabled: boolean;
|
|
858
|
+
id: string;
|
|
859
|
+
}>, "many">>;
|
|
532
860
|
providerTools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
533
|
-
integrations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
861
|
+
integrations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", readonly [z.ZodObject<{
|
|
534
862
|
type: z.ZodLiteral<"telegram">;
|
|
535
863
|
credentialId: z.ZodString;
|
|
536
864
|
} & {
|
|
@@ -582,22 +910,154 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
582
910
|
}, {
|
|
583
911
|
type: "linear";
|
|
584
912
|
credentialId: string;
|
|
585
|
-
}>,
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
913
|
+
}>]>, "many">>;
|
|
914
|
+
mcpServers: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
915
|
+
name: z.ZodString;
|
|
916
|
+
description: z.ZodOptional<z.ZodString>;
|
|
917
|
+
url: z.ZodString;
|
|
918
|
+
transport: z.ZodDefault<z.ZodEnum<["sse", "streamableHttp"]>>;
|
|
919
|
+
authentication: z.ZodDefault<z.ZodUnion<[z.ZodEnum<["none", "bearerAuth", "headerAuth", "multipleHeadersAuth", "mcpOAuth2Api"]>, z.ZodString]>>;
|
|
920
|
+
credential: z.ZodOptional<z.ZodString>;
|
|
921
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
922
|
+
nodeTypeName: z.ZodOptional<z.ZodString>;
|
|
923
|
+
}, "strip", z.ZodTypeAny, {
|
|
924
|
+
nodeTypeName?: string | undefined;
|
|
925
|
+
}, {
|
|
926
|
+
nodeTypeName?: string | undefined;
|
|
927
|
+
}>>;
|
|
928
|
+
toolFilter: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
|
|
929
|
+
mode: z.ZodLiteral<"allow">;
|
|
930
|
+
tools: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
931
|
+
}, "strict", z.ZodTypeAny, {
|
|
932
|
+
mode: "allow";
|
|
933
|
+
tools: string[];
|
|
934
|
+
}, {
|
|
935
|
+
mode: "allow";
|
|
936
|
+
tools?: string[] | undefined;
|
|
937
|
+
}>, z.ZodObject<{
|
|
938
|
+
mode: z.ZodLiteral<"exclude">;
|
|
939
|
+
tools: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
940
|
+
}, "strict", z.ZodTypeAny, {
|
|
941
|
+
mode: "exclude";
|
|
942
|
+
tools: string[];
|
|
943
|
+
}, {
|
|
944
|
+
mode: "exclude";
|
|
945
|
+
tools?: string[] | undefined;
|
|
946
|
+
}>]>>;
|
|
947
|
+
approval: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
|
|
948
|
+
mode: z.ZodLiteral<"global">;
|
|
949
|
+
}, "strict", z.ZodTypeAny, {
|
|
950
|
+
mode: "global";
|
|
951
|
+
}, {
|
|
952
|
+
mode: "global";
|
|
953
|
+
}>, z.ZodObject<{
|
|
954
|
+
mode: z.ZodLiteral<"selected">;
|
|
955
|
+
tools: z.ZodArray<z.ZodString, "many">;
|
|
956
|
+
}, "strict", z.ZodTypeAny, {
|
|
957
|
+
mode: "selected";
|
|
958
|
+
tools: string[];
|
|
959
|
+
}, {
|
|
960
|
+
mode: "selected";
|
|
961
|
+
tools: string[];
|
|
962
|
+
}>]>>;
|
|
963
|
+
connectionTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
590
964
|
}, "strict", z.ZodTypeAny, {
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
965
|
+
name: string;
|
|
966
|
+
url: string;
|
|
967
|
+
transport: "sse" | "streamableHttp";
|
|
968
|
+
authentication: string;
|
|
969
|
+
description?: string | undefined;
|
|
970
|
+
credential?: string | undefined;
|
|
971
|
+
metadata?: {
|
|
972
|
+
nodeTypeName?: string | undefined;
|
|
973
|
+
} | undefined;
|
|
974
|
+
toolFilter?: {
|
|
975
|
+
mode: "allow";
|
|
976
|
+
tools: string[];
|
|
977
|
+
} | {
|
|
978
|
+
mode: "exclude";
|
|
979
|
+
tools: string[];
|
|
980
|
+
} | undefined;
|
|
981
|
+
approval?: {
|
|
982
|
+
mode: "global";
|
|
983
|
+
} | {
|
|
984
|
+
mode: "selected";
|
|
985
|
+
tools: string[];
|
|
986
|
+
} | undefined;
|
|
987
|
+
connectionTimeoutMs?: number | undefined;
|
|
595
988
|
}, {
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
989
|
+
name: string;
|
|
990
|
+
url: string;
|
|
991
|
+
description?: string | undefined;
|
|
992
|
+
credential?: string | undefined;
|
|
993
|
+
transport?: "sse" | "streamableHttp" | undefined;
|
|
994
|
+
authentication?: string | undefined;
|
|
995
|
+
metadata?: {
|
|
996
|
+
nodeTypeName?: string | undefined;
|
|
997
|
+
} | undefined;
|
|
998
|
+
toolFilter?: {
|
|
999
|
+
mode: "allow";
|
|
1000
|
+
tools?: string[] | undefined;
|
|
1001
|
+
} | {
|
|
1002
|
+
mode: "exclude";
|
|
1003
|
+
tools?: string[] | undefined;
|
|
1004
|
+
} | undefined;
|
|
1005
|
+
approval?: {
|
|
1006
|
+
mode: "global";
|
|
1007
|
+
} | {
|
|
1008
|
+
mode: "selected";
|
|
1009
|
+
tools: string[];
|
|
1010
|
+
} | undefined;
|
|
1011
|
+
connectionTimeoutMs?: number | undefined;
|
|
1012
|
+
}>, "many">, {
|
|
1013
|
+
name: string;
|
|
1014
|
+
url: string;
|
|
1015
|
+
transport: "sse" | "streamableHttp";
|
|
1016
|
+
authentication: string;
|
|
1017
|
+
description?: string | undefined;
|
|
1018
|
+
credential?: string | undefined;
|
|
1019
|
+
metadata?: {
|
|
1020
|
+
nodeTypeName?: string | undefined;
|
|
1021
|
+
} | undefined;
|
|
1022
|
+
toolFilter?: {
|
|
1023
|
+
mode: "allow";
|
|
1024
|
+
tools: string[];
|
|
1025
|
+
} | {
|
|
1026
|
+
mode: "exclude";
|
|
1027
|
+
tools: string[];
|
|
1028
|
+
} | undefined;
|
|
1029
|
+
approval?: {
|
|
1030
|
+
mode: "global";
|
|
1031
|
+
} | {
|
|
1032
|
+
mode: "selected";
|
|
1033
|
+
tools: string[];
|
|
1034
|
+
} | undefined;
|
|
1035
|
+
connectionTimeoutMs?: number | undefined;
|
|
1036
|
+
}[], {
|
|
1037
|
+
name: string;
|
|
1038
|
+
url: string;
|
|
1039
|
+
description?: string | undefined;
|
|
1040
|
+
credential?: string | undefined;
|
|
1041
|
+
transport?: "sse" | "streamableHttp" | undefined;
|
|
1042
|
+
authentication?: string | undefined;
|
|
1043
|
+
metadata?: {
|
|
1044
|
+
nodeTypeName?: string | undefined;
|
|
1045
|
+
} | undefined;
|
|
1046
|
+
toolFilter?: {
|
|
1047
|
+
mode: "allow";
|
|
1048
|
+
tools?: string[] | undefined;
|
|
1049
|
+
} | {
|
|
1050
|
+
mode: "exclude";
|
|
1051
|
+
tools?: string[] | undefined;
|
|
1052
|
+
} | undefined;
|
|
1053
|
+
approval?: {
|
|
1054
|
+
mode: "global";
|
|
1055
|
+
} | {
|
|
1056
|
+
mode: "selected";
|
|
1057
|
+
tools: string[];
|
|
1058
|
+
} | undefined;
|
|
1059
|
+
connectionTimeoutMs?: number | undefined;
|
|
1060
|
+
}[]>>;
|
|
601
1061
|
config: z.ZodOptional<z.ZodObject<{
|
|
602
1062
|
thinking: z.ZodOptional<z.ZodObject<{
|
|
603
1063
|
provider: z.ZodEnum<["anthropic", "openai"]>;
|
|
@@ -612,6 +1072,19 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
612
1072
|
budgetTokens?: number | undefined;
|
|
613
1073
|
reasoningEffort?: string | undefined;
|
|
614
1074
|
}>>;
|
|
1075
|
+
webSearch: z.ZodOptional<z.ZodObject<{
|
|
1076
|
+
enabled: z.ZodBoolean;
|
|
1077
|
+
provider: z.ZodOptional<z.ZodEnum<["auto", "native", "brave", "searxng"]>>;
|
|
1078
|
+
credential: z.ZodOptional<z.ZodString>;
|
|
1079
|
+
}, "strip", z.ZodTypeAny, {
|
|
1080
|
+
enabled: boolean;
|
|
1081
|
+
provider?: "auto" | "native" | "brave" | "searxng" | undefined;
|
|
1082
|
+
credential?: string | undefined;
|
|
1083
|
+
}, {
|
|
1084
|
+
enabled: boolean;
|
|
1085
|
+
provider?: "auto" | "native" | "brave" | "searxng" | undefined;
|
|
1086
|
+
credential?: string | undefined;
|
|
1087
|
+
}>>;
|
|
615
1088
|
toolCallConcurrency: z.ZodOptional<z.ZodNumber>;
|
|
616
1089
|
maxIterations: z.ZodOptional<z.ZodNumber>;
|
|
617
1090
|
nodeTools: z.ZodOptional<z.ZodObject<{
|
|
@@ -627,6 +1100,11 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
627
1100
|
budgetTokens?: number | undefined;
|
|
628
1101
|
reasoningEffort?: string | undefined;
|
|
629
1102
|
} | undefined;
|
|
1103
|
+
webSearch?: {
|
|
1104
|
+
enabled: boolean;
|
|
1105
|
+
provider?: "auto" | "native" | "brave" | "searxng" | undefined;
|
|
1106
|
+
credential?: string | undefined;
|
|
1107
|
+
} | undefined;
|
|
630
1108
|
toolCallConcurrency?: number | undefined;
|
|
631
1109
|
maxIterations?: number | undefined;
|
|
632
1110
|
nodeTools?: {
|
|
@@ -638,6 +1116,11 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
638
1116
|
budgetTokens?: number | undefined;
|
|
639
1117
|
reasoningEffort?: string | undefined;
|
|
640
1118
|
} | undefined;
|
|
1119
|
+
webSearch?: {
|
|
1120
|
+
enabled: boolean;
|
|
1121
|
+
provider?: "auto" | "native" | "brave" | "searxng" | undefined;
|
|
1122
|
+
credential?: string | undefined;
|
|
1123
|
+
} | undefined;
|
|
641
1124
|
toolCallConcurrency?: number | undefined;
|
|
642
1125
|
maxIterations?: number | undefined;
|
|
643
1126
|
nodeTools?: {
|
|
@@ -650,10 +1133,35 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
650
1133
|
instructions: string;
|
|
651
1134
|
description?: string | undefined;
|
|
652
1135
|
credential?: string | undefined;
|
|
1136
|
+
tools?: ({
|
|
1137
|
+
type: "custom";
|
|
1138
|
+
id: string;
|
|
1139
|
+
requireApproval?: boolean | undefined;
|
|
1140
|
+
} | {
|
|
1141
|
+
type: "workflow";
|
|
1142
|
+
workflow: string;
|
|
1143
|
+
description?: string | undefined;
|
|
1144
|
+
name?: string | undefined;
|
|
1145
|
+
requireApproval?: boolean | undefined;
|
|
1146
|
+
allOutputs?: boolean | undefined;
|
|
1147
|
+
} | {
|
|
1148
|
+
type: "node";
|
|
1149
|
+
name: string;
|
|
1150
|
+
node: {
|
|
1151
|
+
nodeType: string;
|
|
1152
|
+
nodeTypeVersion: number;
|
|
1153
|
+
nodeParameters: Record<string, unknown>;
|
|
1154
|
+
credentials?: Record<string, {
|
|
1155
|
+
id: string;
|
|
1156
|
+
name: string;
|
|
1157
|
+
}> | undefined;
|
|
1158
|
+
};
|
|
1159
|
+
description?: string | undefined;
|
|
1160
|
+
requireApproval?: boolean | undefined;
|
|
1161
|
+
})[] | undefined;
|
|
653
1162
|
memory?: {
|
|
654
1163
|
enabled: boolean;
|
|
655
1164
|
storage: "n8n";
|
|
656
|
-
lastMessages?: number | undefined;
|
|
657
1165
|
semanticRecall?: {
|
|
658
1166
|
topK: number;
|
|
659
1167
|
scope?: "thread" | "resource" | undefined;
|
|
@@ -665,6 +1173,14 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
665
1173
|
} | undefined;
|
|
666
1174
|
observationalMemory?: {
|
|
667
1175
|
enabled?: boolean | undefined;
|
|
1176
|
+
observerModel?: {
|
|
1177
|
+
model: string;
|
|
1178
|
+
credential: string;
|
|
1179
|
+
} | undefined;
|
|
1180
|
+
reflectorModel?: {
|
|
1181
|
+
model: string;
|
|
1182
|
+
credential: string;
|
|
1183
|
+
} | undefined;
|
|
668
1184
|
observerThresholdTokens?: number | undefined;
|
|
669
1185
|
reflectorThresholdTokens?: number | undefined;
|
|
670
1186
|
renderTokenBudget?: number | undefined;
|
|
@@ -674,49 +1190,31 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
674
1190
|
episodicMemory?: {
|
|
675
1191
|
enabled: false;
|
|
676
1192
|
} | {
|
|
677
|
-
enabled: true;
|
|
678
1193
|
credential: string;
|
|
1194
|
+
enabled: true;
|
|
679
1195
|
topK?: number | undefined;
|
|
1196
|
+
reflectorModel?: {
|
|
1197
|
+
model: string;
|
|
1198
|
+
credential: string;
|
|
1199
|
+
} | undefined;
|
|
1200
|
+
extractorModel?: {
|
|
1201
|
+
model: string;
|
|
1202
|
+
credential: string;
|
|
1203
|
+
} | undefined;
|
|
680
1204
|
maxEntriesPerRun?: number | undefined;
|
|
681
1205
|
} | undefined;
|
|
682
1206
|
} | undefined;
|
|
683
|
-
|
|
684
|
-
type: "
|
|
1207
|
+
skills?: {
|
|
1208
|
+
type: "skill";
|
|
685
1209
|
id: string;
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
type: "
|
|
689
|
-
|
|
690
|
-
description?: string | undefined;
|
|
691
|
-
name?: string | undefined;
|
|
692
|
-
requireApproval?: boolean | undefined;
|
|
693
|
-
allOutputs?: boolean | undefined;
|
|
694
|
-
} | {
|
|
695
|
-
type: "node";
|
|
696
|
-
name: string;
|
|
697
|
-
node: {
|
|
698
|
-
nodeType: string;
|
|
699
|
-
nodeTypeVersion: number;
|
|
700
|
-
nodeParameters: Record<string, unknown>;
|
|
701
|
-
credentials?: Record<string, {
|
|
702
|
-
id: string;
|
|
703
|
-
name: string;
|
|
704
|
-
}> | undefined;
|
|
705
|
-
};
|
|
706
|
-
description?: string | undefined;
|
|
707
|
-
requireApproval?: boolean | undefined;
|
|
708
|
-
})[] | undefined;
|
|
709
|
-
skills?: {
|
|
710
|
-
type: "skill";
|
|
1210
|
+
}[] | undefined;
|
|
1211
|
+
tasks?: {
|
|
1212
|
+
type: "task";
|
|
1213
|
+
enabled: boolean;
|
|
711
1214
|
id: string;
|
|
712
1215
|
}[] | undefined;
|
|
713
1216
|
providerTools?: Record<string, Record<string, unknown>> | undefined;
|
|
714
1217
|
integrations?: ({
|
|
715
|
-
type: "schedule";
|
|
716
|
-
active: boolean;
|
|
717
|
-
cronExpression: string;
|
|
718
|
-
wakeUpPrompt: string;
|
|
719
|
-
} | {
|
|
720
1218
|
type: "telegram";
|
|
721
1219
|
credentialId: string;
|
|
722
1220
|
settings?: {
|
|
@@ -730,12 +1228,42 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
730
1228
|
type: "linear";
|
|
731
1229
|
credentialId: string;
|
|
732
1230
|
})[] | undefined;
|
|
1231
|
+
mcpServers?: {
|
|
1232
|
+
name: string;
|
|
1233
|
+
url: string;
|
|
1234
|
+
transport: "sse" | "streamableHttp";
|
|
1235
|
+
authentication: string;
|
|
1236
|
+
description?: string | undefined;
|
|
1237
|
+
credential?: string | undefined;
|
|
1238
|
+
metadata?: {
|
|
1239
|
+
nodeTypeName?: string | undefined;
|
|
1240
|
+
} | undefined;
|
|
1241
|
+
toolFilter?: {
|
|
1242
|
+
mode: "allow";
|
|
1243
|
+
tools: string[];
|
|
1244
|
+
} | {
|
|
1245
|
+
mode: "exclude";
|
|
1246
|
+
tools: string[];
|
|
1247
|
+
} | undefined;
|
|
1248
|
+
approval?: {
|
|
1249
|
+
mode: "global";
|
|
1250
|
+
} | {
|
|
1251
|
+
mode: "selected";
|
|
1252
|
+
tools: string[];
|
|
1253
|
+
} | undefined;
|
|
1254
|
+
connectionTimeoutMs?: number | undefined;
|
|
1255
|
+
}[] | undefined;
|
|
733
1256
|
config?: {
|
|
734
1257
|
thinking?: {
|
|
735
1258
|
provider: "anthropic" | "openai";
|
|
736
1259
|
budgetTokens?: number | undefined;
|
|
737
1260
|
reasoningEffort?: string | undefined;
|
|
738
1261
|
} | undefined;
|
|
1262
|
+
webSearch?: {
|
|
1263
|
+
enabled: boolean;
|
|
1264
|
+
provider?: "auto" | "native" | "brave" | "searxng" | undefined;
|
|
1265
|
+
credential?: string | undefined;
|
|
1266
|
+
} | undefined;
|
|
739
1267
|
toolCallConcurrency?: number | undefined;
|
|
740
1268
|
maxIterations?: number | undefined;
|
|
741
1269
|
nodeTools?: {
|
|
@@ -748,10 +1276,35 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
748
1276
|
instructions: string;
|
|
749
1277
|
description?: string | undefined;
|
|
750
1278
|
credential?: string | undefined;
|
|
1279
|
+
tools?: ({
|
|
1280
|
+
type: "custom";
|
|
1281
|
+
id: string;
|
|
1282
|
+
requireApproval?: boolean | undefined;
|
|
1283
|
+
} | {
|
|
1284
|
+
type: "workflow";
|
|
1285
|
+
workflow: string;
|
|
1286
|
+
description?: string | undefined;
|
|
1287
|
+
name?: string | undefined;
|
|
1288
|
+
requireApproval?: boolean | undefined;
|
|
1289
|
+
allOutputs?: boolean | undefined;
|
|
1290
|
+
} | {
|
|
1291
|
+
type: "node";
|
|
1292
|
+
name: string;
|
|
1293
|
+
node: {
|
|
1294
|
+
nodeType: string;
|
|
1295
|
+
nodeTypeVersion: number;
|
|
1296
|
+
nodeParameters?: Record<string, unknown> | undefined;
|
|
1297
|
+
credentials?: Record<string, {
|
|
1298
|
+
id: string;
|
|
1299
|
+
name: string;
|
|
1300
|
+
}> | undefined;
|
|
1301
|
+
};
|
|
1302
|
+
description?: string | undefined;
|
|
1303
|
+
requireApproval?: boolean | undefined;
|
|
1304
|
+
})[] | undefined;
|
|
751
1305
|
memory?: {
|
|
752
1306
|
enabled: boolean;
|
|
753
1307
|
storage: "n8n";
|
|
754
|
-
lastMessages?: number | undefined;
|
|
755
1308
|
semanticRecall?: {
|
|
756
1309
|
topK: number;
|
|
757
1310
|
scope?: "thread" | "resource" | undefined;
|
|
@@ -763,6 +1316,14 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
763
1316
|
} | undefined;
|
|
764
1317
|
observationalMemory?: {
|
|
765
1318
|
enabled?: boolean | undefined;
|
|
1319
|
+
observerModel?: {
|
|
1320
|
+
model: string;
|
|
1321
|
+
credential: string;
|
|
1322
|
+
} | undefined;
|
|
1323
|
+
reflectorModel?: {
|
|
1324
|
+
model: string;
|
|
1325
|
+
credential: string;
|
|
1326
|
+
} | undefined;
|
|
766
1327
|
observerThresholdTokens?: number | undefined;
|
|
767
1328
|
reflectorThresholdTokens?: number | undefined;
|
|
768
1329
|
renderTokenBudget?: number | undefined;
|
|
@@ -772,49 +1333,31 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
772
1333
|
episodicMemory?: {
|
|
773
1334
|
enabled: false;
|
|
774
1335
|
} | {
|
|
775
|
-
enabled: true;
|
|
776
1336
|
credential: string;
|
|
1337
|
+
enabled: true;
|
|
777
1338
|
topK?: number | undefined;
|
|
1339
|
+
reflectorModel?: {
|
|
1340
|
+
model: string;
|
|
1341
|
+
credential: string;
|
|
1342
|
+
} | undefined;
|
|
1343
|
+
extractorModel?: {
|
|
1344
|
+
model: string;
|
|
1345
|
+
credential: string;
|
|
1346
|
+
} | undefined;
|
|
778
1347
|
maxEntriesPerRun?: number | undefined;
|
|
779
1348
|
} | undefined;
|
|
780
1349
|
} | undefined;
|
|
781
|
-
tools?: ({
|
|
782
|
-
type: "custom";
|
|
783
|
-
id: string;
|
|
784
|
-
requireApproval?: boolean | undefined;
|
|
785
|
-
} | {
|
|
786
|
-
type: "workflow";
|
|
787
|
-
workflow: string;
|
|
788
|
-
description?: string | undefined;
|
|
789
|
-
name?: string | undefined;
|
|
790
|
-
requireApproval?: boolean | undefined;
|
|
791
|
-
allOutputs?: boolean | undefined;
|
|
792
|
-
} | {
|
|
793
|
-
type: "node";
|
|
794
|
-
name: string;
|
|
795
|
-
node: {
|
|
796
|
-
nodeType: string;
|
|
797
|
-
nodeTypeVersion: number;
|
|
798
|
-
nodeParameters?: Record<string, unknown> | undefined;
|
|
799
|
-
credentials?: Record<string, {
|
|
800
|
-
id: string;
|
|
801
|
-
name: string;
|
|
802
|
-
}> | undefined;
|
|
803
|
-
};
|
|
804
|
-
description?: string | undefined;
|
|
805
|
-
requireApproval?: boolean | undefined;
|
|
806
|
-
})[] | undefined;
|
|
807
1350
|
skills?: {
|
|
808
1351
|
type: "skill";
|
|
809
1352
|
id: string;
|
|
810
1353
|
}[] | undefined;
|
|
1354
|
+
tasks?: {
|
|
1355
|
+
type: "task";
|
|
1356
|
+
enabled: boolean;
|
|
1357
|
+
id: string;
|
|
1358
|
+
}[] | undefined;
|
|
811
1359
|
providerTools?: Record<string, Record<string, unknown>> | undefined;
|
|
812
1360
|
integrations?: ({
|
|
813
|
-
type: "schedule";
|
|
814
|
-
active: boolean;
|
|
815
|
-
cronExpression: string;
|
|
816
|
-
wakeUpPrompt: string;
|
|
817
|
-
} | {
|
|
818
1361
|
type: "telegram";
|
|
819
1362
|
credentialId: string;
|
|
820
1363
|
settings?: {
|
|
@@ -828,12 +1371,42 @@ export declare const AgentJsonConfigSchema: z.ZodObject<{
|
|
|
828
1371
|
type: "linear";
|
|
829
1372
|
credentialId: string;
|
|
830
1373
|
})[] | undefined;
|
|
1374
|
+
mcpServers?: {
|
|
1375
|
+
name: string;
|
|
1376
|
+
url: string;
|
|
1377
|
+
description?: string | undefined;
|
|
1378
|
+
credential?: string | undefined;
|
|
1379
|
+
transport?: "sse" | "streamableHttp" | undefined;
|
|
1380
|
+
authentication?: string | undefined;
|
|
1381
|
+
metadata?: {
|
|
1382
|
+
nodeTypeName?: string | undefined;
|
|
1383
|
+
} | undefined;
|
|
1384
|
+
toolFilter?: {
|
|
1385
|
+
mode: "allow";
|
|
1386
|
+
tools?: string[] | undefined;
|
|
1387
|
+
} | {
|
|
1388
|
+
mode: "exclude";
|
|
1389
|
+
tools?: string[] | undefined;
|
|
1390
|
+
} | undefined;
|
|
1391
|
+
approval?: {
|
|
1392
|
+
mode: "global";
|
|
1393
|
+
} | {
|
|
1394
|
+
mode: "selected";
|
|
1395
|
+
tools: string[];
|
|
1396
|
+
} | undefined;
|
|
1397
|
+
connectionTimeoutMs?: number | undefined;
|
|
1398
|
+
}[] | undefined;
|
|
831
1399
|
config?: {
|
|
832
1400
|
thinking?: {
|
|
833
1401
|
provider: "anthropic" | "openai";
|
|
834
1402
|
budgetTokens?: number | undefined;
|
|
835
1403
|
reasoningEffort?: string | undefined;
|
|
836
1404
|
} | undefined;
|
|
1405
|
+
webSearch?: {
|
|
1406
|
+
enabled: boolean;
|
|
1407
|
+
provider?: "auto" | "native" | "brave" | "searxng" | undefined;
|
|
1408
|
+
credential?: string | undefined;
|
|
1409
|
+
} | undefined;
|
|
837
1410
|
toolCallConcurrency?: number | undefined;
|
|
838
1411
|
maxIterations?: number | undefined;
|
|
839
1412
|
nodeTools?: {
|
|
@@ -848,7 +1421,6 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
848
1421
|
memory: z.ZodOptional<z.ZodObject<{
|
|
849
1422
|
enabled: z.ZodBoolean;
|
|
850
1423
|
storage: z.ZodEnum<["n8n"]>;
|
|
851
|
-
lastMessages: z.ZodOptional<z.ZodNumber>;
|
|
852
1424
|
semanticRecall: z.ZodOptional<z.ZodObject<{
|
|
853
1425
|
topK: z.ZodNumber;
|
|
854
1426
|
scope: z.ZodOptional<z.ZodEnum<["thread", "resource"]>>;
|
|
@@ -882,6 +1454,26 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
882
1454
|
}>>;
|
|
883
1455
|
observationalMemory: z.ZodOptional<z.ZodObject<{
|
|
884
1456
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1457
|
+
observerModel: z.ZodOptional<z.ZodObject<{
|
|
1458
|
+
model: z.ZodString;
|
|
1459
|
+
credential: z.ZodString;
|
|
1460
|
+
}, "strip", z.ZodTypeAny, {
|
|
1461
|
+
model: string;
|
|
1462
|
+
credential: string;
|
|
1463
|
+
}, {
|
|
1464
|
+
model: string;
|
|
1465
|
+
credential: string;
|
|
1466
|
+
}>>;
|
|
1467
|
+
reflectorModel: z.ZodOptional<z.ZodObject<{
|
|
1468
|
+
model: z.ZodString;
|
|
1469
|
+
credential: z.ZodString;
|
|
1470
|
+
}, "strip", z.ZodTypeAny, {
|
|
1471
|
+
model: string;
|
|
1472
|
+
credential: string;
|
|
1473
|
+
}, {
|
|
1474
|
+
model: string;
|
|
1475
|
+
credential: string;
|
|
1476
|
+
}>>;
|
|
885
1477
|
observerThresholdTokens: z.ZodOptional<z.ZodNumber>;
|
|
886
1478
|
reflectorThresholdTokens: z.ZodOptional<z.ZodNumber>;
|
|
887
1479
|
renderTokenBudget: z.ZodOptional<z.ZodNumber>;
|
|
@@ -889,6 +1481,14 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
889
1481
|
lockTtlMs: z.ZodOptional<z.ZodNumber>;
|
|
890
1482
|
}, "strip", z.ZodTypeAny, {
|
|
891
1483
|
enabled?: boolean | undefined;
|
|
1484
|
+
observerModel?: {
|
|
1485
|
+
model: string;
|
|
1486
|
+
credential: string;
|
|
1487
|
+
} | undefined;
|
|
1488
|
+
reflectorModel?: {
|
|
1489
|
+
model: string;
|
|
1490
|
+
credential: string;
|
|
1491
|
+
} | undefined;
|
|
892
1492
|
observerThresholdTokens?: number | undefined;
|
|
893
1493
|
reflectorThresholdTokens?: number | undefined;
|
|
894
1494
|
renderTokenBudget?: number | undefined;
|
|
@@ -896,6 +1496,14 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
896
1496
|
lockTtlMs?: number | undefined;
|
|
897
1497
|
}, {
|
|
898
1498
|
enabled?: boolean | undefined;
|
|
1499
|
+
observerModel?: {
|
|
1500
|
+
model: string;
|
|
1501
|
+
credential: string;
|
|
1502
|
+
} | undefined;
|
|
1503
|
+
reflectorModel?: {
|
|
1504
|
+
model: string;
|
|
1505
|
+
credential: string;
|
|
1506
|
+
} | undefined;
|
|
899
1507
|
observerThresholdTokens?: number | undefined;
|
|
900
1508
|
reflectorThresholdTokens?: number | undefined;
|
|
901
1509
|
renderTokenBudget?: number | undefined;
|
|
@@ -911,23 +1519,58 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
911
1519
|
}>, z.ZodObject<{
|
|
912
1520
|
enabled: z.ZodLiteral<true>;
|
|
913
1521
|
credential: z.ZodString;
|
|
1522
|
+
extractorModel: z.ZodOptional<z.ZodObject<{
|
|
1523
|
+
model: z.ZodString;
|
|
1524
|
+
credential: z.ZodString;
|
|
1525
|
+
}, "strip", z.ZodTypeAny, {
|
|
1526
|
+
model: string;
|
|
1527
|
+
credential: string;
|
|
1528
|
+
}, {
|
|
1529
|
+
model: string;
|
|
1530
|
+
credential: string;
|
|
1531
|
+
}>>;
|
|
1532
|
+
reflectorModel: z.ZodOptional<z.ZodObject<{
|
|
1533
|
+
model: z.ZodString;
|
|
1534
|
+
credential: z.ZodString;
|
|
1535
|
+
}, "strip", z.ZodTypeAny, {
|
|
1536
|
+
model: string;
|
|
1537
|
+
credential: string;
|
|
1538
|
+
}, {
|
|
1539
|
+
model: string;
|
|
1540
|
+
credential: string;
|
|
1541
|
+
}>>;
|
|
914
1542
|
topK: z.ZodOptional<z.ZodNumber>;
|
|
915
1543
|
maxEntriesPerRun: z.ZodOptional<z.ZodNumber>;
|
|
916
1544
|
}, "strip", z.ZodTypeAny, {
|
|
917
|
-
enabled: true;
|
|
918
1545
|
credential: string;
|
|
1546
|
+
enabled: true;
|
|
919
1547
|
topK?: number | undefined;
|
|
1548
|
+
reflectorModel?: {
|
|
1549
|
+
model: string;
|
|
1550
|
+
credential: string;
|
|
1551
|
+
} | undefined;
|
|
1552
|
+
extractorModel?: {
|
|
1553
|
+
model: string;
|
|
1554
|
+
credential: string;
|
|
1555
|
+
} | undefined;
|
|
920
1556
|
maxEntriesPerRun?: number | undefined;
|
|
921
1557
|
}, {
|
|
922
|
-
enabled: true;
|
|
923
1558
|
credential: string;
|
|
1559
|
+
enabled: true;
|
|
924
1560
|
topK?: number | undefined;
|
|
1561
|
+
reflectorModel?: {
|
|
1562
|
+
model: string;
|
|
1563
|
+
credential: string;
|
|
1564
|
+
} | undefined;
|
|
1565
|
+
extractorModel?: {
|
|
1566
|
+
model: string;
|
|
1567
|
+
credential: string;
|
|
1568
|
+
} | undefined;
|
|
925
1569
|
maxEntriesPerRun?: number | undefined;
|
|
926
1570
|
}>]>>;
|
|
927
1571
|
}, "strip", z.ZodTypeAny, {
|
|
928
1572
|
enabled: boolean;
|
|
929
1573
|
storage: "n8n";
|
|
930
|
-
lastMessages?: number | undefined;
|
|
931
1574
|
semanticRecall?: {
|
|
932
1575
|
topK: number;
|
|
933
1576
|
scope?: "thread" | "resource" | undefined;
|
|
@@ -939,6 +1582,14 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
939
1582
|
} | undefined;
|
|
940
1583
|
observationalMemory?: {
|
|
941
1584
|
enabled?: boolean | undefined;
|
|
1585
|
+
observerModel?: {
|
|
1586
|
+
model: string;
|
|
1587
|
+
credential: string;
|
|
1588
|
+
} | undefined;
|
|
1589
|
+
reflectorModel?: {
|
|
1590
|
+
model: string;
|
|
1591
|
+
credential: string;
|
|
1592
|
+
} | undefined;
|
|
942
1593
|
observerThresholdTokens?: number | undefined;
|
|
943
1594
|
reflectorThresholdTokens?: number | undefined;
|
|
944
1595
|
renderTokenBudget?: number | undefined;
|
|
@@ -948,15 +1599,22 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
948
1599
|
episodicMemory?: {
|
|
949
1600
|
enabled: false;
|
|
950
1601
|
} | {
|
|
951
|
-
enabled: true;
|
|
952
1602
|
credential: string;
|
|
1603
|
+
enabled: true;
|
|
953
1604
|
topK?: number | undefined;
|
|
1605
|
+
reflectorModel?: {
|
|
1606
|
+
model: string;
|
|
1607
|
+
credential: string;
|
|
1608
|
+
} | undefined;
|
|
1609
|
+
extractorModel?: {
|
|
1610
|
+
model: string;
|
|
1611
|
+
credential: string;
|
|
1612
|
+
} | undefined;
|
|
954
1613
|
maxEntriesPerRun?: number | undefined;
|
|
955
1614
|
} | undefined;
|
|
956
1615
|
}, {
|
|
957
1616
|
enabled: boolean;
|
|
958
1617
|
storage: "n8n";
|
|
959
|
-
lastMessages?: number | undefined;
|
|
960
1618
|
semanticRecall?: {
|
|
961
1619
|
topK: number;
|
|
962
1620
|
scope?: "thread" | "resource" | undefined;
|
|
@@ -968,6 +1626,14 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
968
1626
|
} | undefined;
|
|
969
1627
|
observationalMemory?: {
|
|
970
1628
|
enabled?: boolean | undefined;
|
|
1629
|
+
observerModel?: {
|
|
1630
|
+
model: string;
|
|
1631
|
+
credential: string;
|
|
1632
|
+
} | undefined;
|
|
1633
|
+
reflectorModel?: {
|
|
1634
|
+
model: string;
|
|
1635
|
+
credential: string;
|
|
1636
|
+
} | undefined;
|
|
971
1637
|
observerThresholdTokens?: number | undefined;
|
|
972
1638
|
reflectorThresholdTokens?: number | undefined;
|
|
973
1639
|
renderTokenBudget?: number | undefined;
|
|
@@ -977,9 +1643,17 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
977
1643
|
episodicMemory?: {
|
|
978
1644
|
enabled: false;
|
|
979
1645
|
} | {
|
|
980
|
-
enabled: true;
|
|
981
1646
|
credential: string;
|
|
1647
|
+
enabled: true;
|
|
982
1648
|
topK?: number | undefined;
|
|
1649
|
+
reflectorModel?: {
|
|
1650
|
+
model: string;
|
|
1651
|
+
credential: string;
|
|
1652
|
+
} | undefined;
|
|
1653
|
+
extractorModel?: {
|
|
1654
|
+
model: string;
|
|
1655
|
+
credential: string;
|
|
1656
|
+
} | undefined;
|
|
983
1657
|
maxEntriesPerRun?: number | undefined;
|
|
984
1658
|
} | undefined;
|
|
985
1659
|
}>>;
|
|
@@ -1091,8 +1765,21 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
1091
1765
|
type: "skill";
|
|
1092
1766
|
id: string;
|
|
1093
1767
|
}>, "many">>;
|
|
1768
|
+
tasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1769
|
+
type: z.ZodLiteral<"task">;
|
|
1770
|
+
id: z.ZodString;
|
|
1771
|
+
enabled: z.ZodBoolean;
|
|
1772
|
+
}, "strip", z.ZodTypeAny, {
|
|
1773
|
+
type: "task";
|
|
1774
|
+
enabled: boolean;
|
|
1775
|
+
id: string;
|
|
1776
|
+
}, {
|
|
1777
|
+
type: "task";
|
|
1778
|
+
enabled: boolean;
|
|
1779
|
+
id: string;
|
|
1780
|
+
}>, "many">>;
|
|
1094
1781
|
providerTools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1095
|
-
integrations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1782
|
+
integrations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", readonly [z.ZodObject<{
|
|
1096
1783
|
type: z.ZodLiteral<"telegram">;
|
|
1097
1784
|
credentialId: z.ZodString;
|
|
1098
1785
|
} & {
|
|
@@ -1144,22 +1831,154 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
1144
1831
|
}, {
|
|
1145
1832
|
type: "linear";
|
|
1146
1833
|
credentialId: string;
|
|
1147
|
-
}>,
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1834
|
+
}>]>, "many">>;
|
|
1835
|
+
mcpServers: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
1836
|
+
name: z.ZodString;
|
|
1837
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1838
|
+
url: z.ZodString;
|
|
1839
|
+
transport: z.ZodDefault<z.ZodEnum<["sse", "streamableHttp"]>>;
|
|
1840
|
+
authentication: z.ZodDefault<z.ZodUnion<[z.ZodEnum<["none", "bearerAuth", "headerAuth", "multipleHeadersAuth", "mcpOAuth2Api"]>, z.ZodString]>>;
|
|
1841
|
+
credential: z.ZodOptional<z.ZodString>;
|
|
1842
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
1843
|
+
nodeTypeName: z.ZodOptional<z.ZodString>;
|
|
1844
|
+
}, "strip", z.ZodTypeAny, {
|
|
1845
|
+
nodeTypeName?: string | undefined;
|
|
1846
|
+
}, {
|
|
1847
|
+
nodeTypeName?: string | undefined;
|
|
1848
|
+
}>>;
|
|
1849
|
+
toolFilter: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
|
|
1850
|
+
mode: z.ZodLiteral<"allow">;
|
|
1851
|
+
tools: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1852
|
+
}, "strict", z.ZodTypeAny, {
|
|
1853
|
+
mode: "allow";
|
|
1854
|
+
tools: string[];
|
|
1855
|
+
}, {
|
|
1856
|
+
mode: "allow";
|
|
1857
|
+
tools?: string[] | undefined;
|
|
1858
|
+
}>, z.ZodObject<{
|
|
1859
|
+
mode: z.ZodLiteral<"exclude">;
|
|
1860
|
+
tools: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1861
|
+
}, "strict", z.ZodTypeAny, {
|
|
1862
|
+
mode: "exclude";
|
|
1863
|
+
tools: string[];
|
|
1864
|
+
}, {
|
|
1865
|
+
mode: "exclude";
|
|
1866
|
+
tools?: string[] | undefined;
|
|
1867
|
+
}>]>>;
|
|
1868
|
+
approval: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
|
|
1869
|
+
mode: z.ZodLiteral<"global">;
|
|
1870
|
+
}, "strict", z.ZodTypeAny, {
|
|
1871
|
+
mode: "global";
|
|
1872
|
+
}, {
|
|
1873
|
+
mode: "global";
|
|
1874
|
+
}>, z.ZodObject<{
|
|
1875
|
+
mode: z.ZodLiteral<"selected">;
|
|
1876
|
+
tools: z.ZodArray<z.ZodString, "many">;
|
|
1877
|
+
}, "strict", z.ZodTypeAny, {
|
|
1878
|
+
mode: "selected";
|
|
1879
|
+
tools: string[];
|
|
1880
|
+
}, {
|
|
1881
|
+
mode: "selected";
|
|
1882
|
+
tools: string[];
|
|
1883
|
+
}>]>>;
|
|
1884
|
+
connectionTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1152
1885
|
}, "strict", z.ZodTypeAny, {
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1886
|
+
name: string;
|
|
1887
|
+
url: string;
|
|
1888
|
+
transport: "sse" | "streamableHttp";
|
|
1889
|
+
authentication: string;
|
|
1890
|
+
description?: string | undefined;
|
|
1891
|
+
credential?: string | undefined;
|
|
1892
|
+
metadata?: {
|
|
1893
|
+
nodeTypeName?: string | undefined;
|
|
1894
|
+
} | undefined;
|
|
1895
|
+
toolFilter?: {
|
|
1896
|
+
mode: "allow";
|
|
1897
|
+
tools: string[];
|
|
1898
|
+
} | {
|
|
1899
|
+
mode: "exclude";
|
|
1900
|
+
tools: string[];
|
|
1901
|
+
} | undefined;
|
|
1902
|
+
approval?: {
|
|
1903
|
+
mode: "global";
|
|
1904
|
+
} | {
|
|
1905
|
+
mode: "selected";
|
|
1906
|
+
tools: string[];
|
|
1907
|
+
} | undefined;
|
|
1908
|
+
connectionTimeoutMs?: number | undefined;
|
|
1157
1909
|
}, {
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1910
|
+
name: string;
|
|
1911
|
+
url: string;
|
|
1912
|
+
description?: string | undefined;
|
|
1913
|
+
credential?: string | undefined;
|
|
1914
|
+
transport?: "sse" | "streamableHttp" | undefined;
|
|
1915
|
+
authentication?: string | undefined;
|
|
1916
|
+
metadata?: {
|
|
1917
|
+
nodeTypeName?: string | undefined;
|
|
1918
|
+
} | undefined;
|
|
1919
|
+
toolFilter?: {
|
|
1920
|
+
mode: "allow";
|
|
1921
|
+
tools?: string[] | undefined;
|
|
1922
|
+
} | {
|
|
1923
|
+
mode: "exclude";
|
|
1924
|
+
tools?: string[] | undefined;
|
|
1925
|
+
} | undefined;
|
|
1926
|
+
approval?: {
|
|
1927
|
+
mode: "global";
|
|
1928
|
+
} | {
|
|
1929
|
+
mode: "selected";
|
|
1930
|
+
tools: string[];
|
|
1931
|
+
} | undefined;
|
|
1932
|
+
connectionTimeoutMs?: number | undefined;
|
|
1933
|
+
}>, "many">, {
|
|
1934
|
+
name: string;
|
|
1935
|
+
url: string;
|
|
1936
|
+
transport: "sse" | "streamableHttp";
|
|
1937
|
+
authentication: string;
|
|
1938
|
+
description?: string | undefined;
|
|
1939
|
+
credential?: string | undefined;
|
|
1940
|
+
metadata?: {
|
|
1941
|
+
nodeTypeName?: string | undefined;
|
|
1942
|
+
} | undefined;
|
|
1943
|
+
toolFilter?: {
|
|
1944
|
+
mode: "allow";
|
|
1945
|
+
tools: string[];
|
|
1946
|
+
} | {
|
|
1947
|
+
mode: "exclude";
|
|
1948
|
+
tools: string[];
|
|
1949
|
+
} | undefined;
|
|
1950
|
+
approval?: {
|
|
1951
|
+
mode: "global";
|
|
1952
|
+
} | {
|
|
1953
|
+
mode: "selected";
|
|
1954
|
+
tools: string[];
|
|
1955
|
+
} | undefined;
|
|
1956
|
+
connectionTimeoutMs?: number | undefined;
|
|
1957
|
+
}[], {
|
|
1958
|
+
name: string;
|
|
1959
|
+
url: string;
|
|
1960
|
+
description?: string | undefined;
|
|
1961
|
+
credential?: string | undefined;
|
|
1962
|
+
transport?: "sse" | "streamableHttp" | undefined;
|
|
1963
|
+
authentication?: string | undefined;
|
|
1964
|
+
metadata?: {
|
|
1965
|
+
nodeTypeName?: string | undefined;
|
|
1966
|
+
} | undefined;
|
|
1967
|
+
toolFilter?: {
|
|
1968
|
+
mode: "allow";
|
|
1969
|
+
tools?: string[] | undefined;
|
|
1970
|
+
} | {
|
|
1971
|
+
mode: "exclude";
|
|
1972
|
+
tools?: string[] | undefined;
|
|
1973
|
+
} | undefined;
|
|
1974
|
+
approval?: {
|
|
1975
|
+
mode: "global";
|
|
1976
|
+
} | {
|
|
1977
|
+
mode: "selected";
|
|
1978
|
+
tools: string[];
|
|
1979
|
+
} | undefined;
|
|
1980
|
+
connectionTimeoutMs?: number | undefined;
|
|
1981
|
+
}[]>>;
|
|
1163
1982
|
config: z.ZodOptional<z.ZodObject<{
|
|
1164
1983
|
thinking: z.ZodOptional<z.ZodObject<{
|
|
1165
1984
|
provider: z.ZodEnum<["anthropic", "openai"]>;
|
|
@@ -1174,6 +1993,19 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
1174
1993
|
budgetTokens?: number | undefined;
|
|
1175
1994
|
reasoningEffort?: string | undefined;
|
|
1176
1995
|
}>>;
|
|
1996
|
+
webSearch: z.ZodOptional<z.ZodObject<{
|
|
1997
|
+
enabled: z.ZodBoolean;
|
|
1998
|
+
provider: z.ZodOptional<z.ZodEnum<["auto", "native", "brave", "searxng"]>>;
|
|
1999
|
+
credential: z.ZodOptional<z.ZodString>;
|
|
2000
|
+
}, "strip", z.ZodTypeAny, {
|
|
2001
|
+
enabled: boolean;
|
|
2002
|
+
provider?: "auto" | "native" | "brave" | "searxng" | undefined;
|
|
2003
|
+
credential?: string | undefined;
|
|
2004
|
+
}, {
|
|
2005
|
+
enabled: boolean;
|
|
2006
|
+
provider?: "auto" | "native" | "brave" | "searxng" | undefined;
|
|
2007
|
+
credential?: string | undefined;
|
|
2008
|
+
}>>;
|
|
1177
2009
|
toolCallConcurrency: z.ZodOptional<z.ZodNumber>;
|
|
1178
2010
|
maxIterations: z.ZodOptional<z.ZodNumber>;
|
|
1179
2011
|
nodeTools: z.ZodOptional<z.ZodObject<{
|
|
@@ -1189,6 +2021,11 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
1189
2021
|
budgetTokens?: number | undefined;
|
|
1190
2022
|
reasoningEffort?: string | undefined;
|
|
1191
2023
|
} | undefined;
|
|
2024
|
+
webSearch?: {
|
|
2025
|
+
enabled: boolean;
|
|
2026
|
+
provider?: "auto" | "native" | "brave" | "searxng" | undefined;
|
|
2027
|
+
credential?: string | undefined;
|
|
2028
|
+
} | undefined;
|
|
1192
2029
|
toolCallConcurrency?: number | undefined;
|
|
1193
2030
|
maxIterations?: number | undefined;
|
|
1194
2031
|
nodeTools?: {
|
|
@@ -1200,6 +2037,11 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
1200
2037
|
budgetTokens?: number | undefined;
|
|
1201
2038
|
reasoningEffort?: string | undefined;
|
|
1202
2039
|
} | undefined;
|
|
2040
|
+
webSearch?: {
|
|
2041
|
+
enabled: boolean;
|
|
2042
|
+
provider?: "auto" | "native" | "brave" | "searxng" | undefined;
|
|
2043
|
+
credential?: string | undefined;
|
|
2044
|
+
} | undefined;
|
|
1203
2045
|
toolCallConcurrency?: number | undefined;
|
|
1204
2046
|
maxIterations?: number | undefined;
|
|
1205
2047
|
nodeTools?: {
|
|
@@ -1215,10 +2057,35 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
1215
2057
|
name: string;
|
|
1216
2058
|
instructions: string;
|
|
1217
2059
|
description?: string | undefined;
|
|
2060
|
+
tools?: ({
|
|
2061
|
+
type: "custom";
|
|
2062
|
+
id: string;
|
|
2063
|
+
requireApproval?: boolean | undefined;
|
|
2064
|
+
} | {
|
|
2065
|
+
type: "workflow";
|
|
2066
|
+
workflow: string;
|
|
2067
|
+
description?: string | undefined;
|
|
2068
|
+
name?: string | undefined;
|
|
2069
|
+
requireApproval?: boolean | undefined;
|
|
2070
|
+
allOutputs?: boolean | undefined;
|
|
2071
|
+
} | {
|
|
2072
|
+
type: "node";
|
|
2073
|
+
name: string;
|
|
2074
|
+
node: {
|
|
2075
|
+
nodeType: string;
|
|
2076
|
+
nodeTypeVersion: number;
|
|
2077
|
+
nodeParameters: Record<string, unknown>;
|
|
2078
|
+
credentials?: Record<string, {
|
|
2079
|
+
id: string;
|
|
2080
|
+
name: string;
|
|
2081
|
+
}> | undefined;
|
|
2082
|
+
};
|
|
2083
|
+
description?: string | undefined;
|
|
2084
|
+
requireApproval?: boolean | undefined;
|
|
2085
|
+
})[] | undefined;
|
|
1218
2086
|
memory?: {
|
|
1219
2087
|
enabled: boolean;
|
|
1220
2088
|
storage: "n8n";
|
|
1221
|
-
lastMessages?: number | undefined;
|
|
1222
2089
|
semanticRecall?: {
|
|
1223
2090
|
topK: number;
|
|
1224
2091
|
scope?: "thread" | "resource" | undefined;
|
|
@@ -1230,6 +2097,14 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
1230
2097
|
} | undefined;
|
|
1231
2098
|
observationalMemory?: {
|
|
1232
2099
|
enabled?: boolean | undefined;
|
|
2100
|
+
observerModel?: {
|
|
2101
|
+
model: string;
|
|
2102
|
+
credential: string;
|
|
2103
|
+
} | undefined;
|
|
2104
|
+
reflectorModel?: {
|
|
2105
|
+
model: string;
|
|
2106
|
+
credential: string;
|
|
2107
|
+
} | undefined;
|
|
1233
2108
|
observerThresholdTokens?: number | undefined;
|
|
1234
2109
|
reflectorThresholdTokens?: number | undefined;
|
|
1235
2110
|
renderTokenBudget?: number | undefined;
|
|
@@ -1239,49 +2114,31 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
1239
2114
|
episodicMemory?: {
|
|
1240
2115
|
enabled: false;
|
|
1241
2116
|
} | {
|
|
1242
|
-
enabled: true;
|
|
1243
2117
|
credential: string;
|
|
2118
|
+
enabled: true;
|
|
1244
2119
|
topK?: number | undefined;
|
|
2120
|
+
reflectorModel?: {
|
|
2121
|
+
model: string;
|
|
2122
|
+
credential: string;
|
|
2123
|
+
} | undefined;
|
|
2124
|
+
extractorModel?: {
|
|
2125
|
+
model: string;
|
|
2126
|
+
credential: string;
|
|
2127
|
+
} | undefined;
|
|
1245
2128
|
maxEntriesPerRun?: number | undefined;
|
|
1246
2129
|
} | undefined;
|
|
1247
2130
|
} | undefined;
|
|
1248
|
-
tools?: ({
|
|
1249
|
-
type: "custom";
|
|
1250
|
-
id: string;
|
|
1251
|
-
requireApproval?: boolean | undefined;
|
|
1252
|
-
} | {
|
|
1253
|
-
type: "workflow";
|
|
1254
|
-
workflow: string;
|
|
1255
|
-
description?: string | undefined;
|
|
1256
|
-
name?: string | undefined;
|
|
1257
|
-
requireApproval?: boolean | undefined;
|
|
1258
|
-
allOutputs?: boolean | undefined;
|
|
1259
|
-
} | {
|
|
1260
|
-
type: "node";
|
|
1261
|
-
name: string;
|
|
1262
|
-
node: {
|
|
1263
|
-
nodeType: string;
|
|
1264
|
-
nodeTypeVersion: number;
|
|
1265
|
-
nodeParameters: Record<string, unknown>;
|
|
1266
|
-
credentials?: Record<string, {
|
|
1267
|
-
id: string;
|
|
1268
|
-
name: string;
|
|
1269
|
-
}> | undefined;
|
|
1270
|
-
};
|
|
1271
|
-
description?: string | undefined;
|
|
1272
|
-
requireApproval?: boolean | undefined;
|
|
1273
|
-
})[] | undefined;
|
|
1274
2131
|
skills?: {
|
|
1275
2132
|
type: "skill";
|
|
1276
2133
|
id: string;
|
|
1277
2134
|
}[] | undefined;
|
|
2135
|
+
tasks?: {
|
|
2136
|
+
type: "task";
|
|
2137
|
+
enabled: boolean;
|
|
2138
|
+
id: string;
|
|
2139
|
+
}[] | undefined;
|
|
1278
2140
|
providerTools?: Record<string, Record<string, unknown>> | undefined;
|
|
1279
2141
|
integrations?: ({
|
|
1280
|
-
type: "schedule";
|
|
1281
|
-
active: boolean;
|
|
1282
|
-
cronExpression: string;
|
|
1283
|
-
wakeUpPrompt: string;
|
|
1284
|
-
} | {
|
|
1285
2142
|
type: "telegram";
|
|
1286
2143
|
credentialId: string;
|
|
1287
2144
|
settings?: {
|
|
@@ -1295,12 +2152,42 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
1295
2152
|
type: "linear";
|
|
1296
2153
|
credentialId: string;
|
|
1297
2154
|
})[] | undefined;
|
|
2155
|
+
mcpServers?: {
|
|
2156
|
+
name: string;
|
|
2157
|
+
url: string;
|
|
2158
|
+
transport: "sse" | "streamableHttp";
|
|
2159
|
+
authentication: string;
|
|
2160
|
+
description?: string | undefined;
|
|
2161
|
+
credential?: string | undefined;
|
|
2162
|
+
metadata?: {
|
|
2163
|
+
nodeTypeName?: string | undefined;
|
|
2164
|
+
} | undefined;
|
|
2165
|
+
toolFilter?: {
|
|
2166
|
+
mode: "allow";
|
|
2167
|
+
tools: string[];
|
|
2168
|
+
} | {
|
|
2169
|
+
mode: "exclude";
|
|
2170
|
+
tools: string[];
|
|
2171
|
+
} | undefined;
|
|
2172
|
+
approval?: {
|
|
2173
|
+
mode: "global";
|
|
2174
|
+
} | {
|
|
2175
|
+
mode: "selected";
|
|
2176
|
+
tools: string[];
|
|
2177
|
+
} | undefined;
|
|
2178
|
+
connectionTimeoutMs?: number | undefined;
|
|
2179
|
+
}[] | undefined;
|
|
1298
2180
|
config?: {
|
|
1299
2181
|
thinking?: {
|
|
1300
2182
|
provider: "anthropic" | "openai";
|
|
1301
2183
|
budgetTokens?: number | undefined;
|
|
1302
2184
|
reasoningEffort?: string | undefined;
|
|
1303
2185
|
} | undefined;
|
|
2186
|
+
webSearch?: {
|
|
2187
|
+
enabled: boolean;
|
|
2188
|
+
provider?: "auto" | "native" | "brave" | "searxng" | undefined;
|
|
2189
|
+
credential?: string | undefined;
|
|
2190
|
+
} | undefined;
|
|
1304
2191
|
toolCallConcurrency?: number | undefined;
|
|
1305
2192
|
maxIterations?: number | undefined;
|
|
1306
2193
|
nodeTools?: {
|
|
@@ -1313,10 +2200,35 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
1313
2200
|
name: string;
|
|
1314
2201
|
instructions: string;
|
|
1315
2202
|
description?: string | undefined;
|
|
2203
|
+
tools?: ({
|
|
2204
|
+
type: "custom";
|
|
2205
|
+
id: string;
|
|
2206
|
+
requireApproval?: boolean | undefined;
|
|
2207
|
+
} | {
|
|
2208
|
+
type: "workflow";
|
|
2209
|
+
workflow: string;
|
|
2210
|
+
description?: string | undefined;
|
|
2211
|
+
name?: string | undefined;
|
|
2212
|
+
requireApproval?: boolean | undefined;
|
|
2213
|
+
allOutputs?: boolean | undefined;
|
|
2214
|
+
} | {
|
|
2215
|
+
type: "node";
|
|
2216
|
+
name: string;
|
|
2217
|
+
node: {
|
|
2218
|
+
nodeType: string;
|
|
2219
|
+
nodeTypeVersion: number;
|
|
2220
|
+
nodeParameters?: Record<string, unknown> | undefined;
|
|
2221
|
+
credentials?: Record<string, {
|
|
2222
|
+
id: string;
|
|
2223
|
+
name: string;
|
|
2224
|
+
}> | undefined;
|
|
2225
|
+
};
|
|
2226
|
+
description?: string | undefined;
|
|
2227
|
+
requireApproval?: boolean | undefined;
|
|
2228
|
+
})[] | undefined;
|
|
1316
2229
|
memory?: {
|
|
1317
2230
|
enabled: boolean;
|
|
1318
2231
|
storage: "n8n";
|
|
1319
|
-
lastMessages?: number | undefined;
|
|
1320
2232
|
semanticRecall?: {
|
|
1321
2233
|
topK: number;
|
|
1322
2234
|
scope?: "thread" | "resource" | undefined;
|
|
@@ -1328,6 +2240,14 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
1328
2240
|
} | undefined;
|
|
1329
2241
|
observationalMemory?: {
|
|
1330
2242
|
enabled?: boolean | undefined;
|
|
2243
|
+
observerModel?: {
|
|
2244
|
+
model: string;
|
|
2245
|
+
credential: string;
|
|
2246
|
+
} | undefined;
|
|
2247
|
+
reflectorModel?: {
|
|
2248
|
+
model: string;
|
|
2249
|
+
credential: string;
|
|
2250
|
+
} | undefined;
|
|
1331
2251
|
observerThresholdTokens?: number | undefined;
|
|
1332
2252
|
reflectorThresholdTokens?: number | undefined;
|
|
1333
2253
|
renderTokenBudget?: number | undefined;
|
|
@@ -1337,49 +2257,31 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
1337
2257
|
episodicMemory?: {
|
|
1338
2258
|
enabled: false;
|
|
1339
2259
|
} | {
|
|
1340
|
-
enabled: true;
|
|
1341
2260
|
credential: string;
|
|
2261
|
+
enabled: true;
|
|
1342
2262
|
topK?: number | undefined;
|
|
2263
|
+
reflectorModel?: {
|
|
2264
|
+
model: string;
|
|
2265
|
+
credential: string;
|
|
2266
|
+
} | undefined;
|
|
2267
|
+
extractorModel?: {
|
|
2268
|
+
model: string;
|
|
2269
|
+
credential: string;
|
|
2270
|
+
} | undefined;
|
|
1343
2271
|
maxEntriesPerRun?: number | undefined;
|
|
1344
2272
|
} | undefined;
|
|
1345
2273
|
} | undefined;
|
|
1346
|
-
tools?: ({
|
|
1347
|
-
type: "custom";
|
|
1348
|
-
id: string;
|
|
1349
|
-
requireApproval?: boolean | undefined;
|
|
1350
|
-
} | {
|
|
1351
|
-
type: "workflow";
|
|
1352
|
-
workflow: string;
|
|
1353
|
-
description?: string | undefined;
|
|
1354
|
-
name?: string | undefined;
|
|
1355
|
-
requireApproval?: boolean | undefined;
|
|
1356
|
-
allOutputs?: boolean | undefined;
|
|
1357
|
-
} | {
|
|
1358
|
-
type: "node";
|
|
1359
|
-
name: string;
|
|
1360
|
-
node: {
|
|
1361
|
-
nodeType: string;
|
|
1362
|
-
nodeTypeVersion: number;
|
|
1363
|
-
nodeParameters?: Record<string, unknown> | undefined;
|
|
1364
|
-
credentials?: Record<string, {
|
|
1365
|
-
id: string;
|
|
1366
|
-
name: string;
|
|
1367
|
-
}> | undefined;
|
|
1368
|
-
};
|
|
1369
|
-
description?: string | undefined;
|
|
1370
|
-
requireApproval?: boolean | undefined;
|
|
1371
|
-
})[] | undefined;
|
|
1372
2274
|
skills?: {
|
|
1373
2275
|
type: "skill";
|
|
1374
2276
|
id: string;
|
|
1375
2277
|
}[] | undefined;
|
|
2278
|
+
tasks?: {
|
|
2279
|
+
type: "task";
|
|
2280
|
+
enabled: boolean;
|
|
2281
|
+
id: string;
|
|
2282
|
+
}[] | undefined;
|
|
1376
2283
|
providerTools?: Record<string, Record<string, unknown>> | undefined;
|
|
1377
2284
|
integrations?: ({
|
|
1378
|
-
type: "schedule";
|
|
1379
|
-
active: boolean;
|
|
1380
|
-
cronExpression: string;
|
|
1381
|
-
wakeUpPrompt: string;
|
|
1382
|
-
} | {
|
|
1383
2285
|
type: "telegram";
|
|
1384
2286
|
credentialId: string;
|
|
1385
2287
|
settings?: {
|
|
@@ -1393,12 +2295,42 @@ export declare const RunnableAgentJsonConfigSchema: z.ZodObject<{
|
|
|
1393
2295
|
type: "linear";
|
|
1394
2296
|
credentialId: string;
|
|
1395
2297
|
})[] | undefined;
|
|
2298
|
+
mcpServers?: {
|
|
2299
|
+
name: string;
|
|
2300
|
+
url: string;
|
|
2301
|
+
description?: string | undefined;
|
|
2302
|
+
credential?: string | undefined;
|
|
2303
|
+
transport?: "sse" | "streamableHttp" | undefined;
|
|
2304
|
+
authentication?: string | undefined;
|
|
2305
|
+
metadata?: {
|
|
2306
|
+
nodeTypeName?: string | undefined;
|
|
2307
|
+
} | undefined;
|
|
2308
|
+
toolFilter?: {
|
|
2309
|
+
mode: "allow";
|
|
2310
|
+
tools?: string[] | undefined;
|
|
2311
|
+
} | {
|
|
2312
|
+
mode: "exclude";
|
|
2313
|
+
tools?: string[] | undefined;
|
|
2314
|
+
} | undefined;
|
|
2315
|
+
approval?: {
|
|
2316
|
+
mode: "global";
|
|
2317
|
+
} | {
|
|
2318
|
+
mode: "selected";
|
|
2319
|
+
tools: string[];
|
|
2320
|
+
} | undefined;
|
|
2321
|
+
connectionTimeoutMs?: number | undefined;
|
|
2322
|
+
}[] | undefined;
|
|
1396
2323
|
config?: {
|
|
1397
2324
|
thinking?: {
|
|
1398
2325
|
provider: "anthropic" | "openai";
|
|
1399
2326
|
budgetTokens?: number | undefined;
|
|
1400
2327
|
reasoningEffort?: string | undefined;
|
|
1401
2328
|
} | undefined;
|
|
2329
|
+
webSearch?: {
|
|
2330
|
+
enabled: boolean;
|
|
2331
|
+
provider?: "auto" | "native" | "brave" | "searxng" | undefined;
|
|
2332
|
+
credential?: string | undefined;
|
|
2333
|
+
} | undefined;
|
|
1402
2334
|
toolCallConcurrency?: number | undefined;
|
|
1403
2335
|
maxIterations?: number | undefined;
|
|
1404
2336
|
nodeTools?: {
|
|
@@ -1415,7 +2347,6 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
1415
2347
|
memory: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1416
2348
|
enabled: z.ZodBoolean;
|
|
1417
2349
|
storage: z.ZodEnum<["n8n"]>;
|
|
1418
|
-
lastMessages: z.ZodOptional<z.ZodNumber>;
|
|
1419
2350
|
semanticRecall: z.ZodOptional<z.ZodObject<{
|
|
1420
2351
|
topK: z.ZodNumber;
|
|
1421
2352
|
scope: z.ZodOptional<z.ZodEnum<["thread", "resource"]>>;
|
|
@@ -1449,6 +2380,26 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
1449
2380
|
}>>;
|
|
1450
2381
|
observationalMemory: z.ZodOptional<z.ZodObject<{
|
|
1451
2382
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
2383
|
+
observerModel: z.ZodOptional<z.ZodObject<{
|
|
2384
|
+
model: z.ZodString;
|
|
2385
|
+
credential: z.ZodString;
|
|
2386
|
+
}, "strip", z.ZodTypeAny, {
|
|
2387
|
+
model: string;
|
|
2388
|
+
credential: string;
|
|
2389
|
+
}, {
|
|
2390
|
+
model: string;
|
|
2391
|
+
credential: string;
|
|
2392
|
+
}>>;
|
|
2393
|
+
reflectorModel: z.ZodOptional<z.ZodObject<{
|
|
2394
|
+
model: z.ZodString;
|
|
2395
|
+
credential: z.ZodString;
|
|
2396
|
+
}, "strip", z.ZodTypeAny, {
|
|
2397
|
+
model: string;
|
|
2398
|
+
credential: string;
|
|
2399
|
+
}, {
|
|
2400
|
+
model: string;
|
|
2401
|
+
credential: string;
|
|
2402
|
+
}>>;
|
|
1452
2403
|
observerThresholdTokens: z.ZodOptional<z.ZodNumber>;
|
|
1453
2404
|
reflectorThresholdTokens: z.ZodOptional<z.ZodNumber>;
|
|
1454
2405
|
renderTokenBudget: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1456,6 +2407,14 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
1456
2407
|
lockTtlMs: z.ZodOptional<z.ZodNumber>;
|
|
1457
2408
|
}, "strip", z.ZodTypeAny, {
|
|
1458
2409
|
enabled?: boolean | undefined;
|
|
2410
|
+
observerModel?: {
|
|
2411
|
+
model: string;
|
|
2412
|
+
credential: string;
|
|
2413
|
+
} | undefined;
|
|
2414
|
+
reflectorModel?: {
|
|
2415
|
+
model: string;
|
|
2416
|
+
credential: string;
|
|
2417
|
+
} | undefined;
|
|
1459
2418
|
observerThresholdTokens?: number | undefined;
|
|
1460
2419
|
reflectorThresholdTokens?: number | undefined;
|
|
1461
2420
|
renderTokenBudget?: number | undefined;
|
|
@@ -1463,6 +2422,14 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
1463
2422
|
lockTtlMs?: number | undefined;
|
|
1464
2423
|
}, {
|
|
1465
2424
|
enabled?: boolean | undefined;
|
|
2425
|
+
observerModel?: {
|
|
2426
|
+
model: string;
|
|
2427
|
+
credential: string;
|
|
2428
|
+
} | undefined;
|
|
2429
|
+
reflectorModel?: {
|
|
2430
|
+
model: string;
|
|
2431
|
+
credential: string;
|
|
2432
|
+
} | undefined;
|
|
1466
2433
|
observerThresholdTokens?: number | undefined;
|
|
1467
2434
|
reflectorThresholdTokens?: number | undefined;
|
|
1468
2435
|
renderTokenBudget?: number | undefined;
|
|
@@ -1478,23 +2445,58 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
1478
2445
|
}>, z.ZodObject<{
|
|
1479
2446
|
enabled: z.ZodLiteral<true>;
|
|
1480
2447
|
credential: z.ZodString;
|
|
2448
|
+
extractorModel: z.ZodOptional<z.ZodObject<{
|
|
2449
|
+
model: z.ZodString;
|
|
2450
|
+
credential: z.ZodString;
|
|
2451
|
+
}, "strip", z.ZodTypeAny, {
|
|
2452
|
+
model: string;
|
|
2453
|
+
credential: string;
|
|
2454
|
+
}, {
|
|
2455
|
+
model: string;
|
|
2456
|
+
credential: string;
|
|
2457
|
+
}>>;
|
|
2458
|
+
reflectorModel: z.ZodOptional<z.ZodObject<{
|
|
2459
|
+
model: z.ZodString;
|
|
2460
|
+
credential: z.ZodString;
|
|
2461
|
+
}, "strip", z.ZodTypeAny, {
|
|
2462
|
+
model: string;
|
|
2463
|
+
credential: string;
|
|
2464
|
+
}, {
|
|
2465
|
+
model: string;
|
|
2466
|
+
credential: string;
|
|
2467
|
+
}>>;
|
|
1481
2468
|
topK: z.ZodOptional<z.ZodNumber>;
|
|
1482
2469
|
maxEntriesPerRun: z.ZodOptional<z.ZodNumber>;
|
|
1483
2470
|
}, "strip", z.ZodTypeAny, {
|
|
1484
|
-
enabled: true;
|
|
1485
2471
|
credential: string;
|
|
2472
|
+
enabled: true;
|
|
1486
2473
|
topK?: number | undefined;
|
|
2474
|
+
reflectorModel?: {
|
|
2475
|
+
model: string;
|
|
2476
|
+
credential: string;
|
|
2477
|
+
} | undefined;
|
|
2478
|
+
extractorModel?: {
|
|
2479
|
+
model: string;
|
|
2480
|
+
credential: string;
|
|
2481
|
+
} | undefined;
|
|
1487
2482
|
maxEntriesPerRun?: number | undefined;
|
|
1488
2483
|
}, {
|
|
1489
|
-
enabled: true;
|
|
1490
2484
|
credential: string;
|
|
2485
|
+
enabled: true;
|
|
1491
2486
|
topK?: number | undefined;
|
|
2487
|
+
reflectorModel?: {
|
|
2488
|
+
model: string;
|
|
2489
|
+
credential: string;
|
|
2490
|
+
} | undefined;
|
|
2491
|
+
extractorModel?: {
|
|
2492
|
+
model: string;
|
|
2493
|
+
credential: string;
|
|
2494
|
+
} | undefined;
|
|
1492
2495
|
maxEntriesPerRun?: number | undefined;
|
|
1493
2496
|
}>]>>;
|
|
1494
2497
|
}, "strip", z.ZodTypeAny, {
|
|
1495
2498
|
enabled: boolean;
|
|
1496
2499
|
storage: "n8n";
|
|
1497
|
-
lastMessages?: number | undefined;
|
|
1498
2500
|
semanticRecall?: {
|
|
1499
2501
|
topK: number;
|
|
1500
2502
|
scope?: "thread" | "resource" | undefined;
|
|
@@ -1506,6 +2508,14 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
1506
2508
|
} | undefined;
|
|
1507
2509
|
observationalMemory?: {
|
|
1508
2510
|
enabled?: boolean | undefined;
|
|
2511
|
+
observerModel?: {
|
|
2512
|
+
model: string;
|
|
2513
|
+
credential: string;
|
|
2514
|
+
} | undefined;
|
|
2515
|
+
reflectorModel?: {
|
|
2516
|
+
model: string;
|
|
2517
|
+
credential: string;
|
|
2518
|
+
} | undefined;
|
|
1509
2519
|
observerThresholdTokens?: number | undefined;
|
|
1510
2520
|
reflectorThresholdTokens?: number | undefined;
|
|
1511
2521
|
renderTokenBudget?: number | undefined;
|
|
@@ -1515,15 +2525,22 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
1515
2525
|
episodicMemory?: {
|
|
1516
2526
|
enabled: false;
|
|
1517
2527
|
} | {
|
|
1518
|
-
enabled: true;
|
|
1519
2528
|
credential: string;
|
|
2529
|
+
enabled: true;
|
|
1520
2530
|
topK?: number | undefined;
|
|
2531
|
+
reflectorModel?: {
|
|
2532
|
+
model: string;
|
|
2533
|
+
credential: string;
|
|
2534
|
+
} | undefined;
|
|
2535
|
+
extractorModel?: {
|
|
2536
|
+
model: string;
|
|
2537
|
+
credential: string;
|
|
2538
|
+
} | undefined;
|
|
1521
2539
|
maxEntriesPerRun?: number | undefined;
|
|
1522
2540
|
} | undefined;
|
|
1523
2541
|
}, {
|
|
1524
2542
|
enabled: boolean;
|
|
1525
2543
|
storage: "n8n";
|
|
1526
|
-
lastMessages?: number | undefined;
|
|
1527
2544
|
semanticRecall?: {
|
|
1528
2545
|
topK: number;
|
|
1529
2546
|
scope?: "thread" | "resource" | undefined;
|
|
@@ -1535,6 +2552,14 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
1535
2552
|
} | undefined;
|
|
1536
2553
|
observationalMemory?: {
|
|
1537
2554
|
enabled?: boolean | undefined;
|
|
2555
|
+
observerModel?: {
|
|
2556
|
+
model: string;
|
|
2557
|
+
credential: string;
|
|
2558
|
+
} | undefined;
|
|
2559
|
+
reflectorModel?: {
|
|
2560
|
+
model: string;
|
|
2561
|
+
credential: string;
|
|
2562
|
+
} | undefined;
|
|
1538
2563
|
observerThresholdTokens?: number | undefined;
|
|
1539
2564
|
reflectorThresholdTokens?: number | undefined;
|
|
1540
2565
|
renderTokenBudget?: number | undefined;
|
|
@@ -1544,9 +2569,17 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
1544
2569
|
episodicMemory?: {
|
|
1545
2570
|
enabled: false;
|
|
1546
2571
|
} | {
|
|
1547
|
-
enabled: true;
|
|
1548
2572
|
credential: string;
|
|
2573
|
+
enabled: true;
|
|
1549
2574
|
topK?: number | undefined;
|
|
2575
|
+
reflectorModel?: {
|
|
2576
|
+
model: string;
|
|
2577
|
+
credential: string;
|
|
2578
|
+
} | undefined;
|
|
2579
|
+
extractorModel?: {
|
|
2580
|
+
model: string;
|
|
2581
|
+
credential: string;
|
|
2582
|
+
} | undefined;
|
|
1550
2583
|
maxEntriesPerRun?: number | undefined;
|
|
1551
2584
|
} | undefined;
|
|
1552
2585
|
}>>>;
|
|
@@ -1658,8 +2691,21 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
1658
2691
|
type: "skill";
|
|
1659
2692
|
id: string;
|
|
1660
2693
|
}>, "many">>>;
|
|
2694
|
+
tasks: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2695
|
+
type: z.ZodLiteral<"task">;
|
|
2696
|
+
id: z.ZodString;
|
|
2697
|
+
enabled: z.ZodBoolean;
|
|
2698
|
+
}, "strip", z.ZodTypeAny, {
|
|
2699
|
+
type: "task";
|
|
2700
|
+
enabled: boolean;
|
|
2701
|
+
id: string;
|
|
2702
|
+
}, {
|
|
2703
|
+
type: "task";
|
|
2704
|
+
enabled: boolean;
|
|
2705
|
+
id: string;
|
|
2706
|
+
}>, "many">>>;
|
|
1661
2707
|
providerTools: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
1662
|
-
integrations: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
2708
|
+
integrations: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", readonly [z.ZodObject<{
|
|
1663
2709
|
type: z.ZodLiteral<"telegram">;
|
|
1664
2710
|
credentialId: z.ZodString;
|
|
1665
2711
|
} & {
|
|
@@ -1711,22 +2757,154 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
1711
2757
|
}, {
|
|
1712
2758
|
type: "linear";
|
|
1713
2759
|
credentialId: string;
|
|
1714
|
-
}>,
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
2760
|
+
}>]>, "many">>>;
|
|
2761
|
+
mcpServers: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
2762
|
+
name: z.ZodString;
|
|
2763
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2764
|
+
url: z.ZodString;
|
|
2765
|
+
transport: z.ZodDefault<z.ZodEnum<["sse", "streamableHttp"]>>;
|
|
2766
|
+
authentication: z.ZodDefault<z.ZodUnion<[z.ZodEnum<["none", "bearerAuth", "headerAuth", "multipleHeadersAuth", "mcpOAuth2Api"]>, z.ZodString]>>;
|
|
2767
|
+
credential: z.ZodOptional<z.ZodString>;
|
|
2768
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
2769
|
+
nodeTypeName: z.ZodOptional<z.ZodString>;
|
|
2770
|
+
}, "strip", z.ZodTypeAny, {
|
|
2771
|
+
nodeTypeName?: string | undefined;
|
|
2772
|
+
}, {
|
|
2773
|
+
nodeTypeName?: string | undefined;
|
|
2774
|
+
}>>;
|
|
2775
|
+
toolFilter: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
|
|
2776
|
+
mode: z.ZodLiteral<"allow">;
|
|
2777
|
+
tools: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
2778
|
+
}, "strict", z.ZodTypeAny, {
|
|
2779
|
+
mode: "allow";
|
|
2780
|
+
tools: string[];
|
|
2781
|
+
}, {
|
|
2782
|
+
mode: "allow";
|
|
2783
|
+
tools?: string[] | undefined;
|
|
2784
|
+
}>, z.ZodObject<{
|
|
2785
|
+
mode: z.ZodLiteral<"exclude">;
|
|
2786
|
+
tools: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
2787
|
+
}, "strict", z.ZodTypeAny, {
|
|
2788
|
+
mode: "exclude";
|
|
2789
|
+
tools: string[];
|
|
2790
|
+
}, {
|
|
2791
|
+
mode: "exclude";
|
|
2792
|
+
tools?: string[] | undefined;
|
|
2793
|
+
}>]>>;
|
|
2794
|
+
approval: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
|
|
2795
|
+
mode: z.ZodLiteral<"global">;
|
|
2796
|
+
}, "strict", z.ZodTypeAny, {
|
|
2797
|
+
mode: "global";
|
|
2798
|
+
}, {
|
|
2799
|
+
mode: "global";
|
|
2800
|
+
}>, z.ZodObject<{
|
|
2801
|
+
mode: z.ZodLiteral<"selected">;
|
|
2802
|
+
tools: z.ZodArray<z.ZodString, "many">;
|
|
2803
|
+
}, "strict", z.ZodTypeAny, {
|
|
2804
|
+
mode: "selected";
|
|
2805
|
+
tools: string[];
|
|
2806
|
+
}, {
|
|
2807
|
+
mode: "selected";
|
|
2808
|
+
tools: string[];
|
|
2809
|
+
}>]>>;
|
|
2810
|
+
connectionTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1719
2811
|
}, "strict", z.ZodTypeAny, {
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
2812
|
+
name: string;
|
|
2813
|
+
url: string;
|
|
2814
|
+
transport: "sse" | "streamableHttp";
|
|
2815
|
+
authentication: string;
|
|
2816
|
+
description?: string | undefined;
|
|
2817
|
+
credential?: string | undefined;
|
|
2818
|
+
metadata?: {
|
|
2819
|
+
nodeTypeName?: string | undefined;
|
|
2820
|
+
} | undefined;
|
|
2821
|
+
toolFilter?: {
|
|
2822
|
+
mode: "allow";
|
|
2823
|
+
tools: string[];
|
|
2824
|
+
} | {
|
|
2825
|
+
mode: "exclude";
|
|
2826
|
+
tools: string[];
|
|
2827
|
+
} | undefined;
|
|
2828
|
+
approval?: {
|
|
2829
|
+
mode: "global";
|
|
2830
|
+
} | {
|
|
2831
|
+
mode: "selected";
|
|
2832
|
+
tools: string[];
|
|
2833
|
+
} | undefined;
|
|
2834
|
+
connectionTimeoutMs?: number | undefined;
|
|
1724
2835
|
}, {
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
2836
|
+
name: string;
|
|
2837
|
+
url: string;
|
|
2838
|
+
description?: string | undefined;
|
|
2839
|
+
credential?: string | undefined;
|
|
2840
|
+
transport?: "sse" | "streamableHttp" | undefined;
|
|
2841
|
+
authentication?: string | undefined;
|
|
2842
|
+
metadata?: {
|
|
2843
|
+
nodeTypeName?: string | undefined;
|
|
2844
|
+
} | undefined;
|
|
2845
|
+
toolFilter?: {
|
|
2846
|
+
mode: "allow";
|
|
2847
|
+
tools?: string[] | undefined;
|
|
2848
|
+
} | {
|
|
2849
|
+
mode: "exclude";
|
|
2850
|
+
tools?: string[] | undefined;
|
|
2851
|
+
} | undefined;
|
|
2852
|
+
approval?: {
|
|
2853
|
+
mode: "global";
|
|
2854
|
+
} | {
|
|
2855
|
+
mode: "selected";
|
|
2856
|
+
tools: string[];
|
|
2857
|
+
} | undefined;
|
|
2858
|
+
connectionTimeoutMs?: number | undefined;
|
|
2859
|
+
}>, "many">, {
|
|
2860
|
+
name: string;
|
|
2861
|
+
url: string;
|
|
2862
|
+
transport: "sse" | "streamableHttp";
|
|
2863
|
+
authentication: string;
|
|
2864
|
+
description?: string | undefined;
|
|
2865
|
+
credential?: string | undefined;
|
|
2866
|
+
metadata?: {
|
|
2867
|
+
nodeTypeName?: string | undefined;
|
|
2868
|
+
} | undefined;
|
|
2869
|
+
toolFilter?: {
|
|
2870
|
+
mode: "allow";
|
|
2871
|
+
tools: string[];
|
|
2872
|
+
} | {
|
|
2873
|
+
mode: "exclude";
|
|
2874
|
+
tools: string[];
|
|
2875
|
+
} | undefined;
|
|
2876
|
+
approval?: {
|
|
2877
|
+
mode: "global";
|
|
2878
|
+
} | {
|
|
2879
|
+
mode: "selected";
|
|
2880
|
+
tools: string[];
|
|
2881
|
+
} | undefined;
|
|
2882
|
+
connectionTimeoutMs?: number | undefined;
|
|
2883
|
+
}[], {
|
|
2884
|
+
name: string;
|
|
2885
|
+
url: string;
|
|
2886
|
+
description?: string | undefined;
|
|
2887
|
+
credential?: string | undefined;
|
|
2888
|
+
transport?: "sse" | "streamableHttp" | undefined;
|
|
2889
|
+
authentication?: string | undefined;
|
|
2890
|
+
metadata?: {
|
|
2891
|
+
nodeTypeName?: string | undefined;
|
|
2892
|
+
} | undefined;
|
|
2893
|
+
toolFilter?: {
|
|
2894
|
+
mode: "allow";
|
|
2895
|
+
tools?: string[] | undefined;
|
|
2896
|
+
} | {
|
|
2897
|
+
mode: "exclude";
|
|
2898
|
+
tools?: string[] | undefined;
|
|
2899
|
+
} | undefined;
|
|
2900
|
+
approval?: {
|
|
2901
|
+
mode: "global";
|
|
2902
|
+
} | {
|
|
2903
|
+
mode: "selected";
|
|
2904
|
+
tools: string[];
|
|
2905
|
+
} | undefined;
|
|
2906
|
+
connectionTimeoutMs?: number | undefined;
|
|
2907
|
+
}[]>>>;
|
|
1730
2908
|
config: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1731
2909
|
thinking: z.ZodOptional<z.ZodObject<{
|
|
1732
2910
|
provider: z.ZodEnum<["anthropic", "openai"]>;
|
|
@@ -1741,6 +2919,19 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
1741
2919
|
budgetTokens?: number | undefined;
|
|
1742
2920
|
reasoningEffort?: string | undefined;
|
|
1743
2921
|
}>>;
|
|
2922
|
+
webSearch: z.ZodOptional<z.ZodObject<{
|
|
2923
|
+
enabled: z.ZodBoolean;
|
|
2924
|
+
provider: z.ZodOptional<z.ZodEnum<["auto", "native", "brave", "searxng"]>>;
|
|
2925
|
+
credential: z.ZodOptional<z.ZodString>;
|
|
2926
|
+
}, "strip", z.ZodTypeAny, {
|
|
2927
|
+
enabled: boolean;
|
|
2928
|
+
provider?: "auto" | "native" | "brave" | "searxng" | undefined;
|
|
2929
|
+
credential?: string | undefined;
|
|
2930
|
+
}, {
|
|
2931
|
+
enabled: boolean;
|
|
2932
|
+
provider?: "auto" | "native" | "brave" | "searxng" | undefined;
|
|
2933
|
+
credential?: string | undefined;
|
|
2934
|
+
}>>;
|
|
1744
2935
|
toolCallConcurrency: z.ZodOptional<z.ZodNumber>;
|
|
1745
2936
|
maxIterations: z.ZodOptional<z.ZodNumber>;
|
|
1746
2937
|
nodeTools: z.ZodOptional<z.ZodObject<{
|
|
@@ -1756,6 +2947,11 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
1756
2947
|
budgetTokens?: number | undefined;
|
|
1757
2948
|
reasoningEffort?: string | undefined;
|
|
1758
2949
|
} | undefined;
|
|
2950
|
+
webSearch?: {
|
|
2951
|
+
enabled: boolean;
|
|
2952
|
+
provider?: "auto" | "native" | "brave" | "searxng" | undefined;
|
|
2953
|
+
credential?: string | undefined;
|
|
2954
|
+
} | undefined;
|
|
1759
2955
|
toolCallConcurrency?: number | undefined;
|
|
1760
2956
|
maxIterations?: number | undefined;
|
|
1761
2957
|
nodeTools?: {
|
|
@@ -1767,6 +2963,11 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
1767
2963
|
budgetTokens?: number | undefined;
|
|
1768
2964
|
reasoningEffort?: string | undefined;
|
|
1769
2965
|
} | undefined;
|
|
2966
|
+
webSearch?: {
|
|
2967
|
+
enabled: boolean;
|
|
2968
|
+
provider?: "auto" | "native" | "brave" | "searxng" | undefined;
|
|
2969
|
+
credential?: string | undefined;
|
|
2970
|
+
} | undefined;
|
|
1770
2971
|
toolCallConcurrency?: number | undefined;
|
|
1771
2972
|
maxIterations?: number | undefined;
|
|
1772
2973
|
nodeTools?: {
|
|
@@ -1778,11 +2979,36 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
1778
2979
|
description?: string | undefined;
|
|
1779
2980
|
credential?: string | undefined;
|
|
1780
2981
|
name?: string | undefined;
|
|
2982
|
+
tools?: ({
|
|
2983
|
+
type: "custom";
|
|
2984
|
+
id: string;
|
|
2985
|
+
requireApproval?: boolean | undefined;
|
|
2986
|
+
} | {
|
|
2987
|
+
type: "workflow";
|
|
2988
|
+
workflow: string;
|
|
2989
|
+
description?: string | undefined;
|
|
2990
|
+
name?: string | undefined;
|
|
2991
|
+
requireApproval?: boolean | undefined;
|
|
2992
|
+
allOutputs?: boolean | undefined;
|
|
2993
|
+
} | {
|
|
2994
|
+
type: "node";
|
|
2995
|
+
name: string;
|
|
2996
|
+
node: {
|
|
2997
|
+
nodeType: string;
|
|
2998
|
+
nodeTypeVersion: number;
|
|
2999
|
+
nodeParameters: Record<string, unknown>;
|
|
3000
|
+
credentials?: Record<string, {
|
|
3001
|
+
id: string;
|
|
3002
|
+
name: string;
|
|
3003
|
+
}> | undefined;
|
|
3004
|
+
};
|
|
3005
|
+
description?: string | undefined;
|
|
3006
|
+
requireApproval?: boolean | undefined;
|
|
3007
|
+
})[] | undefined;
|
|
1781
3008
|
instructions?: string | undefined;
|
|
1782
3009
|
memory?: {
|
|
1783
3010
|
enabled: boolean;
|
|
1784
3011
|
storage: "n8n";
|
|
1785
|
-
lastMessages?: number | undefined;
|
|
1786
3012
|
semanticRecall?: {
|
|
1787
3013
|
topK: number;
|
|
1788
3014
|
scope?: "thread" | "resource" | undefined;
|
|
@@ -1794,6 +3020,14 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
1794
3020
|
} | undefined;
|
|
1795
3021
|
observationalMemory?: {
|
|
1796
3022
|
enabled?: boolean | undefined;
|
|
3023
|
+
observerModel?: {
|
|
3024
|
+
model: string;
|
|
3025
|
+
credential: string;
|
|
3026
|
+
} | undefined;
|
|
3027
|
+
reflectorModel?: {
|
|
3028
|
+
model: string;
|
|
3029
|
+
credential: string;
|
|
3030
|
+
} | undefined;
|
|
1797
3031
|
observerThresholdTokens?: number | undefined;
|
|
1798
3032
|
reflectorThresholdTokens?: number | undefined;
|
|
1799
3033
|
renderTokenBudget?: number | undefined;
|
|
@@ -1803,49 +3037,31 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
1803
3037
|
episodicMemory?: {
|
|
1804
3038
|
enabled: false;
|
|
1805
3039
|
} | {
|
|
1806
|
-
enabled: true;
|
|
1807
3040
|
credential: string;
|
|
3041
|
+
enabled: true;
|
|
1808
3042
|
topK?: number | undefined;
|
|
3043
|
+
reflectorModel?: {
|
|
3044
|
+
model: string;
|
|
3045
|
+
credential: string;
|
|
3046
|
+
} | undefined;
|
|
3047
|
+
extractorModel?: {
|
|
3048
|
+
model: string;
|
|
3049
|
+
credential: string;
|
|
3050
|
+
} | undefined;
|
|
1809
3051
|
maxEntriesPerRun?: number | undefined;
|
|
1810
3052
|
} | undefined;
|
|
1811
3053
|
} | undefined;
|
|
1812
|
-
tools?: ({
|
|
1813
|
-
type: "custom";
|
|
1814
|
-
id: string;
|
|
1815
|
-
requireApproval?: boolean | undefined;
|
|
1816
|
-
} | {
|
|
1817
|
-
type: "workflow";
|
|
1818
|
-
workflow: string;
|
|
1819
|
-
description?: string | undefined;
|
|
1820
|
-
name?: string | undefined;
|
|
1821
|
-
requireApproval?: boolean | undefined;
|
|
1822
|
-
allOutputs?: boolean | undefined;
|
|
1823
|
-
} | {
|
|
1824
|
-
type: "node";
|
|
1825
|
-
name: string;
|
|
1826
|
-
node: {
|
|
1827
|
-
nodeType: string;
|
|
1828
|
-
nodeTypeVersion: number;
|
|
1829
|
-
nodeParameters: Record<string, unknown>;
|
|
1830
|
-
credentials?: Record<string, {
|
|
1831
|
-
id: string;
|
|
1832
|
-
name: string;
|
|
1833
|
-
}> | undefined;
|
|
1834
|
-
};
|
|
1835
|
-
description?: string | undefined;
|
|
1836
|
-
requireApproval?: boolean | undefined;
|
|
1837
|
-
})[] | undefined;
|
|
1838
3054
|
skills?: {
|
|
1839
3055
|
type: "skill";
|
|
1840
3056
|
id: string;
|
|
1841
3057
|
}[] | undefined;
|
|
3058
|
+
tasks?: {
|
|
3059
|
+
type: "task";
|
|
3060
|
+
enabled: boolean;
|
|
3061
|
+
id: string;
|
|
3062
|
+
}[] | undefined;
|
|
1842
3063
|
providerTools?: Record<string, Record<string, unknown>> | undefined;
|
|
1843
3064
|
integrations?: ({
|
|
1844
|
-
type: "schedule";
|
|
1845
|
-
active: boolean;
|
|
1846
|
-
cronExpression: string;
|
|
1847
|
-
wakeUpPrompt: string;
|
|
1848
|
-
} | {
|
|
1849
3065
|
type: "telegram";
|
|
1850
3066
|
credentialId: string;
|
|
1851
3067
|
settings?: {
|
|
@@ -1859,12 +3075,42 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
1859
3075
|
type: "linear";
|
|
1860
3076
|
credentialId: string;
|
|
1861
3077
|
})[] | undefined;
|
|
3078
|
+
mcpServers?: {
|
|
3079
|
+
name: string;
|
|
3080
|
+
url: string;
|
|
3081
|
+
transport: "sse" | "streamableHttp";
|
|
3082
|
+
authentication: string;
|
|
3083
|
+
description?: string | undefined;
|
|
3084
|
+
credential?: string | undefined;
|
|
3085
|
+
metadata?: {
|
|
3086
|
+
nodeTypeName?: string | undefined;
|
|
3087
|
+
} | undefined;
|
|
3088
|
+
toolFilter?: {
|
|
3089
|
+
mode: "allow";
|
|
3090
|
+
tools: string[];
|
|
3091
|
+
} | {
|
|
3092
|
+
mode: "exclude";
|
|
3093
|
+
tools: string[];
|
|
3094
|
+
} | undefined;
|
|
3095
|
+
approval?: {
|
|
3096
|
+
mode: "global";
|
|
3097
|
+
} | {
|
|
3098
|
+
mode: "selected";
|
|
3099
|
+
tools: string[];
|
|
3100
|
+
} | undefined;
|
|
3101
|
+
connectionTimeoutMs?: number | undefined;
|
|
3102
|
+
}[] | undefined;
|
|
1862
3103
|
config?: {
|
|
1863
3104
|
thinking?: {
|
|
1864
3105
|
provider: "anthropic" | "openai";
|
|
1865
3106
|
budgetTokens?: number | undefined;
|
|
1866
3107
|
reasoningEffort?: string | undefined;
|
|
1867
3108
|
} | undefined;
|
|
3109
|
+
webSearch?: {
|
|
3110
|
+
enabled: boolean;
|
|
3111
|
+
provider?: "auto" | "native" | "brave" | "searxng" | undefined;
|
|
3112
|
+
credential?: string | undefined;
|
|
3113
|
+
} | undefined;
|
|
1868
3114
|
toolCallConcurrency?: number | undefined;
|
|
1869
3115
|
maxIterations?: number | undefined;
|
|
1870
3116
|
nodeTools?: {
|
|
@@ -1876,11 +3122,36 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
1876
3122
|
description?: string | undefined;
|
|
1877
3123
|
credential?: string | undefined;
|
|
1878
3124
|
name?: string | undefined;
|
|
3125
|
+
tools?: ({
|
|
3126
|
+
type: "custom";
|
|
3127
|
+
id: string;
|
|
3128
|
+
requireApproval?: boolean | undefined;
|
|
3129
|
+
} | {
|
|
3130
|
+
type: "workflow";
|
|
3131
|
+
workflow: string;
|
|
3132
|
+
description?: string | undefined;
|
|
3133
|
+
name?: string | undefined;
|
|
3134
|
+
requireApproval?: boolean | undefined;
|
|
3135
|
+
allOutputs?: boolean | undefined;
|
|
3136
|
+
} | {
|
|
3137
|
+
type: "node";
|
|
3138
|
+
name: string;
|
|
3139
|
+
node: {
|
|
3140
|
+
nodeType: string;
|
|
3141
|
+
nodeTypeVersion: number;
|
|
3142
|
+
nodeParameters?: Record<string, unknown> | undefined;
|
|
3143
|
+
credentials?: Record<string, {
|
|
3144
|
+
id: string;
|
|
3145
|
+
name: string;
|
|
3146
|
+
}> | undefined;
|
|
3147
|
+
};
|
|
3148
|
+
description?: string | undefined;
|
|
3149
|
+
requireApproval?: boolean | undefined;
|
|
3150
|
+
})[] | undefined;
|
|
1879
3151
|
instructions?: string | undefined;
|
|
1880
3152
|
memory?: {
|
|
1881
3153
|
enabled: boolean;
|
|
1882
3154
|
storage: "n8n";
|
|
1883
|
-
lastMessages?: number | undefined;
|
|
1884
3155
|
semanticRecall?: {
|
|
1885
3156
|
topK: number;
|
|
1886
3157
|
scope?: "thread" | "resource" | undefined;
|
|
@@ -1892,6 +3163,14 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
1892
3163
|
} | undefined;
|
|
1893
3164
|
observationalMemory?: {
|
|
1894
3165
|
enabled?: boolean | undefined;
|
|
3166
|
+
observerModel?: {
|
|
3167
|
+
model: string;
|
|
3168
|
+
credential: string;
|
|
3169
|
+
} | undefined;
|
|
3170
|
+
reflectorModel?: {
|
|
3171
|
+
model: string;
|
|
3172
|
+
credential: string;
|
|
3173
|
+
} | undefined;
|
|
1895
3174
|
observerThresholdTokens?: number | undefined;
|
|
1896
3175
|
reflectorThresholdTokens?: number | undefined;
|
|
1897
3176
|
renderTokenBudget?: number | undefined;
|
|
@@ -1901,49 +3180,31 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
1901
3180
|
episodicMemory?: {
|
|
1902
3181
|
enabled: false;
|
|
1903
3182
|
} | {
|
|
1904
|
-
enabled: true;
|
|
1905
3183
|
credential: string;
|
|
3184
|
+
enabled: true;
|
|
1906
3185
|
topK?: number | undefined;
|
|
3186
|
+
reflectorModel?: {
|
|
3187
|
+
model: string;
|
|
3188
|
+
credential: string;
|
|
3189
|
+
} | undefined;
|
|
3190
|
+
extractorModel?: {
|
|
3191
|
+
model: string;
|
|
3192
|
+
credential: string;
|
|
3193
|
+
} | undefined;
|
|
1907
3194
|
maxEntriesPerRun?: number | undefined;
|
|
1908
3195
|
} | undefined;
|
|
1909
3196
|
} | undefined;
|
|
1910
|
-
tools?: ({
|
|
1911
|
-
type: "custom";
|
|
1912
|
-
id: string;
|
|
1913
|
-
requireApproval?: boolean | undefined;
|
|
1914
|
-
} | {
|
|
1915
|
-
type: "workflow";
|
|
1916
|
-
workflow: string;
|
|
1917
|
-
description?: string | undefined;
|
|
1918
|
-
name?: string | undefined;
|
|
1919
|
-
requireApproval?: boolean | undefined;
|
|
1920
|
-
allOutputs?: boolean | undefined;
|
|
1921
|
-
} | {
|
|
1922
|
-
type: "node";
|
|
1923
|
-
name: string;
|
|
1924
|
-
node: {
|
|
1925
|
-
nodeType: string;
|
|
1926
|
-
nodeTypeVersion: number;
|
|
1927
|
-
nodeParameters?: Record<string, unknown> | undefined;
|
|
1928
|
-
credentials?: Record<string, {
|
|
1929
|
-
id: string;
|
|
1930
|
-
name: string;
|
|
1931
|
-
}> | undefined;
|
|
1932
|
-
};
|
|
1933
|
-
description?: string | undefined;
|
|
1934
|
-
requireApproval?: boolean | undefined;
|
|
1935
|
-
})[] | undefined;
|
|
1936
3197
|
skills?: {
|
|
1937
3198
|
type: "skill";
|
|
1938
3199
|
id: string;
|
|
1939
3200
|
}[] | undefined;
|
|
3201
|
+
tasks?: {
|
|
3202
|
+
type: "task";
|
|
3203
|
+
enabled: boolean;
|
|
3204
|
+
id: string;
|
|
3205
|
+
}[] | undefined;
|
|
1940
3206
|
providerTools?: Record<string, Record<string, unknown>> | undefined;
|
|
1941
3207
|
integrations?: ({
|
|
1942
|
-
type: "schedule";
|
|
1943
|
-
active: boolean;
|
|
1944
|
-
cronExpression: string;
|
|
1945
|
-
wakeUpPrompt: string;
|
|
1946
|
-
} | {
|
|
1947
3208
|
type: "telegram";
|
|
1948
3209
|
credentialId: string;
|
|
1949
3210
|
settings?: {
|
|
@@ -1957,12 +3218,42 @@ export declare const AgentJsonConfigPartialSchema: z.ZodObject<{
|
|
|
1957
3218
|
type: "linear";
|
|
1958
3219
|
credentialId: string;
|
|
1959
3220
|
})[] | undefined;
|
|
3221
|
+
mcpServers?: {
|
|
3222
|
+
name: string;
|
|
3223
|
+
url: string;
|
|
3224
|
+
description?: string | undefined;
|
|
3225
|
+
credential?: string | undefined;
|
|
3226
|
+
transport?: "sse" | "streamableHttp" | undefined;
|
|
3227
|
+
authentication?: string | undefined;
|
|
3228
|
+
metadata?: {
|
|
3229
|
+
nodeTypeName?: string | undefined;
|
|
3230
|
+
} | undefined;
|
|
3231
|
+
toolFilter?: {
|
|
3232
|
+
mode: "allow";
|
|
3233
|
+
tools?: string[] | undefined;
|
|
3234
|
+
} | {
|
|
3235
|
+
mode: "exclude";
|
|
3236
|
+
tools?: string[] | undefined;
|
|
3237
|
+
} | undefined;
|
|
3238
|
+
approval?: {
|
|
3239
|
+
mode: "global";
|
|
3240
|
+
} | {
|
|
3241
|
+
mode: "selected";
|
|
3242
|
+
tools: string[];
|
|
3243
|
+
} | undefined;
|
|
3244
|
+
connectionTimeoutMs?: number | undefined;
|
|
3245
|
+
}[] | undefined;
|
|
1960
3246
|
config?: {
|
|
1961
3247
|
thinking?: {
|
|
1962
3248
|
provider: "anthropic" | "openai";
|
|
1963
3249
|
budgetTokens?: number | undefined;
|
|
1964
3250
|
reasoningEffort?: string | undefined;
|
|
1965
3251
|
} | undefined;
|
|
3252
|
+
webSearch?: {
|
|
3253
|
+
enabled: boolean;
|
|
3254
|
+
provider?: "auto" | "native" | "brave" | "searxng" | undefined;
|
|
3255
|
+
credential?: string | undefined;
|
|
3256
|
+
} | undefined;
|
|
1966
3257
|
toolCallConcurrency?: number | undefined;
|
|
1967
3258
|
maxIterations?: number | undefined;
|
|
1968
3259
|
nodeTools?: {
|
|
@@ -1982,8 +3273,11 @@ export type AgentJsonCustomToolConfig = Extract<AgentJsonToolConfig, {
|
|
|
1982
3273
|
type: 'custom';
|
|
1983
3274
|
}>;
|
|
1984
3275
|
export type AgentJsonSkillConfig = z.infer<typeof AgentJsonSkillConfigSchema>;
|
|
3276
|
+
export type AgentJsonTaskConfig = z.infer<typeof AgentJsonTaskConfigSchema>;
|
|
1985
3277
|
export type AgentJsonMemoryConfig = z.infer<typeof MemoryConfigSchema>;
|
|
1986
3278
|
export type NodeToolConfig = z.infer<typeof NodeConfigSchema>;
|
|
3279
|
+
export type AgentJsonMcpServerConfig = z.infer<typeof McpServerConfigSchema>;
|
|
3280
|
+
export type McpAuthenticationSchemaType = z.infer<typeof McpAuthenticationSchemaTypes>;
|
|
1987
3281
|
export interface ConfigValidationError {
|
|
1988
3282
|
path: string;
|
|
1989
3283
|
message: string;
|