normalizeForAPI method
Normalize this attachment into user messages for the API.
Implementation
@override
List<UserMessage> normalizeForAPI() {
final text = truncated
? '<file path="$displayPath">\n$content\n[truncated]\n</file>'
: '<file path="$displayPath">\n$content\n</file>';
return [createUserMessage(content: text, isMeta: true)];
}