Class ContextRecord
- Namespace
 - FoundationaLLM.Common.Models.Context
 
- Assembly
 - FoundationaLLM.Common.dll
 
Represents a file record.
public abstract class ContextRecord
  - Inheritance
 - 
      
      ContextRecord
 
- Derived
 
- Inherited Members
 
- Extension Methods
 
Constructors
ContextRecord()
Initializes a new instance of the ContextRecord class.
public ContextRecord()
  ContextRecord(string, string, string, UnifiedUserIdentity, Dictionary<string, string>?)
Initializes a new instance of the ContextRecord class.
public ContextRecord(string id, string instanceId, string origin, UnifiedUserIdentity userIdentity, Dictionary<string, string>? metadata = null)
  Parameters
idstringThe identifier of the context record.
instanceIdstringThe FoundationaLLM instance identifier.
originstringThe origin of the context record.
userIdentityUnifiedUserIdentityThe UnifiedUserIdentity providing details about the user identity.
metadataDictionary<string, string>Optional metadata dictionary associated with the context record.
Properties
CreatedAt
Gets or sets the time of the record creation.
[JsonPropertyName("created_at")]
[JsonPropertyOrder(100)]
public DateTimeOffset CreatedAt { get; set; }
  Property Value
CreatedBy
Gets or sets the user that created the record.
[JsonPropertyName("created_by")]
[JsonPropertyOrder(101)]
public string CreatedBy { get; set; }
  Property Value
Deleted
Gets or sets the flag that indicates if the record was deleted.
[JsonPropertyName("deleted")]
[JsonPropertyOrder(104)]
public bool Deleted { get; set; }
  Property Value
Id
Gets or sets the Cosmos DB identifier.
[JsonPropertyName("id")]
[JsonPropertyOrder(-100)]
public string Id { get; set; }
  Property Value
InstanceId
Gets or sets the FoundationaLLM instance identifier.
[JsonPropertyName("instance_id")]
[JsonPropertyOrder(-98)]
public string InstanceId { get; set; }
  Property Value
Metadata
Gets or sets the metadata associated with the context record.
[JsonPropertyName("metadata")]
[JsonPropertyOrder(105)]
public Dictionary<string, string> Metadata { get; set; }
  Property Value
Origin
Gets or sets the origin of the context record.
[JsonPropertyName("origin")]
[JsonPropertyOrder(-96)]
public string Origin { get; set; }
  Property Value
Type
Gets or sets the type of the context record.
[JsonPropertyName("type")]
[JsonPropertyOrder(-99)]
public abstract string Type { get; set; }
  Property Value
UPN
Gets or sets the user prinicpal name of the user that owns the record.
[JsonPropertyName("upn")]
[JsonPropertyOrder(-97)]
public string UPN { get; set; }
  Property Value
UpdatedAt
Gets or sets the time of the record update.
[JsonPropertyName("updated_at")]
[JsonPropertyOrder(102)]
public DateTimeOffset? UpdatedAt { get; set; }
  Property Value
UpdatedBy
Gets or sets the user that updated the record.
[JsonPropertyName("updated_by")]
[JsonPropertyOrder(103)]
public string? UpdatedBy { get; set; }