@@ -296,9 +296,9 @@ The SDK supports image attachments via the `Attachments` parameter. You can atta
296296await session .SendAsync (new MessageOptions
297297{
298298 Prompt = " What's in this image?" ,
299- Attachments = new List <UserMessageDataAttachmentsItem >
299+ Attachments = new List <Attachment >
300300 {
301- new UserMessageDataAttachmentsItemFile
301+ new AttachmentFile
302302 {
303303 Path = " /path/to/image.jpg" ,
304304 DisplayName = " image.jpg" ,
@@ -310,9 +310,9 @@ await session.SendAsync(new MessageOptions
310310await session .SendAsync (new MessageOptions
311311{
312312 Prompt = " What's in this image?" ,
313- Attachments = new List <UserMessageDataAttachmentsItem >
313+ Attachments = new List <Attachment >
314314 {
315- new UserMessageDataAttachmentsItemBlob
315+ new AttachmentBlob
316316 {
317317 Data = base64ImageData ,
318318 MimeType = " image/png" ,
@@ -721,13 +721,12 @@ await session2.SendAsync(new MessageOptions { Prompt = "Hello from session 2" })
721721await session .SendAsync (new MessageOptions
722722{
723723 Prompt = " Analyze this file" ,
724- Attachments = new List <UserMessageDataAttachmentsItem >
724+ Attachments = new List <Attachment >
725725 {
726- new UserMessageDataAttachmentsItem
726+ new AttachmentFile
727727 {
728- Type = UserMessageDataAttachmentsItemType .File ,
729728 Path = " /path/to/file.cs" ,
730- DisplayName = " My File"
729+ DisplayName = " My File" ,
731730 }
732731 }
733732});
0 commit comments