n8n-nodes-ai-agent-langfuse 0.1.14 → 0.1.16
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.
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AgentWithLangfuse = void 0;
|
|
4
|
-
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
4
|
const descriptions_1 = require("./src/utils/descriptions");
|
|
6
5
|
const description_1 = require("./V2/description");
|
|
7
6
|
const execute_1 = require("./V2/execute");
|
|
7
|
+
const utils_1 = require("./V2/utils");
|
|
8
8
|
class AgentWithLangfuse {
|
|
9
9
|
constructor() {
|
|
10
10
|
this.description = {
|
|
@@ -30,41 +30,13 @@ class AgentWithLangfuse {
|
|
|
30
30
|
],
|
|
31
31
|
},
|
|
32
32
|
},
|
|
33
|
-
inputs:
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
filter: {
|
|
41
|
-
excludedNodes: [
|
|
42
|
-
'@n8n/n8n-nodes-langchain.lmCohere',
|
|
43
|
-
'@n8n/n8n-nodes-langchain.lmOllama',
|
|
44
|
-
'n8n/n8n-nodes-langchain.lmOpenAi',
|
|
45
|
-
'@n8n/n8n-nodes-langchain.lmOpenHuggingFaceInference',
|
|
46
|
-
],
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
type: 'ai_languageModel',
|
|
51
|
-
displayName: 'Fallback Model',
|
|
52
|
-
required: false,
|
|
53
|
-
maxConnections: 1,
|
|
54
|
-
filter: {
|
|
55
|
-
excludedNodes: [
|
|
56
|
-
'@n8n/n8n-nodes-langchain.lmCohere',
|
|
57
|
-
'@n8n/n8n-nodes-langchain.lmOllama',
|
|
58
|
-
'n8n/n8n-nodes-langchain.lmOpenAi',
|
|
59
|
-
'@n8n/n8n-nodes-langchain.lmOpenHuggingFaceInference',
|
|
60
|
-
],
|
|
61
|
-
},
|
|
62
|
-
},
|
|
63
|
-
{ type: 'ai_memory', displayName: 'Memory' },
|
|
64
|
-
{ type: 'ai_tool', displayName: 'Tool' },
|
|
65
|
-
{ type: 'ai_outputParser', displayName: 'Output Parser', maxConnections: 1 },
|
|
66
|
-
],
|
|
67
|
-
outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
33
|
+
inputs: `={{
|
|
34
|
+
((hasOutputParser, needsFallback) => {
|
|
35
|
+
${utils_1.getInputs.toString()};
|
|
36
|
+
return getInputs(true, hasOutputParser, needsFallback);
|
|
37
|
+
})($parameter.hasOutputParser === undefined || $parameter.hasOutputParser === true, $parameter.needsFallback !== undefined && $parameter.needsFallback === true)
|
|
38
|
+
}}`,
|
|
39
|
+
outputs: ['main'],
|
|
68
40
|
credentials: [
|
|
69
41
|
{ name: 'langfuseApi', required: true },
|
|
70
42
|
],
|
|
@@ -113,7 +85,7 @@ class AgentWithLangfuse {
|
|
|
113
85
|
noDataExpression: true,
|
|
114
86
|
},
|
|
115
87
|
{
|
|
116
|
-
displayName: `Connect an <a data-action='openSelectiveNodeCreator' data-action-parameter-connectiontype='
|
|
88
|
+
displayName: `Connect an <a data-action='openSelectiveNodeCreator' data-action-parameter-connectiontype='ai_outputParser'>output parser</a> on the canvas to specify the output format you require`,
|
|
117
89
|
name: 'notice',
|
|
118
90
|
type: 'notice',
|
|
119
91
|
default: '',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentWithLangfuse.node.js","sourceRoot":"","sources":["../../../nodes/AgentWithLangfuse/AgentWithLangfuse.node.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"AgentWithLangfuse.node.js","sourceRoot":"","sources":["../../../nodes/AgentWithLangfuse/AgentWithLangfuse.node.ts"],"names":[],"mappings":";;;AAOA,2DAA8F;AAE9F,kDAA2D;AAC3D,0CAAiD;AACjD,sCAAuC;AAEv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