normalizeForAPI method
Normalize this attachment into user messages for the API.
Implementation
@override
List<UserMessage> normalizeForAPI() {
final buf = StringBuffer();
buf.writeln('<system-reminder>');
buf.writeln(isNew ? 'New diagnostics:' : 'Current diagnostics:');
for (final file in files) {
buf.writeln(' ${file['path']}: ${file['message']}');
}
buf.writeln('</system-reminder>');
return [createUserMessage(content: buf.toString(), isMeta: true)];
}