fix: Improve error prompt formatting in CsvAgentResponseHandler

This commit is contained in:
extio-de
2026-03-01 15:53:54 +01:00
parent de37c99b32
commit ab968f121c

View File

@@ -40,8 +40,8 @@ public class CsvAgentResponseHandler implements AgentResponseHandler {
this.fieldSeparatorQuoted = Pattern.quote(fieldSeparator); this.fieldSeparatorQuoted = Pattern.quote(fieldSeparator);
this.errorPromptSuffix = "\n\nThe previous response could not be fully processed or validated. " + this.errorPromptSuffix = "\n\nThe previous response could not be fully processed or validated. " +
"Please format the response as CSV with '" + fieldSeparator + "' as field separator. " + "Please format the response as CSV with '" + fieldSeparator + "' as field separator.\n" +
"Expected columns: " + String.join(", ", headings) + ". One row per line."; "Expected columns: " + String.join(", ", headings) + " \nOne row per line.";
} }
@Override @Override