mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
feat(AI Transform Node): Telemetry (no-changelog) (#10398)
This commit is contained in:
@@ -13,6 +13,7 @@ import type {
|
||||
import { ApplicationError } from './errors/application.error';
|
||||
import {
|
||||
AGENT_LANGCHAIN_NODE_TYPE,
|
||||
AI_TRANSFORM_NODE_TYPE,
|
||||
CHAIN_LLM_LANGCHAIN_NODE_TYPE,
|
||||
CHAIN_SUMMARIZATION_LANGCHAIN_NODE_TYPE,
|
||||
EXECUTE_WORKFLOW_NODE_TYPE,
|
||||
@@ -207,7 +208,9 @@ export function generateNodesGraph(
|
||||
nodeItem.src_node_id = options.nodeIdMap[node.id];
|
||||
}
|
||||
|
||||
if (node.type === AGENT_LANGCHAIN_NODE_TYPE) {
|
||||
if (node.type === AI_TRANSFORM_NODE_TYPE && options?.isCloudDeployment) {
|
||||
nodeItem.prompts = { instructions: node.parameters.instructions as string };
|
||||
} else if (node.type === AGENT_LANGCHAIN_NODE_TYPE) {
|
||||
nodeItem.agent = (node.parameters.agent as string) ?? 'conversationalAgent';
|
||||
} else if (node.type === MERGE_NODE_TYPE) {
|
||||
nodeItem.operation = node.parameters.mode as string;
|
||||
|
||||
Reference in New Issue
Block a user