chore: Update LangChain dependencies (no-changelog) (#16523)

This commit is contained in:
Eugene
2025-06-20 11:50:14 +02:00
committed by GitHub
parent 57911225e7
commit 67852b826f
21 changed files with 644 additions and 551 deletions

View File

@@ -1,9 +1,8 @@
import type { BaseOutputParser } from '@langchain/core/output_parsers';
import type { DynamicStructuredTool, Tool } from 'langchain/tools';
import { NodeOperationError, type IExecuteFunctions, type INode } from 'n8n-workflow';
import type { z } from 'zod';
type ZodObjectAny = z.ZodObject<any, any, any, any>;
import type { ZodObjectAny } from '../../../../types/types';
export async function extractParsedOutput(
ctx: IExecuteFunctions,

View File

@@ -4,6 +4,7 @@ import { NodeOperationError } from 'n8n-workflow';
import type { INode } from 'n8n-workflow';
import { z } from 'zod';
import type { ZodObjectAny } from '../../../../types/types';
import { checkForStructuredTools } from '../agents/utils';
describe('checkForStructuredTools', () => {
@@ -41,7 +42,7 @@ describe('checkForStructuredTools', () => {
func: async () => 'result',
});
const tools: Array<Tool | DynamicStructuredTool> = [dynamicTool];
const tools: Array<Tool | DynamicStructuredTool<ZodObjectAny>> = [dynamicTool];
await expect(checkForStructuredTools(tools, mockNode, 'Conversation Agent')).rejects.toThrow(
NodeOperationError,