Auto-fixing Output Parser
ai.output_parser_autofixing · version 1 · AI sub-node
Repairs model output that another parser rejects by asking a model to correct it.
Ports
| Port | Kind | Label | Required | Max connections |
|---|---|---|---|---|
| input 0 | ai_languageModel | yes | 1 | |
| input 1 | ai_outputParser | yes | 1 | |
| output 0 | ai_outputParser |
Credentials
This node uses no credentials.
Parameters
| Name | Type | Default | Required | Shown when | Description |
|---|---|---|---|---|---|
options | collection | ||||
options.prompt | string | "The output below was supposed to follow these formatting instructions:\n---\n{instructions}\n---\n\nOutput that failed:\n---\n{completion}\n---\n\nProblem found:\n---\n{error}\n---\n\nRewrite the output so that it follows the instructions exactly. Reply with the corrected output only." | Repair Prompt. Use {instructions}, {completion} and {error} as placeholders. |
Import
Exported workflows that use these node types import to this node. Unverified ranges import with a parameter warning until parity fixtures confirm them; see Migrating.
| Source type | Version range | Status | Fixtures |
|---|---|---|---|
@n8n/n8n-nodes-langchain.outputParserAutofixing | 1 | unverified |