n8n-nodes-sap-ai-core
Version:
n8n nodes for SAP AI Core LLM and embeddings integration
26 lines • 678 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.N8nTool = void 0;
const tools_1 = require("@langchain/core/tools");
/**
* N8N specific tool implementation
*/
class N8nTool {
constructor(config) {
this.name = config.name;
this.description = config.description;
this.func = config.func;
}
/**
* Convert to DynamicTool for compatibility
*/
asDynamicTool() {
return new tools_1.DynamicTool({
name: this.name,
description: this.description,
func: this.func.bind(this)
});
}
}
exports.N8nTool = N8nTool;
//# sourceMappingURL=N8nTool.js.map