Table of Contents

Property Attachments

Namespace
LMKit.TextGeneration.Chat
Assembly
LM-Kit.NET.dll

Attachments

Gets the collection of attachment references associated with the message.

public ReadOnlyObservableCollection<AttachmentReference> Attachments { get; }

Property Value

ReadOnlyObservableCollection<AttachmentReference>

Remarks

Each AttachmentReference points to an Attachment and optionally specifies a page index within multi-page documents such as PDFs. Attachments can include images (PNG, JPEG, WEBP, etc.), documents (PDF, DOCX, XLSX, PPTX), HTML, or plain text files.

For multi-page formats like PDF, each AttachmentReference can target a specific page, enabling fine-grained control over which pages are included in the conversation context.

The collection is read-only to ensure that attachment references are managed consistently throughout the lifecycle of the chat history. To associate attachments with a message, use one of the constructor overloads that accepts Attachment or AttachmentReference parameters.

See Also