n8n-nodes-ai-agent-langfuse 0.1.15 → 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.
|
@@ -4,6 +4,7 @@ exports.AgentWithLangfuse = void 0;
|
|
|
4
4
|
const descriptions_1 = require("./src/utils/descriptions");
|
|
5
5
|
const description_1 = require("./V2/description");
|
|
6
6
|
const execute_1 = require("./V2/execute");
|
|
7
|
+
const utils_1 = require("./V2/utils");
|
|
7
8
|
class AgentWithLangfuse {
|
|
8
9
|
constructor() {
|
|
9
10
|
this.description = {
|
|
@@ -29,40 +30,12 @@ class AgentWithLangfuse {
|
|
|
29
30
|
],
|
|
30
31
|
},
|
|
31
32
|
},
|
|
32
|
-
inputs:
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
maxConnections: 1,
|
|
39
|
-
filter: {
|
|
40
|
-
excludedNodes: [
|
|
41
|
-
'@n8n/n8n-nodes-langchain.lmCohere',
|
|
42
|
-
'@n8n/n8n-nodes-langchain.lmOllama',
|
|
43
|
-
'n8n/n8n-nodes-langchain.lmOpenAi',
|
|
44
|
-
'@n8n/n8n-nodes-langchain.lmOpenHuggingFaceInference',
|
|
45
|
-
],
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
type: 'ai_languageModel',
|
|
50
|
-
displayName: 'Fallback Model',
|
|
51
|
-
required: false,
|
|
52
|
-
maxConnections: 1,
|
|
53
|
-
filter: {
|
|
54
|
-
excludedNodes: [
|
|
55
|
-
'@n8n/n8n-nodes-langchain.lmCohere',
|
|
56
|
-
'@n8n/n8n-nodes-langchain.lmOllama',
|
|
57
|
-
'n8n/n8n-nodes-langchain.lmOpenAi',
|
|
58
|
-
'@n8n/n8n-nodes-langchain.lmOpenHuggingFaceInference',
|
|
59
|
-
],
|
|
60
|
-
},
|
|
61
|
-
},
|
|
62
|
-
{ type: 'ai_memory', displayName: 'Memory' },
|
|
63
|
-
{ type: 'ai_tool', displayName: 'Tool' },
|
|
64
|
-
{ type: 'ai_outputParser', displayName: 'Output Parser', maxConnections: 1 },
|
|
65
|
-
],
|
|
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
|
+
}}`,
|
|
66
39
|
outputs: ['main'],
|
|
67
40
|
credentials: [
|
|
68
41
|
{ name: 'langfuseApi', required: true },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentWithLangfuse.node.js","sourceRoot":"","sources":["../../../nodes/AgentWithLangfuse/AgentWithLangfuse.node.ts"],"names":[],"mappings":";;;AAOA,2DAA8F;AAE9F,kDAA2D;AAC3D,0CAAiD;
|
|
1
|
+
{"version":3,"file":"AgentWithLangfuse.node.js","sourceRoot":"","sources":["../../../nodes/AgentWithLangfuse/AgentWithLangfuse.node.ts"],"names":[],"mappings":";;;AAOA,2DAA8F;AAE9F,kDAA2D;AAC3D,0CAAiD;AACjD,sCAAuC;AAEvC,MAAa,iBAAiB;IAA9B;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,wBAAwB;YACrC,IAAI,EAAE,mBAAmB;YACzB,IAAI,EAAE,EAAE,KAAK,EAAE,sCAAsC,EAAE,IAAI,EAAE,qCAAqC,EAAE;YACpG,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,WAAW,EAAE,mEAAmE;YAChF,QAAQ,EAAE;gBACT,IAAI,EAAE,wBAAwB;aAC9B;YACD,OAAO,EAAE,CAAC;YACV,KAAK,EAAE;gBACN,UAAU,EAAE,CAAC,IAAI,CAAC;gBAClB,aAAa,EAAE;oBACd,EAAE,EAAE,CAAC,QAAQ,EAAE,YAAY,CAAC;iBA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