1679
private async _toSdkAttachment(attachment: MessageAttachment): Promise<CopilotSdkAttachment | undefined> {
1680
if (isAgentFeedbackAnnotationsAttachment(attachment)) {
1682
>
if (!rendered) {
1683
return undefined;
1684
}
1686
>
type: 'blob' as const,
1687
>
data: encodeBase64(VSBuffer.fromString(rendered)),
1688
>
mimeType: 'text/plain',
1689
>
displayName: attachment.label,
1690
>
};
1691
>
}
1692
if (attachment.type === MessageAttachmentKind.Simple) {
1693
if (attachment.modelRepresentation) {