n8n-nodes-simple 2.1.0 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/nodes/CoreAgent/CoreAgent.node.d.ts +3 -2
- package/dist/nodes/CoreAgent/CoreAgent.node.js +3 -3
- package/dist/nodes/CoreAgent/CoreAgent.node.js.map +1 -1
- package/dist/nodes/CoreAgent/description.js +1 -1
- package/dist/nodes/CoreAgent/description.js.map +1 -1
- package/dist/nodes/Subagent/Subagent.node.d.ts +3 -2
- package/dist/nodes/Subagent/Subagent.node.js +5 -5
- package/dist/nodes/Subagent/Subagent.node.js.map +1 -1
- package/dist/nodes/Subagent/description.js +1 -1
- package/dist/nodes/Subagent/description.js.map +1 -1
- package/dist/nodes/shared/assets/gradientRobot.svg +11 -0
- package/dist/nodes/shared/assets/gradientRobotRed.svg +11 -0
- package/dist/nodes/shared/config/descriptionGenerator.d.ts +2 -0
- package/dist/nodes/shared/config/descriptionGenerator.js +36 -0
- package/dist/nodes/shared/config/descriptionGenerator.js.map +1 -0
- package/dist/nodes/shared/config/parameters.d.ts +26 -0
- package/dist/nodes/shared/config/parameters.js +35 -0
- package/dist/nodes/shared/config/parameters.js.map +1 -0
- package/dist/nodes/shared/config/properties/index.d.ts +2 -0
- package/dist/nodes/shared/config/properties/index.js +16 -0
- package/dist/nodes/shared/config/properties/index.js.map +1 -0
- package/dist/nodes/shared/config/properties/memory.d.ts +2 -0
- package/dist/nodes/shared/config/properties/memory.js +5 -0
- package/dist/nodes/shared/config/properties/memory.js.map +1 -0
- package/dist/nodes/shared/config/properties/messages.d.ts +2 -0
- package/dist/nodes/shared/config/properties/messages.js +109 -0
- package/dist/nodes/shared/config/properties/messages.js.map +1 -0
- package/dist/nodes/shared/config/properties/model.d.ts +2 -0
- package/dist/nodes/shared/config/properties/model.js +30 -0
- package/dist/nodes/shared/config/properties/model.js.map +1 -0
- package/dist/nodes/shared/config/properties/options.d.ts +2 -0
- package/dist/nodes/shared/config/properties/options.js +105 -0
- package/dist/nodes/shared/config/properties/options.js.map +1 -0
- package/dist/nodes/shared/config/properties/output.d.ts +2 -0
- package/dist/nodes/shared/config/properties/output.js +310 -0
- package/dist/nodes/shared/config/properties/output.js.map +1 -0
- package/dist/nodes/shared/config/properties/tools.d.ts +2 -0
- package/dist/nodes/shared/config/properties/tools.js +5 -0
- package/dist/nodes/shared/config/properties/tools.js.map +1 -0
- package/dist/nodes/shared/config/responseConfig.d.ts +3 -0
- package/dist/nodes/shared/config/responseConfig.js +26 -0
- package/dist/nodes/shared/config/responseConfig.js.map +1 -0
- package/dist/nodes/shared/core/execution/executor.d.ts +7 -0
- package/dist/nodes/shared/core/execution/executor.js +61 -0
- package/dist/nodes/shared/core/execution/executor.js.map +1 -0
- package/dist/nodes/shared/core/execution/messageOperation.d.ts +2 -0
- package/dist/nodes/shared/core/execution/messageOperation.js +14 -0
- package/dist/nodes/shared/core/execution/messageOperation.js.map +1 -0
- package/dist/nodes/shared/core/execution/router.d.ts +2 -0
- package/dist/nodes/shared/core/execution/router.js +117 -0
- package/dist/nodes/shared/core/execution/router.js.map +1 -0
- package/dist/nodes/shared/core/memory/index.d.ts +2 -0
- package/dist/nodes/shared/core/memory/index.js +19 -0
- package/dist/nodes/shared/core/memory/index.js.map +1 -0
- package/dist/nodes/shared/core/memory/io.d.ts +5 -0
- package/dist/nodes/shared/core/memory/io.js +93 -0
- package/dist/nodes/shared/core/memory/io.js.map +1 -0
- package/dist/nodes/shared/core/memory/optimizer.d.ts +3 -0
- package/dist/nodes/shared/core/memory/optimizer.js +30 -0
- package/dist/nodes/shared/core/memory/optimizer.js.map +1 -0
- package/dist/nodes/shared/core/memory/properties.d.ts +2 -0
- package/dist/nodes/shared/core/memory/properties.js +5 -0
- package/dist/nodes/shared/core/memory/properties.js.map +1 -0
- package/dist/nodes/shared/core/messages/chatHistory.d.ts +2 -0
- package/dist/nodes/shared/core/messages/chatHistory.js +63 -0
- package/dist/nodes/shared/core/messages/chatHistory.js.map +1 -0
- package/dist/nodes/shared/core/messages/converter.d.ts +4 -0
- package/dist/nodes/shared/core/messages/converter.js +76 -0
- package/dist/nodes/shared/core/messages/converter.js.map +1 -0
- package/dist/nodes/shared/core/messages/memoryOptimizer.d.ts +3 -0
- package/dist/nodes/shared/core/messages/memoryOptimizer.js +30 -0
- package/dist/nodes/shared/core/messages/memoryOptimizer.js.map +1 -0
- package/dist/nodes/shared/core/messages/processor.d.ts +4 -0
- package/dist/nodes/shared/core/messages/processor.js +23 -0
- package/dist/nodes/shared/core/messages/processor.js.map +1 -0
- package/dist/nodes/shared/core/messages/toolExtractor.d.ts +6 -0
- package/dist/nodes/shared/core/messages/toolExtractor.js +28 -0
- package/dist/nodes/shared/core/messages/toolExtractor.js.map +1 -0
- package/dist/nodes/shared/core/messages/types.d.ts +48 -0
- package/dist/nodes/shared/core/messages/types.js +12 -0
- package/dist/nodes/shared/core/messages/types.js.map +1 -0
- package/dist/nodes/shared/core/tools/connector.d.ts +3 -0
- package/dist/nodes/shared/core/tools/connector.js +37 -0
- package/dist/nodes/shared/core/tools/connector.js.map +1 -0
- package/dist/nodes/shared/core/tools/executor.d.ts +6 -0
- package/dist/nodes/shared/core/tools/executor.js +124 -0
- package/dist/nodes/shared/core/tools/executor.js.map +1 -0
- package/dist/nodes/shared/core/tools/manager.d.ts +2 -0
- package/dist/nodes/shared/core/tools/manager.js +51 -0
- package/dist/nodes/shared/core/tools/manager.js.map +1 -0
- package/dist/nodes/shared/core/tools/messageExtractor.d.ts +6 -0
- package/dist/nodes/shared/core/tools/messageExtractor.js +28 -0
- package/dist/nodes/shared/core/tools/messageExtractor.js.map +1 -0
- package/dist/nodes/shared/core/tools/n8nTool.d.ts +9 -0
- package/dist/nodes/shared/core/tools/n8nTool.js +91 -0
- package/dist/nodes/shared/core/tools/n8nTool.js.map +1 -0
- package/dist/nodes/shared/core/tools/schemaGenerator.d.ts +6 -0
- package/dist/nodes/shared/core/tools/schemaGenerator.js +23 -0
- package/dist/nodes/shared/core/tools/schemaGenerator.js.map +1 -0
- package/dist/nodes/shared/core/tools/setup.d.ts +8 -0
- package/dist/nodes/shared/core/tools/setup.js +59 -0
- package/dist/nodes/shared/core/tools/setup.js.map +1 -0
- package/dist/nodes/shared/core/tools/subagentTool.d.ts +11 -0
- package/dist/nodes/shared/core/tools/subagentTool.js +60 -0
- package/dist/nodes/shared/core/tools/subagentTool.js.map +1 -0
- package/dist/nodes/shared/methods/index.d.ts +1 -1
- package/dist/nodes/shared/methods/index.js +1 -1
- package/dist/nodes/shared/methods/index.js.map +1 -1
- package/dist/nodes/shared/methods/listSearch.d.ts +3 -0
- package/dist/nodes/shared/methods/listSearch.js +4 -0
- package/dist/nodes/shared/methods/listSearch.js.map +1 -1
- package/dist/nodes/shared/processing/memory.d.ts +5 -0
- package/dist/nodes/shared/processing/memory.js +93 -0
- package/dist/nodes/shared/processing/memory.js.map +1 -0
- package/dist/nodes/shared/processing/outputProcessor.d.ts +5 -0
- package/dist/nodes/shared/processing/outputProcessor.js +108 -0
- package/dist/nodes/shared/processing/outputProcessor.js.map +1 -0
- package/dist/nodes/shared/processing/requestBuilder.d.ts +2 -0
- package/dist/nodes/shared/processing/requestBuilder.js +43 -0
- package/dist/nodes/shared/processing/requestBuilder.js.map +1 -0
- package/dist/nodes/shared/processing/visualEditor.d.ts +32 -0
- package/dist/nodes/shared/processing/visualEditor.js +70 -0
- package/dist/nodes/shared/processing/visualEditor.js.map +1 -0
- package/dist/nodes/shared/utils/descriptionGenerator.d.ts +2 -0
- package/dist/nodes/shared/utils/descriptionGenerator.js +36 -0
- package/dist/nodes/shared/utils/descriptionGenerator.js.map +1 -0
- package/dist/nodes/shared/utils/index.d.ts +1 -0
- package/dist/nodes/shared/utils/index.js +18 -0
- package/dist/nodes/shared/utils/index.js.map +1 -0
- package/dist/nodes/shared/utils/listSearch.d.ts +2 -0
- package/dist/nodes/shared/utils/listSearch.js +34 -0
- package/dist/nodes/shared/utils/listSearch.js.map +1 -0
- package/dist/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { type IExecuteFunctions, type INodeType } from 'n8n-workflow';
|
|
2
|
-
import { listSearch } from '../shared/methods';
|
|
3
2
|
export declare class CoreAgent implements INodeType {
|
|
4
3
|
description: import("n8n-workflow").INodeTypeDescription;
|
|
5
4
|
methods: {
|
|
6
|
-
listSearch:
|
|
5
|
+
listSearch: {
|
|
6
|
+
modelSearch: typeof import("../shared/methods/listSearch").modelSearch;
|
|
7
|
+
};
|
|
7
8
|
};
|
|
8
9
|
execute(this: IExecuteFunctions): Promise<import("n8n-workflow").INodeExecutionData[][]>;
|
|
9
10
|
}
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CoreAgent = void 0;
|
|
4
4
|
const description_1 = require("./description");
|
|
5
|
-
const router_1 = require("../shared/
|
|
6
|
-
const
|
|
5
|
+
const router_1 = require("../shared/core/execution/router");
|
|
6
|
+
const listSearch_1 = require("../shared/methods/listSearch");
|
|
7
7
|
class CoreAgent {
|
|
8
8
|
constructor() {
|
|
9
9
|
this.description = description_1.coreAgentDescription;
|
|
10
10
|
this.methods = {
|
|
11
|
-
listSearch:
|
|
11
|
+
listSearch: listSearch_1.listSearch,
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
14
|
async execute() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoreAgent.node.js","sourceRoot":"","sources":["../../../nodes/CoreAgent/CoreAgent.node.ts"],"names":[],"mappings":";;;AAEA,+CAAqD;AACrD,
|
|
1
|
+
{"version":3,"file":"CoreAgent.node.js","sourceRoot":"","sources":["../../../nodes/CoreAgent/CoreAgent.node.ts"],"names":[],"mappings":";;;AAEA,+CAAqD;AACrD,4DAAyD;AACzD,6DAA0D;AAE1D,MAAa,SAAS;IAAtB;QACC,gBAAW,GAAG,kCAAoB,CAAC;QAEnC,YAAO,GAAG;YACT,UAAU,EAAV,uBAAU;SACV,CAAC;IAMH,CAAC;IAHA,KAAK,CAAC,OAAO;QACZ,OAAO,MAAM,eAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAChC,CAAC;CACD;AAXD,8BAWC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.coreAgentDescription = void 0;
|
|
4
|
-
const descriptionGenerator_1 = require("../shared/descriptionGenerator");
|
|
4
|
+
const descriptionGenerator_1 = require("../shared/config/descriptionGenerator");
|
|
5
5
|
exports.coreAgentDescription = (0, descriptionGenerator_1.generateDescription)('coreAgent', {
|
|
6
6
|
displayName: 'AI Agent',
|
|
7
7
|
defaults: { name: 'AI Agent' },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"description.js","sourceRoot":"","sources":["../../../nodes/CoreAgent/description.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"description.js","sourceRoot":"","sources":["../../../nodes/CoreAgent/description.ts"],"names":[],"mappings":";;;AAAA,gFAA4E;AAG/D,QAAA,oBAAoB,GAAyB,IAAA,0CAAmB,EAC5E,WAAW,EACX;IACC,WAAW,EAAE,UAAU;IACvB,QAAQ,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE;IAC9B,WAAW,EAAE,iEAAiE;IAC9E,KAAK,EAAE;QACN,KAAK,EAAE;YACN,SAAS;YACT,SAAS;YACT,IAAI;YACJ,OAAO;YACP,UAAU;YACV,QAAQ;YACR,SAAS;YACT,WAAW;YACX,SAAS;YACT,WAAW;YACX,MAAM;YACN,gBAAgB;YAChB,kBAAkB;YAClB,OAAO;SACP;QACD,UAAU,EAAE,CAAC,IAAI,CAAC;QAClB,aAAa,EAAE;YACd,EAAE,EAAE,CAAC,QAAQ,EAAE,eAAe,EAAE,YAAY,CAAC;SAC7C;KACD;CACD,CACD,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { type IExecuteFunctions, type ISupplyDataFunctions, type INodeType, type SupplyData } from 'n8n-workflow';
|
|
2
|
-
import { listSearch } from '../shared/methods';
|
|
3
2
|
export declare class Subagent implements INodeType {
|
|
4
3
|
description: import("n8n-workflow").INodeTypeDescription;
|
|
5
4
|
methods: {
|
|
6
|
-
listSearch:
|
|
5
|
+
listSearch: {
|
|
6
|
+
modelSearch: typeof import("../shared/methods/listSearch").modelSearch;
|
|
7
|
+
};
|
|
7
8
|
};
|
|
8
9
|
execute(this: IExecuteFunctions): Promise<import("n8n-workflow").INodeExecutionData[][]>;
|
|
9
10
|
supplyData(this: ISupplyDataFunctions, itemIndex: number): Promise<SupplyData>;
|
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Subagent = void 0;
|
|
4
4
|
const description_1 = require("./description");
|
|
5
|
-
const router_1 = require("../shared/
|
|
6
|
-
const
|
|
7
|
-
const
|
|
5
|
+
const router_1 = require("../shared/core/execution/router");
|
|
6
|
+
const manager_1 = require("../shared/core/tools/manager");
|
|
7
|
+
const listSearch_1 = require("../shared/methods/listSearch");
|
|
8
8
|
class Subagent {
|
|
9
9
|
constructor() {
|
|
10
10
|
this.description = description_1.description;
|
|
11
11
|
this.methods = {
|
|
12
|
-
listSearch:
|
|
12
|
+
listSearch: listSearch_1.listSearch,
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
15
|
async execute() {
|
|
16
16
|
return await router_1.router.call(this);
|
|
17
17
|
}
|
|
18
18
|
async supplyData(itemIndex) {
|
|
19
|
-
return await
|
|
19
|
+
return await manager_1.executeAsTool.call(this, itemIndex);
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
exports.Subagent = Subagent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Subagent.node.js","sourceRoot":"","sources":["../../../nodes/Subagent/Subagent.node.ts"],"names":[],"mappings":";;;AAOA,+CAA4C;AAC5C,
|
|
1
|
+
{"version":3,"file":"Subagent.node.js","sourceRoot":"","sources":["../../../nodes/Subagent/Subagent.node.ts"],"names":[],"mappings":";;;AAOA,+CAA4C;AAC5C,4DAAyD;AACzD,0DAA6D;AAC7D,6DAA0D;AAE1D,MAAa,QAAQ;IAArB;QACC,gBAAW,GAAG,yBAAW,CAAC;QAE1B,YAAO,GAAG;YACT,UAAU,EAAV,uBAAU;SACV,CAAC;IAWH,CAAC;IARA,KAAK,CAAC,OAAO;QACZ,OAAO,MAAM,eAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAChC,CAAC;IAGD,KAAK,CAAC,UAAU,CAA6B,SAAiB;QAC7D,OAAO,MAAM,uBAAa,CAAC,IAAI,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IAClD,CAAC;CACD;AAhBD,4BAgBC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.description = void 0;
|
|
4
|
-
const descriptionGenerator_1 = require("../shared/descriptionGenerator");
|
|
4
|
+
const descriptionGenerator_1 = require("../shared/config/descriptionGenerator");
|
|
5
5
|
exports.description = (0, descriptionGenerator_1.generateDescription)('subAgent', {
|
|
6
6
|
displayName: 'AI Subagent',
|
|
7
7
|
defaults: { name: 'AI Subagent' },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"description.js","sourceRoot":"","sources":["../../../nodes/Subagent/description.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"description.js","sourceRoot":"","sources":["../../../nodes/Subagent/description.ts"],"names":[],"mappings":";;;AAAA,gFAA4E;AAG/D,QAAA,WAAW,GAAyB,IAAA,0CAAmB,EACnE,UAAU,EACV;IACC,WAAW,EAAE,aAAa;IAC1B,QAAQ,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE;IACjC,WAAW,EAAE,gDAAgD;IAC7D,KAAK,EAAE,CAAC,QAAQ,CAAC;IACjB,KAAK,EAAE;QACN,KAAK,EAAE;YACN,SAAS;YACT,SAAS;YACT,IAAI;YACJ,OAAO;YACP,UAAU;YACV,QAAQ;YACR,SAAS;YACT,WAAW;YACX,SAAS;YACT,WAAW;YACX,MAAM;YACN,gBAAgB;YAChB,kBAAkB;YAClB,OAAO;YACP,OAAO;SACP;QACD,UAAU,EAAE,CAAC,IAAI,CAAC;QAClB,aAAa,EAAE;YACd,EAAE,EAAE,CAAC,eAAe,EAAE,OAAO,CAAC;YAC9B,KAAK,EAAE,CAAC,mBAAmB,EAAE,aAAa,CAAC;SAC3C;KACD;CACD,CACD,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1080" zoomAndPan="magnify" viewBox="0 0 810 810" height="1080" preserveAspectRatio="xMidYMid meet" version="1.0" style="background: none;">
|
|
2
|
+
<defs>
|
|
3
|
+
<linearGradient id="robot-gradient" x1="0%" y1="100%" x2="100%" y2="0%">
|
|
4
|
+
<stop offset="0%" stop-color="#a857fd" />
|
|
5
|
+
<stop offset="100%" stop-color="#60c5d1" />
|
|
6
|
+
</linearGradient>
|
|
7
|
+
</defs>
|
|
8
|
+
<g>
|
|
9
|
+
<path fill="url(#robot-gradient)" d="M 405 65.804688 C 427.402344 65.804688 445.5 83.902344 445.5 106.304688 L 445.5 187.304688 L 607.5 187.304688 C 652.175781 187.304688 688.5 223.625 688.5 268.304688 L 688.5 632.804688 C 688.5 677.480469 652.175781 713.804688 607.5 713.804688 L 202.5 713.804688 C 157.824219 713.804688 121.5 677.480469 121.5 632.804688 L 121.5 268.304688 C 121.5 223.625 157.824219 187.304688 202.5 187.304688 L 364.5 187.304688 L 364.5 106.304688 C 364.5 83.902344 382.597656 65.804688 405 65.804688 Z M 263.25 551.804688 C 252.113281 551.804688 243 560.914062 243 572.054688 C 243 583.191406 252.113281 592.304688 263.25 592.304688 L 303.75 592.304688 C 314.886719 592.304688 324 583.191406 324 572.054688 C 324 560.914062 314.886719 551.804688 303.75 551.804688 Z M 384.75 551.804688 C 373.613281 551.804688 364.5 560.914062 364.5 572.054688 C 364.5 583.191406 373.613281 592.304688 384.75 592.304688 L 425.25 592.304688 C 436.386719 592.304688 445.5 583.191406 445.5 572.054688 C 445.5 560.914062 436.386719 551.804688 425.25 551.804688 Z M 506.25 551.804688 C 495.113281 551.804688 486 560.914062 486 572.054688 C 486 583.191406 495.113281 592.304688 506.25 592.304688 L 546.75 592.304688 C 557.886719 592.304688 567 583.191406 567 572.054688 C 567 560.914062 557.886719 551.804688 546.75 551.804688 Z M 334.125 389.804688 C 334.125 361.832031 311.46875 339.179688 283.5 339.179688 C 255.53125 339.179688 232.875 361.832031 232.875 389.804688 C 232.875 417.773438 255.53125 440.429688 283.5 440.429688 C 311.46875 440.429688 334.125 417.773438 334.125 389.804688 Z M 526.5 440.429688 C 554.46875 440.429688 577.125 417.773438 577.125 389.804688 C 577.125 361.832031 554.46875 339.179688 526.5 339.179688 C 498.53125 339.179688 475.875 361.832031 475.875 389.804688 C 475.875 417.773438 498.53125 440.429688 526.5 440.429688 Z M 60.75 349.304688 L 81 349.304688 L 81 592.304688 L 60.75 592.304688 C 27.210938 592.304688 0 565.09375 0 531.554688 L 0 410.054688 C 0 376.515625 27.210938 349.304688 60.75 349.304688 Z M 749.25 349.304688 C 782.789062 349.304688 810 376.515625 810 410.054688 L 810 531.554688 C 810 565.09375 782.789062 592.304688 749.25 592.304688 L 729 592.304688 L 729 349.304688 Z" fill-opacity="1" fill-rule="nonzero" />
|
|
10
|
+
</g>
|
|
11
|
+
</svg>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1080" zoomAndPan="magnify" viewBox="0 0 810 810" height="1080" preserveAspectRatio="xMidYMid meet" version="1.0" style="background: none;">
|
|
2
|
+
<defs>
|
|
3
|
+
<linearGradient id="robot-gradient" x1="0%" y1="100%" x2="100%" y2="0%">
|
|
4
|
+
<stop offset="0%" stop-color="#a857fd" />
|
|
5
|
+
<stop offset="100%" stop-color="#ff793d" />
|
|
6
|
+
</linearGradient>
|
|
7
|
+
</defs>
|
|
8
|
+
<g>
|
|
9
|
+
<path fill="url(#robot-gradient)" d="M 405 65.804688 C 427.402344 65.804688 445.5 83.902344 445.5 106.304688 L 445.5 187.304688 L 607.5 187.304688 C 652.175781 187.304688 688.5 223.625 688.5 268.304688 L 688.5 632.804688 C 688.5 677.480469 652.175781 713.804688 607.5 713.804688 L 202.5 713.804688 C 157.824219 713.804688 121.5 677.480469 121.5 632.804688 L 121.5 268.304688 C 121.5 223.625 157.824219 187.304688 202.5 187.304688 L 364.5 187.304688 L 364.5 106.304688 C 364.5 83.902344 382.597656 65.804688 405 65.804688 Z M 263.25 551.804688 C 252.113281 551.804688 243 560.914062 243 572.054688 C 243 583.191406 252.113281 592.304688 263.25 592.304688 L 303.75 592.304688 C 314.886719 592.304688 324 583.191406 324 572.054688 C 324 560.914062 314.886719 551.804688 303.75 551.804688 Z M 384.75 551.804688 C 373.613281 551.804688 364.5 560.914062 364.5 572.054688 C 364.5 583.191406 373.613281 592.304688 384.75 592.304688 L 425.25 592.304688 C 436.386719 592.304688 445.5 583.191406 445.5 572.054688 C 445.5 560.914062 436.386719 551.804688 425.25 551.804688 Z M 506.25 551.804688 C 495.113281 551.804688 486 560.914062 486 572.054688 C 486 583.191406 495.113281 592.304688 506.25 592.304688 L 546.75 592.304688 C 557.886719 592.304688 567 583.191406 567 572.054688 C 567 560.914062 557.886719 551.804688 546.75 551.804688 Z M 334.125 389.804688 C 334.125 361.832031 311.46875 339.179688 283.5 339.179688 C 255.53125 339.179688 232.875 361.832031 232.875 389.804688 C 232.875 417.773438 255.53125 440.429688 283.5 440.429688 C 311.46875 440.429688 334.125 417.773438 334.125 389.804688 Z M 526.5 440.429688 C 554.46875 440.429688 577.125 417.773438 577.125 389.804688 C 577.125 361.832031 554.46875 339.179688 526.5 339.179688 C 498.53125 339.179688 475.875 361.832031 475.875 389.804688 C 475.875 417.773438 498.53125 440.429688 526.5 440.429688 Z M 60.75 349.304688 L 81 349.304688 L 81 592.304688 L 60.75 592.304688 C 27.210938 592.304688 0 565.09375 0 531.554688 L 0 410.054688 C 0 376.515625 27.210938 349.304688 60.75 349.304688 Z M 749.25 349.304688 C 782.789062 349.304688 810 376.515625 810 410.054688 L 810 531.554688 C 810 565.09375 782.789062 592.304688 749.25 592.304688 L 729 592.304688 L 729 349.304688 Z" fill-opacity="1" fill-rule="nonzero" />
|
|
10
|
+
</g>
|
|
11
|
+
</svg>
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.generateDescription = generateDescription;
|
|
4
|
+
const properties_1 = require("../config/properties");
|
|
5
|
+
function generateDescription(agentType, customizations) {
|
|
6
|
+
return {
|
|
7
|
+
displayName: 'Simple Agent',
|
|
8
|
+
name: agentType,
|
|
9
|
+
group: [],
|
|
10
|
+
version: 1,
|
|
11
|
+
description: 'Agent capable of using tools, subagents, and structured output.',
|
|
12
|
+
defaults: { name: 'Simple Agent' },
|
|
13
|
+
subtitle: '={{ ($parameter.name ? `${$parameter.name} | ` : ``) + ($parameter.modelId.split("/")[1] || $parameter.modelId) }}',
|
|
14
|
+
icon: {
|
|
15
|
+
light: 'file:../shared/gradientRobot.svg',
|
|
16
|
+
dark: 'file:../shared/gradientRobot.svg',
|
|
17
|
+
},
|
|
18
|
+
inputs: agentType === 'subAgent'
|
|
19
|
+
? [{ type: 'ai_tool', displayName: 'Tools' }]
|
|
20
|
+
: [
|
|
21
|
+
{ type: 'main' },
|
|
22
|
+
{ type: 'ai_tool', displayName: 'Tools' },
|
|
23
|
+
{ type: 'ai_memory', displayName: 'Memory', maxConnections: 1 },
|
|
24
|
+
],
|
|
25
|
+
outputs: agentType === 'subAgent' ? [{ type: 'ai_tool', displayName: 'Tool' }] : [{ type: 'main' }],
|
|
26
|
+
credentials: [
|
|
27
|
+
{
|
|
28
|
+
name: 'simpleOpenAiApi',
|
|
29
|
+
required: true,
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
properties: [...(0, properties_1.getProperties)()],
|
|
33
|
+
...customizations,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=descriptionGenerator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"descriptionGenerator.js","sourceRoot":"","sources":["../../../../nodes/shared/config/descriptionGenerator.ts"],"names":[],"mappings":";;AAIA,kDAqCC;AAvCD,qDAAqD;AAErD,SAAgB,mBAAmB,CAClC,SAAiB,EACjB,cAA6C;IAE7C,OAAO;QACN,WAAW,EAAE,cAAc;QAC3B,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,EAAE;QACT,OAAO,EAAE,CAAC;QACV,WAAW,EAAE,iEAAiE;QAC9E,QAAQ,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE;QAClC,QAAQ,EACP,oHAAoH;QACrH,IAAI,EAAE;YACL,KAAK,EAAE,kCAAkC;YACzC,IAAI,EAAE,kCAAkC;SACxC;QAED,MAAM,EACL,SAAS,KAAK,UAAU;YACvB,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC;YAC7C,CAAC,CAAC;gBACA,EAAE,IAAI,EAAE,MAAM,EAAE;gBAChB,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,OAAO,EAAE;gBACzC,EAAE,IAAI,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,cAAc,EAAE,CAAC,EAAE;aAC/D;QACJ,OAAO,EACN,SAAS,KAAK,UAAU,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;QAC3F,WAAW,EAAE;YACZ;gBACC,IAAI,EAAE,iBAAiB;gBACvB,QAAQ,EAAE,IAAI;aACd;SACD;QACD,UAAU,EAAE,CAAC,GAAG,IAAA,0BAAa,GAAE,CAAC;QAChC,GAAG,cAAc;KACjB,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { IExecuteFunctions, IDataObject } from 'n8n-workflow';
|
|
2
|
+
import { VisualEditorProperties } from '../processing/visualEditor';
|
|
3
|
+
import { Message } from '../core/messages/types';
|
|
4
|
+
export type ExtractedParameters = {
|
|
5
|
+
model: string;
|
|
6
|
+
fallbackModel: string;
|
|
7
|
+
agentType: string;
|
|
8
|
+
rawMessagesToSend: Message[];
|
|
9
|
+
responseFormat: string;
|
|
10
|
+
addToOutput: string[];
|
|
11
|
+
outputJsonSchemaDefinition: string;
|
|
12
|
+
structuredOutputToolsMode: boolean;
|
|
13
|
+
structuredOutputProperties: VisualEditorProperties[];
|
|
14
|
+
structuredOutputName: string;
|
|
15
|
+
structuredOutputDescription: string;
|
|
16
|
+
structuredOutputIsArray: boolean;
|
|
17
|
+
structuredOutputArrayName: string;
|
|
18
|
+
structuredOutputArrayDescription: string;
|
|
19
|
+
options: IDataObject;
|
|
20
|
+
maxToolsIterations: number;
|
|
21
|
+
customParameters: string | IDataObject;
|
|
22
|
+
saveToolCallsInChatMemory: boolean;
|
|
23
|
+
loadToolCallsFromChatMemory: boolean;
|
|
24
|
+
abortSignal: AbortSignal | undefined;
|
|
25
|
+
};
|
|
26
|
+
export declare function extractParameters(executeFunctions: IExecuteFunctions, index: number): ExtractedParameters;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.extractParameters = extractParameters;
|
|
4
|
+
function extractParameters(executeFunctions, index) {
|
|
5
|
+
var _a, _b;
|
|
6
|
+
const get = (path, defaultValue, options) => executeFunctions.getNodeParameter(path, index, defaultValue, options);
|
|
7
|
+
const rawMessages = get('messagesToSend.values', []);
|
|
8
|
+
const chatMemoryMessage = rawMessages.find((msg) => msg.role === 'chatMemoryRole');
|
|
9
|
+
const saveToolCallsInChatMemory = (_a = chatMemoryMessage === null || chatMemoryMessage === void 0 ? void 0 : chatMemoryMessage.saveToolCallsInChatMemory) !== null && _a !== void 0 ? _a : true;
|
|
10
|
+
const loadToolCallsFromChatMemory = (_b = chatMemoryMessage === null || chatMemoryMessage === void 0 ? void 0 : chatMemoryMessage.loadToolCallsFromChatMemory) !== null && _b !== void 0 ? _b : true;
|
|
11
|
+
const params = {
|
|
12
|
+
model: get('modelId', '', { extractValue: true }),
|
|
13
|
+
fallbackModel: get('options.fallbackModelId', '', { extractValue: true }),
|
|
14
|
+
agentType: get('agentType', 'coreAgent'),
|
|
15
|
+
rawMessagesToSend: rawMessages,
|
|
16
|
+
responseFormat: get('responseFormat', ''),
|
|
17
|
+
addToOutput: get('addToOutput', []),
|
|
18
|
+
outputJsonSchemaDefinition: get('outputJsonSchemaDefinition', ''),
|
|
19
|
+
structuredOutputToolsMode: get('structuredOutputToolsMode', false),
|
|
20
|
+
structuredOutputProperties: get('structuredOutputProperties.values', []),
|
|
21
|
+
structuredOutputName: get('structuredOutputName', ''),
|
|
22
|
+
structuredOutputDescription: get('structuredOutputDescription', ''),
|
|
23
|
+
structuredOutputIsArray: get('structuredOutputIsArray', false),
|
|
24
|
+
structuredOutputArrayName: get('structuredOutputArrayName', ''),
|
|
25
|
+
structuredOutputArrayDescription: get('structuredOutputArrayDescription', ''),
|
|
26
|
+
options: get('options', {}),
|
|
27
|
+
maxToolsIterations: get('options.maxToolsIterations', 15),
|
|
28
|
+
customParameters: get('options.customParameters', '{}'),
|
|
29
|
+
saveToolCallsInChatMemory,
|
|
30
|
+
loadToolCallsFromChatMemory,
|
|
31
|
+
abortSignal: executeFunctions.getExecutionCancelSignal(),
|
|
32
|
+
};
|
|
33
|
+
return params;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=parameters.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../../nodes/shared/config/parameters.ts"],"names":[],"mappings":";;AA8BA,8CAyCC;AAzCD,SAAgB,iBAAiB,CAChC,gBAAmC,EACnC,KAAa;;IAEb,MAAM,GAAG,GAAG,CAAI,IAAY,EAAE,YAAe,EAAE,OAAkC,EAAE,EAAE,CACpF,gBAAgB,CAAC,gBAAgB,CAAC,IAAI,EAAE,KAAK,EAAE,YAAY,EAAE,OAAO,CAAM,CAAC;IAE5E,MAAM,WAAW,GAAG,GAAG,CAAY,uBAAuB,EAAE,EAAE,CAAC,CAAC;IAGhE,MAAM,iBAAiB,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,KAAK,gBAAgB,CAAC,CAAC;IACnF,MAAM,yBAAyB,GAAG,MAAA,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,yBAAyB,mCAAI,IAAI,CAAC;IACvF,MAAM,2BAA2B,GAAG,MAAA,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,2BAA2B,mCAAI,IAAI,CAAC;IAE3F,MAAM,MAAM,GAAwB;QACnC,KAAK,EAAE,GAAG,CAAS,SAAS,EAAE,EAAE,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC;QACzD,aAAa,EAAE,GAAG,CAAS,yBAAyB,EAAE,EAAE,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC;QACjF,SAAS,EAAE,GAAG,CAAS,WAAW,EAAE,WAAW,CAAC;QAChD,iBAAiB,EAAE,WAAW;QAC9B,cAAc,EAAE,GAAG,CAAS,gBAAgB,EAAE,EAAE,CAAC;QACjD,WAAW,EAAE,GAAG,CAAW,aAAa,EAAE,EAAE,CAAC;QAC7C,0BAA0B,EAAE,GAAG,CAAS,4BAA4B,EAAE,EAAE,CAAC;QACzE,yBAAyB,EAAE,GAAG,CAAU,2BAA2B,EAAE,KAAK,CAAC;QAC3E,0BAA0B,EAAE,GAAG,CAC9B,mCAAmC,EACnC,EAAE,CACF;QACD,oBAAoB,EAAE,GAAG,CAAS,sBAAsB,EAAE,EAAE,CAAC;QAC7D,2BAA2B,EAAE,GAAG,CAAS,6BAA6B,EAAE,EAAE,CAAC;QAC3E,uBAAuB,EAAE,GAAG,CAAU,yBAAyB,EAAE,KAAK,CAAC;QACvE,yBAAyB,EAAE,GAAG,CAAS,2BAA2B,EAAE,EAAE,CAAC;QACvE,gCAAgC,EAAE,GAAG,CAAS,kCAAkC,EAAE,EAAE,CAAC;QACrF,OAAO,EAAE,GAAG,CAAc,SAAS,EAAE,EAAE,CAAC;QACxC,kBAAkB,EAAE,GAAG,CAAS,4BAA4B,EAAE,EAAE,CAAC;QACjE,gBAAgB,EAAE,GAAG,CAAuB,0BAA0B,EAAE,IAAI,CAAC;QAC7E,yBAAyB;QACzB,2BAA2B;QAC3B,WAAW,EAAE,gBAAgB,CAAC,wBAAwB,EAAE;KACxD,CAAC;IAEF,OAAO,MAAM,CAAC;AACf,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getProperties = getProperties;
|
|
4
|
+
const model_1 = require("./model");
|
|
5
|
+
const messages_1 = require("./messages");
|
|
6
|
+
const output_1 = require("./output");
|
|
7
|
+
const options_1 = require("./options");
|
|
8
|
+
function getProperties() {
|
|
9
|
+
return [
|
|
10
|
+
...model_1.modelProperties,
|
|
11
|
+
...messages_1.messagesProperties,
|
|
12
|
+
...output_1.outputProperties,
|
|
13
|
+
...options_1.optionsProperties,
|
|
14
|
+
];
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/shared/config/properties/index.ts"],"names":[],"mappings":";;AAMA,sCAOC;AAZD,mCAA0C;AAC1C,yCAAgD;AAChD,qCAA4C;AAC5C,uCAA8C;AAE9C,SAAgB,aAAa;IAC5B,OAAO;QACN,GAAG,uBAAe;QAClB,GAAG,6BAAkB;QACrB,GAAG,yBAAgB;QACnB,GAAG,2BAAiB;KACpB,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memory.js","sourceRoot":"","sources":["../../../../../nodes/shared/config/properties/memory.ts"],"names":[],"mappings":";;;AAEa,QAAA,gBAAgB,GAAsB,EAGlD,CAAC"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.messagesProperties = void 0;
|
|
4
|
+
exports.messagesProperties = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Messages',
|
|
7
|
+
name: 'messagesToSend',
|
|
8
|
+
type: 'fixedCollection',
|
|
9
|
+
typeOptions: {
|
|
10
|
+
sortable: true,
|
|
11
|
+
multipleValues: true,
|
|
12
|
+
},
|
|
13
|
+
placeholder: 'Add Message',
|
|
14
|
+
default: { values: [{ content: '' }] },
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
displayName: 'Values',
|
|
18
|
+
name: 'values',
|
|
19
|
+
values: [
|
|
20
|
+
{
|
|
21
|
+
displayName: 'Role',
|
|
22
|
+
name: 'role',
|
|
23
|
+
type: 'options',
|
|
24
|
+
options: [
|
|
25
|
+
{
|
|
26
|
+
name: '🤖 Assistant',
|
|
27
|
+
value: 'assistant',
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
name: '🖥️ System',
|
|
31
|
+
value: 'system',
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: '🙋♂️ User',
|
|
35
|
+
value: 'user',
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
name: '💬 Chat History',
|
|
39
|
+
value: 'chatHistoryRole',
|
|
40
|
+
description: 'Array of message objects in JSON format',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
name: '💭 Chat Memory',
|
|
44
|
+
value: 'chatMemoryRole',
|
|
45
|
+
description: 'Retrieve messages from a Memory sub-node',
|
|
46
|
+
},
|
|
47
|
+
],
|
|
48
|
+
default: 'user',
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
displayName: 'Content',
|
|
52
|
+
name: 'content',
|
|
53
|
+
type: 'string',
|
|
54
|
+
default: '',
|
|
55
|
+
description: "The message's content. Connect to a Chat Trigger node with ={{ $json.chatInput }}.",
|
|
56
|
+
typeOptions: {
|
|
57
|
+
rows: 2,
|
|
58
|
+
},
|
|
59
|
+
displayOptions: {
|
|
60
|
+
hide: {
|
|
61
|
+
role: ['chatHistoryRole', 'chatMemoryRole'],
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
displayName: 'JSON Messages',
|
|
67
|
+
name: 'chatHistoryJson',
|
|
68
|
+
type: 'json',
|
|
69
|
+
default: '',
|
|
70
|
+
description: "A JSON array of objects with 'role' and 'content' keys. Invalid syntax defaults to user message content, while an empty array is ignored. You may send image or audio messages, if supported by the model (<a href='https://platform.openai.com/docs/api-reference/chat/create' target='_blank'>learn more</a>). Access chat history with ={{ $json.chat_history || [] }}",
|
|
71
|
+
typeOptions: {
|
|
72
|
+
rows: 2,
|
|
73
|
+
},
|
|
74
|
+
displayOptions: {
|
|
75
|
+
show: {
|
|
76
|
+
role: ['chatHistoryRole'],
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
displayName: 'Save Tool Calls',
|
|
82
|
+
name: 'saveToolCallsInChatMemory',
|
|
83
|
+
type: 'boolean',
|
|
84
|
+
default: true,
|
|
85
|
+
description: 'Whether to save tool calls in Chat Memory',
|
|
86
|
+
displayOptions: {
|
|
87
|
+
show: {
|
|
88
|
+
role: ['chatMemoryRole'],
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
displayName: 'Load Tool Calls',
|
|
94
|
+
name: 'loadToolCallsFromChatMemory',
|
|
95
|
+
type: 'boolean',
|
|
96
|
+
default: true,
|
|
97
|
+
description: 'Whether to load tool calls from Chat Memory',
|
|
98
|
+
displayOptions: {
|
|
99
|
+
show: {
|
|
100
|
+
role: ['chatMemoryRole'],
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
],
|
|
105
|
+
},
|
|
106
|
+
],
|
|
107
|
+
},
|
|
108
|
+
];
|
|
109
|
+
//# sourceMappingURL=messages.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../../../../../nodes/shared/config/properties/messages.ts"],"names":[],"mappings":";;;AAEa,QAAA,kBAAkB,GAAsB;IACpD;QACC,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,iBAAiB;QACvB,WAAW,EAAE;YACZ,QAAQ,EAAE,IAAI;YACd,cAAc,EAAE,IAAI;SACpB;QACD,WAAW,EAAE,aAAa;QAC1B,OAAO,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,EAAE;QACtC,OAAO,EAAE;YACR;gBACC,WAAW,EAAE,QAAQ;gBACrB,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE;oBACP;wBACC,WAAW,EAAE,MAAM;wBACnB,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,SAAS;wBAEf,OAAO,EAAE;4BACR;gCACC,IAAI,EAAE,cAAc;gCACpB,KAAK,EAAE,WAAW;6BAElB;4BAC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,SAAS;wBACf,OAAO,EAAE,IAAI;wBAEb,WAAW,EAAE,6CAA6C;wBAC1D,cAAc,EAAE;4BACf,IAAI,EAAE;gCACL,IAAI,EAAE,CAAC,gBAAgB,CAAC;6BACxB;yBACD;qBACD;iBACD;aACD;SACD;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.modelProperties = void 0;
|
|
4
|
+
exports.modelProperties = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Model',
|
|
7
|
+
name: 'modelId',
|
|
8
|
+
type: 'resourceLocator',
|
|
9
|
+
default: { mode: 'list', value: 'openai/gpt-5-mini' },
|
|
10
|
+
required: true,
|
|
11
|
+
description: `Read the <a href="https://platform.openai.com/docs/models" target="_blank">OpenAI's</a> or <a href="https://openrouter.ai/models" target="_blank">OpenRouter's</a> models overview.</a>`,
|
|
12
|
+
modes: [
|
|
13
|
+
{
|
|
14
|
+
displayName: 'From List',
|
|
15
|
+
name: 'list',
|
|
16
|
+
type: 'list',
|
|
17
|
+
typeOptions: {
|
|
18
|
+
searchListMethod: 'modelSearch',
|
|
19
|
+
searchable: true,
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
displayName: 'ID',
|
|
24
|
+
name: 'id',
|
|
25
|
+
type: 'string',
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
},
|
|
29
|
+
];
|
|
30
|
+
//# sourceMappingURL=model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../../../../nodes/shared/config/properties/model.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAsB;IACjD;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,iBAAiB;QACvB,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,mBAAmB,EAAE;QACrD,QAAQ,EAAE,IAAI;QAEd,WAAW,EAAE,yLAAyL;QACtM,KAAK,EAAE;YACN;gBACC,WAAW,EAAE,WAAW;gBACxB,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,MAAM;gBACZ,WAAW,EAAE;oBACZ,gBAAgB,EAAE,aAAa;oBAC/B,UAAU,EAAE,IAAI;iBAChB;aACD;YACD;gBACC,WAAW,EAAE,IAAI;gBACjB,IAAI,EAAE,IAAI;gBACV,IAAI,EAAE,QAAQ;aAEd;SACD;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.optionsProperties = void 0;
|
|
4
|
+
exports.optionsProperties = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Options',
|
|
7
|
+
name: 'options',
|
|
8
|
+
placeholder: 'Add Option',
|
|
9
|
+
type: 'collection',
|
|
10
|
+
default: {},
|
|
11
|
+
options: [
|
|
12
|
+
{
|
|
13
|
+
displayName: 'Custom Parameters',
|
|
14
|
+
name: 'customParameters',
|
|
15
|
+
default: '{}',
|
|
16
|
+
description: 'Updates the request body with any parameter in the <a href="https://platform.openai.com/docs/api-reference/chat/create" target="_blank">OpenAI</a> or <a href="https://openrouter.ai/docs/api-reference/parameters" target="_blank">OpenRouter</a> API Reference docs',
|
|
17
|
+
type: 'json',
|
|
18
|
+
typeOptions: { rows: 5 },
|
|
19
|
+
validateType: 'object',
|
|
20
|
+
ignoreValidationDuringExecution: true,
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
displayName: 'Fallback Model',
|
|
24
|
+
name: 'fallbackModelId',
|
|
25
|
+
type: 'resourceLocator',
|
|
26
|
+
default: { mode: 'list', value: 'openai/gpt-5' },
|
|
27
|
+
description: `Read the <a href="https://platform.openai.com/docs/models" target="_blank">OpenAI's</a> or <a href="https://openrouter.ai/models" target="_blank">OpenRouter's</a> models overview.</a>`,
|
|
28
|
+
modes: [
|
|
29
|
+
{
|
|
30
|
+
displayName: 'From List',
|
|
31
|
+
name: 'list',
|
|
32
|
+
type: 'list',
|
|
33
|
+
typeOptions: {
|
|
34
|
+
searchListMethod: 'modelSearch',
|
|
35
|
+
searchable: true,
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
displayName: 'ID',
|
|
40
|
+
name: 'id',
|
|
41
|
+
type: 'string',
|
|
42
|
+
placeholder: 'gpt-5',
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
displayName: 'Frequency Penalty',
|
|
48
|
+
name: 'frequency_penalty',
|
|
49
|
+
default: 0,
|
|
50
|
+
typeOptions: { minValue: -2, maxValue: 2, numberPrecision: 1 },
|
|
51
|
+
description: "Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim",
|
|
52
|
+
type: 'number',
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
displayName: 'Max Tokens',
|
|
56
|
+
name: 'max_token_completions',
|
|
57
|
+
default: 1000,
|
|
58
|
+
description: 'The maximum number of tokens to generate in the completion',
|
|
59
|
+
type: 'number',
|
|
60
|
+
typeOptions: {
|
|
61
|
+
maxValue: 32768,
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
displayName: 'Max Tool Calls Iterations',
|
|
66
|
+
name: 'maxToolsIterations',
|
|
67
|
+
type: 'number',
|
|
68
|
+
default: 15,
|
|
69
|
+
description: 'The maximum number of tool iteration cycles the agent will run before stopping. A single iteration can contain multiple tool calls. Set to -1 for no limit, 0 for immediate response without tool calls.',
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
displayName: 'Number of Completions',
|
|
73
|
+
name: 'n',
|
|
74
|
+
default: 1,
|
|
75
|
+
description: 'How many completions to generate for each prompt. Note: Not recommended when using connected tools, because extra tool calls and tool outputs are ignored. Because this parameter generates many completions, it can quickly consume your token quota. Use carefully and ensure that you have reasonable settings for max_tokens and stop.',
|
|
76
|
+
type: 'number',
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
displayName: 'Presence Penalty',
|
|
80
|
+
name: 'presence_penalty',
|
|
81
|
+
default: 0,
|
|
82
|
+
typeOptions: { minValue: -2, maxValue: 2, numberPrecision: 1 },
|
|
83
|
+
description: "Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics",
|
|
84
|
+
type: 'number',
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
displayName: 'Temperature',
|
|
88
|
+
name: 'temperature',
|
|
89
|
+
default: 1,
|
|
90
|
+
typeOptions: { minValue: 0, maxValue: 2, numberPrecision: 1 },
|
|
91
|
+
description: 'What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. Read the <a href="https://platform.openai.com/docs/api-reference/chat/create" target="_blank">API Reference docs</a>',
|
|
92
|
+
type: 'number',
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
displayName: 'Top P',
|
|
96
|
+
name: 'top_p',
|
|
97
|
+
default: 1,
|
|
98
|
+
typeOptions: { minValue: 0, maxValue: 1, numberPrecision: 1 },
|
|
99
|
+
description: 'An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.',
|
|
100
|
+
type: 'number',
|
|
101
|
+
},
|
|
102
|
+
],
|
|
103
|
+
},
|
|
104
|
+
];
|
|
105
|
+
//# sourceMappingURL=options.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../../nodes/shared/config/properties/options.ts"],"names":[],"mappings":";;;AAEa,QAAA,iBAAiB,GAAsB;IACnD;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,WAAW,EAAE,YAAY;QACz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