@n8n/n8n-nodes-langchain
Version:
10 lines (9 loc) • 638 B
TypeScript
import type { INode } from 'n8n-workflow';
export declare const MODEL_OUTPUT_PARSER_ERROR_MESSAGE = "Model output doesn't fit required format";
export declare const MODEL_OUTPUT_PARSER_ERROR_DESCRIPTION = "To continue the execution when this happens, change the 'On Error' parameter in the root node's settings";
export declare function isLangChainParserError(error: unknown): boolean;
export declare function getFailureType(error: unknown): string;
export declare function wrapLangChainParserError(error: unknown, node: INode, itemIndex?: number, options?: {
enrichNonParserErrors?: boolean;
fallbackMessage?: string;
}): Error;