@rjsebening/n8n-nodes-learningsuite 1.2.1 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/nodes/LearningSuite/LearningSuite.node.d.ts +2 -0
- package/dist/nodes/LearningSuite/LearningSuite.node.js +2 -0
- package/dist/nodes/LearningSuite/descriptions/ai.properties.js +2 -2
- package/dist/nodes/LearningSuite/descriptions/webhook.sampleData.properties.js +8 -6
- package/dist/nodes/LearningSuite/execute/ai.handlers.js +2 -2
- package/dist/nodes/LearningSuite/methods/loadOptions/ai.loadOptions.d.ts +3 -0
- package/dist/nodes/LearningSuite/methods/loadOptions/ai.loadOptions.js +11 -0
- package/package.json +1 -1
|
@@ -55,6 +55,8 @@ export declare class LearningSuite implements INodeType {
|
|
|
55
55
|
community_getBadges(this: import("n8n-workflow").ILoadOptionsFunctions): Promise<import("n8n-workflow").INodePropertyOptions[]>;
|
|
56
56
|
community_getLatestPosts(this: import("n8n-workflow").ILoadOptionsFunctions): Promise<import("n8n-workflow").INodePropertyOptions[]>;
|
|
57
57
|
bundle_getBundles(this: import("n8n-workflow").ILoadOptionsFunctions): Promise<import("n8n-workflow").INodePropertyOptions[]>;
|
|
58
|
+
ai_getAgentActions(this: import("n8n-workflow").ILoadOptionsFunctions): Promise<import("n8n-workflow").INodePropertyOptions[]>;
|
|
59
|
+
ai_getAiAgents(this: import("n8n-workflow").ILoadOptionsFunctions): Promise<import("n8n-workflow").INodePropertyOptions[]>;
|
|
58
60
|
};
|
|
59
61
|
resourceMapping: {
|
|
60
62
|
getTemplateVariablesResourceMapperFields: typeof getTemplateVariablesResourceMapperFields;
|
|
@@ -36,6 +36,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
36
36
|
exports.LearningSuite = void 0;
|
|
37
37
|
const n8n_workflow_1 = require("n8n-workflow");
|
|
38
38
|
// methods - loadOptions
|
|
39
|
+
const loAi = __importStar(require("./methods/loadOptions/ai.loadOptions"));
|
|
39
40
|
const loBundle = __importStar(require("./methods/loadOptions/bundle.loadOptions"));
|
|
40
41
|
const loCommunity = __importStar(require("./methods/loadOptions/community.loadOptions"));
|
|
41
42
|
const loCourse = __importStar(require("./methods/loadOptions/course.loadOptions"));
|
|
@@ -154,6 +155,7 @@ class LearningSuite {
|
|
|
154
155
|
};
|
|
155
156
|
this.methods = {
|
|
156
157
|
loadOptions: {
|
|
158
|
+
...loAi,
|
|
157
159
|
...loBundle,
|
|
158
160
|
...loCommunity,
|
|
159
161
|
...loCourse,
|
|
@@ -13,13 +13,13 @@ exports.aiProperties = [
|
|
|
13
13
|
{
|
|
14
14
|
name: 'Get Agent Actions',
|
|
15
15
|
value: 'getAgentActions',
|
|
16
|
-
description: 'List all agent actions
|
|
16
|
+
description: 'List all agent actions',
|
|
17
17
|
action: 'List agent actions',
|
|
18
18
|
},
|
|
19
19
|
{
|
|
20
20
|
name: 'Get AI Agents',
|
|
21
21
|
value: 'getAiAgents',
|
|
22
|
-
description: 'List all enabled AI agents
|
|
22
|
+
description: 'List all enabled AI agents',
|
|
23
23
|
action: 'List AI agents',
|
|
24
24
|
},
|
|
25
25
|
{
|
|
@@ -12,18 +12,20 @@ exports.webhookSampleDataProperties = [
|
|
|
12
12
|
displayOptions: { show: { sampleDataType: ['agent-action-executed-events'] } },
|
|
13
13
|
options: [
|
|
14
14
|
{
|
|
15
|
-
displayName: 'Tool Key',
|
|
15
|
+
displayName: 'Tool Key Name or ID',
|
|
16
16
|
name: 'toolKey',
|
|
17
|
-
type: '
|
|
17
|
+
type: 'options',
|
|
18
18
|
default: '',
|
|
19
|
-
description: 'Optional tool key to filter agent action executions',
|
|
19
|
+
description: 'Optional tool key to filter agent action executions. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
20
|
+
typeOptions: { loadOptionsMethod: 'ai_getAgentActions' },
|
|
20
21
|
},
|
|
21
22
|
{
|
|
22
|
-
displayName: 'Agent ID',
|
|
23
|
+
displayName: 'Agent Name or ID',
|
|
23
24
|
name: 'agentId',
|
|
24
|
-
type: '
|
|
25
|
+
type: 'options',
|
|
25
26
|
default: '',
|
|
26
|
-
description: 'Optional agent ID to filter agent action executions',
|
|
27
|
+
description: 'Optional agent ID to filter agent action executions. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
28
|
+
typeOptions: { loadOptionsMethod: 'ai_getAiAgents' },
|
|
27
29
|
},
|
|
28
30
|
],
|
|
29
31
|
},
|
|
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.aiHandlers = void 0;
|
|
4
4
|
const shared_1 = require("../shared");
|
|
5
5
|
const getAgentActions = async (ctx) => {
|
|
6
|
-
return await shared_1.lsRequest.call(ctx, 'GET', '/
|
|
6
|
+
return await shared_1.lsRequest.call(ctx, 'GET', '/agent-actions');
|
|
7
7
|
};
|
|
8
8
|
const getAiAgents = async (ctx) => {
|
|
9
|
-
return await shared_1.lsRequest.call(ctx, 'GET', '/ai
|
|
9
|
+
return await shared_1.lsRequest.call(ctx, 'GET', '/ai-agents');
|
|
10
10
|
};
|
|
11
11
|
const ragChat = async (ctx, i) => {
|
|
12
12
|
const body = {
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ILoadOptionsFunctions, INodePropertyOptions } from 'n8n-workflow';
|
|
2
|
+
export declare function ai_getAgentActions(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
|
|
3
|
+
export declare function ai_getAiAgents(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ai_getAgentActions = ai_getAgentActions;
|
|
4
|
+
exports.ai_getAiAgents = ai_getAiAgents;
|
|
5
|
+
const common_1 = require("./common");
|
|
6
|
+
async function ai_getAgentActions() {
|
|
7
|
+
return common_1.fetchOptions.call(this, '/agent-actions', undefined, ['name'], ['toolKey']);
|
|
8
|
+
}
|
|
9
|
+
async function ai_getAiAgents() {
|
|
10
|
+
return common_1.fetchOptions.call(this, '/ai-agents', undefined, ['name'], ['id']);
|
|
11
|
+
}
|