Class AttachmentDetail
- Namespace
- FoundationaLLM.Common.Models.Conversation
- Assembly
- FoundationaLLM.Common.dll
Represents an attachment in a chat message or session.
public class AttachmentDetail
- Inheritance
-
AttachmentDetail
- Inherited Members
- Extension Methods
Properties
ContentType
The mime content type of the attachment.
[JsonPropertyName("contentType")]
public string? ContentType { get; set; }
Property Value
DisplayName
The attachment file name.
[JsonPropertyName("displayName")]
public string? DisplayName { get; set; }
Property Value
ObjectId
The unique identifier of the attachment resource.
[JsonPropertyName("objectId")]
public string? ObjectId { get; set; }
Property Value
Methods
FromAttachmentFile(AttachmentFile)
Creates an AttachmentDetail instance from an AttachmentFile instance.
public static AttachmentDetail FromAttachmentFile(AttachmentFile attachmentFile)
Parameters
attachmentFile
AttachmentFileThe AttachmentFile used to initialize the instance.
Returns
- AttachmentDetail
The newly created AttachmentDetail instance.
FromContextFileRecord(ContextFileRecord)
Creates an AttachmentDetail instance from a ContextFileRecord instance.
public static AttachmentDetail FromContextFileRecord(ContextFileRecord contextFileRecord)
Parameters
contextFileRecord
ContextFileRecordThe ContextFileRecord used to initialize the instance.
Returns
- AttachmentDetail
The newly created AttachmentDetail instance.