feat(Structured Output Parser Node): Add auto-fix support to Strucutred Output Parser (#15915)

This commit is contained in:
Jaakko Husso
2025-06-04 12:07:09 +03:00
committed by GitHub
parent eac27b7ac0
commit 4f07ac394b
6 changed files with 322 additions and 12 deletions

View File

@@ -0,0 +1,16 @@
export const NAIVE_FIX_PROMPT = `Instructions:
--------------
{instructions}
--------------
Completion:
--------------
{completion}
--------------
Above, the Completion did not satisfy the constraints given in the Instructions.
Error:
--------------
{error}
--------------
Please try again. Please only respond with an answer that satisfies the constraints laid out in the Instructions:`;