UNPKG

@n8n/n8n-nodes-langchain

Version:

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

31 lines (25 loc) 1.11 kB
/** * Auto-fixing Output Parser Node - Version 1 * Deprecated, use structured output parser */ export interface LcOutputParserAutofixingV1Params { options?: { /** Prompt template used for fixing the output. Uses placeholders: "{instructions}" for parsing rules, "{completion}" for the failed attempt, and "{error}" for the validation error message. * @hint Should include "{error}", "{instructions}", and "{completion}" placeholders */ prompt?: string | Expression<string> | PlaceholderValue; }; } export interface LcOutputParserAutofixingV1SubnodeConfig { model: LanguageModelInstance | LanguageModelInstance[]; outputParser: OutputParserInstance; } interface LcOutputParserAutofixingV1NodeBase { type: '@n8n/n8n-nodes-langchain.outputParserAutofixing'; version: 1; isTrigger: true; } export type LcOutputParserAutofixingV1ParamsNode = LcOutputParserAutofixingV1NodeBase & { config: NodeConfig<LcOutputParserAutofixingV1Params> & { subnodes: LcOutputParserAutofixingV1SubnodeConfig }; }; export type LcOutputParserAutofixingV1Node = LcOutputParserAutofixingV1ParamsNode;