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
stringThe FoundationaLLM instance identifier.
origin
stringThe origin of the record.
conversationId
stringThe conversation identifier.
fileName
stringThe original name of the file.
contentType
stringThe content type of the file.
fileSizeBytes
longThe size of the file in bytes.
userIdentity
UnifiedUserIdentityThe 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
ConversationId
Gets or sets the conversation identifier.
[JsonPropertyName("conversation_id")]
[JsonPropertyOrder(0)]
public string ConversationId { get; set; }
Property Value
FileName
Gets or sets the file name.
[JsonPropertyName("file_name")]
[JsonPropertyOrder(2)]
public string FileName { get; set; }
Property Value
FileObjectId
Gets or sets the FoundationaLLM object identifier of the file
[JsonPropertyName("file_object_id")]
[JsonPropertyOrder(1)]
public string FileObjectId { get; set; }
Property Value
FilePath
Gets or sets the file path on the storage account.
[JsonPropertyName("file_path")]
[JsonPropertyOrder(4)]
public string FilePath { get; set; }
Property Value
FileSizeBytes
Gets or sets the file size in bytes.
[JsonPropertyName("file_size_bytes")]
[JsonPropertyOrder(5)]
public long FileSizeBytes { get; set; }
Property Value
Type
Gets or sets the type of the context record.
[JsonPropertyName("type")]
[JsonPropertyOrder(-99)]
public override string Type { get; set; }