UNPKG

@n8n/n8n-nodes-langchain

Version:

![Banner image](https://user-images.githubusercontent.com/10284570/173569848-c624317f-42b1-45a6-ab09-f0ea3c247648.png)

12 lines (11 loc) 636 B
import type { DynamicStructuredToolInput } from '@langchain/core/tools'; import { DynamicStructuredTool, DynamicTool } from '@langchain/core/tools'; import type { ISupplyDataFunctions } from 'n8n-workflow'; import { ZodObject } from 'zod'; import type { ZodObjectAny } from '../types/types'; export declare const prepareFallbackToolDescription: (toolDescription: string, schema: ZodObject<any>) => string; export declare class N8nTool extends DynamicStructuredTool<ZodObjectAny> { private context; constructor(context: ISupplyDataFunctions, fields: DynamicStructuredToolInput<ZodObjectAny>); asDynamicTool(): DynamicTool; }