Table of Contents

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

string

DisplayName

The attachment file name.

[JsonPropertyName("displayName")]
public string? DisplayName { get; set; }

Property Value

string

ObjectId

The unique identifier of the attachment resource.

[JsonPropertyName("objectId")]
public string? ObjectId { get; set; }

Property Value

string

Methods

FromAttachmentFile(AttachmentFile)

Creates an AttachmentDetail instance from an AttachmentFile instance.

public static AttachmentDetail FromAttachmentFile(AttachmentFile attachmentFile)

Parameters

attachmentFile AttachmentFile

The 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 ContextFileRecord

The ContextFileRecord used to initialize the instance.

Returns

AttachmentDetail

The newly created AttachmentDetail instance.