@n8n/n8n-nodes-langchain
Version:
8 lines (7 loc) • 496 B
TypeScript
import type { DynamicStructuredTool, Tool } from '@langchain/classic/tools';
import type { EngineRequest, ExecuteNodeResult, INode } from 'n8n-workflow';
import type { RequestResponseMetadata } from './types';
type ConnectedTool = DynamicStructuredTool | Tool;
type Action = EngineRequest<RequestResponseMetadata>['actions'][number];
export declare function executeEngineAction(node: INode, action: Action, tools: ConnectedTool[]): Promise<ExecuteNodeResult<RequestResponseMetadata>>;
export {};