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, string, long, string, UnifiedUserIdentity, Dictionary<string, string>?)
Initializes a new instance of the ContextFileRecord class.
public ContextFileRecord(string instanceId, string origin, string? conversationId, string? agentName, string fileName, string contentType, long fileSizeBytes, string fileProcessingType, UnifiedUserIdentity userIdentity, Dictionary<string, string>? metadata = null)
Parameters
instanceIdstringThe FoundationaLLM instance identifier.
originstringThe origin of the record.
conversationIdstringThe conversation identifier.
agentNamestringThe name of the agent.
fileNamestringThe original name of the file.
contentTypestringThe content type of the file.
fileSizeByteslongThe size of the file in bytes.
fileProcessingTypestringThe type of processing that is required for the file.
userIdentityUnifiedUserIdentityThe UnifiedUserIdentity providing details about the user identity.
metadataDictionary<string, string>Optional metadata dictionary associated with the context file record.
Properties
AgentName
Gets or sets the agent name.
[JsonPropertyName("agent_name")]
[JsonPropertyOrder(1)]
public string AgentName { get; set; }
Property Value
ContentType
Gets or sets the content type.
[JsonPropertyName("content_type")]
[JsonPropertyOrder(4)]
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(3)]
public string FileName { get; set; }
Property Value
FileObjectId
Gets or sets the FoundationaLLM object identifier of the file
[JsonPropertyName("file_object_id")]
[JsonPropertyOrder(2)]
public string FileObjectId { get; set; }
Property Value
FilePath
Gets or sets the file path on the storage account.
[JsonPropertyName("file_path")]
[JsonPropertyOrder(5)]
public string FilePath { get; set; }
Property Value
FileProcessingType
Gets or sets a value indicating the type of processing that is required for the file.
[JsonPropertyName("file_processing_type")]
[JsonPropertyOrder(7)]
public string FileProcessingType { get; set; }
Property Value
FileSizeBytes
Gets or sets the file size in bytes.
[JsonPropertyName("file_size_bytes")]
[JsonPropertyOrder(6)]
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; }