normalizeForAPI method

  1. @override
List<UserMessage> normalizeForAPI()
override

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)];
}