fix: Improve error prompt formatting in CsvAgentResponseHandler
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user