Table of Contents

Class ContextFileRecord

Namespace
FoundationaLLM.Common.Models.Context
Assembly
FoundationaLLM.Common.dll

Represents a file record.

public class ContextFileRecord : ContextRecord
Inheritance
ContextFileRecord
Inherited Members
Extension Methods

Constructors

ContextFileRecord()

Initializes a new instance of the ContextFileRecord class.

public ContextFileRecord()

ContextFileRecord(string, string, string, string, string, long, UnifiedUserIdentity, Dictionary<string, string>?)

Initializes a new instance of the ContextFileRecord class.

public ContextFileRecord(string instanceId, string origin, string conversationId, string fileName, string contentType, long fileSizeBytes, UnifiedUserIdentity userIdentity, Dictionary<string, string>? metadata = null)

Parameters

instanceId string

The FoundationaLLM instance identifier.

origin string

The origin of the record.

conversationId string

The conversation identifier.

fileName string

The original name of the file.

contentType string

The content type of the file.

fileSizeBytes long

The size of the file in bytes.

userIdentity UnifiedUserIdentity

The UnifiedUserIdentity providing details about the user identity.

metadata Dictionary<string, string>

Optional metadata dictionary associated with the context file record.

Properties

ContentType

Gets or sets the content type.

[JsonPropertyName("content_type")]
[JsonPropertyOrder(3)]
public string ContentType { get; set; }

Property Value

string

ConversationId

Gets or sets the conversation identifier.

[JsonPropertyName("conversation_id")]
[JsonPropertyOrder(0)]
public string ConversationId { get; set; }

Property Value

string

FileName

Gets or sets the file name.

[JsonPropertyName("file_name")]
[JsonPropertyOrder(2)]
public string FileName { get; set; }

Property Value

string

FileObjectId

Gets or sets the FoundationaLLM object identifier of the file

[JsonPropertyName("file_object_id")]
[JsonPropertyOrder(1)]
public string FileObjectId { get; set; }

Property Value

string

FilePath

Gets or sets the file path on the storage account.

[JsonPropertyName("file_path")]
[JsonPropertyOrder(4)]
public string FilePath { get; set; }

Property Value

string

FileSizeBytes

Gets or sets the file size in bytes.

[JsonPropertyName("file_size_bytes")]
[JsonPropertyOrder(5)]
public long FileSizeBytes { get; set; }

Property Value

long

Type

Gets or sets the type of the context record.

[JsonPropertyName("type")]
[JsonPropertyOrder(-99)]
public override string Type { get; set; }

Property Value

string