refactor(core): Refactor some imports to reduce baseline memory usage (#15916)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2025-06-03 11:23:44 +02:00
committed by GitHub
parent 8abd556597
commit 7c806ff532
133 changed files with 237 additions and 238 deletions

View File

@@ -1,6 +1,6 @@
import { RunnableSequence } from '@langchain/core/runnables';
import { AgentExecutor, createToolCallingAgent } from 'langchain/agents';
import { omit } from 'lodash';
import omit from 'lodash/omit';
import { jsonParse, NodeOperationError } from 'n8n-workflow';
import type { IExecuteFunctions, INodeExecutionData } from 'n8n-workflow';

View File

@@ -1,7 +1,7 @@
import type { ChatPromptTemplate } from '@langchain/core/prompts';
import { RunnableSequence } from '@langchain/core/runnables';
import { AgentExecutor, createToolCallingAgent } from 'langchain/agents';
import { omit } from 'lodash';
import omit from 'lodash/omit';
import { jsonParse, NodeOperationError, sleep } from 'n8n-workflow';
import type { IExecuteFunctions, INodeExecutionData } from 'n8n-workflow';