Table of Contents

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

id string

The identifier of the context record.

instanceId string

The FoundationaLLM instance identifier.

origin string

The origin of the context record.

userIdentity UnifiedUserIdentity

The UnifiedUserIdentity providing details about the user identity.

metadata Dictionary<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

DateTimeOffset

CreatedBy

Gets or sets the user that created the record.

[JsonPropertyName("created_by")]
[JsonPropertyOrder(101)]
public string CreatedBy { get; set; }

Property Value

string

Deleted

Gets or sets the flag that indicates if the record was deleted.

[JsonPropertyName("deleted")]
[JsonPropertyOrder(104)]
public bool Deleted { get; set; }

Property Value

bool

Id

Gets or sets the Cosmos DB identifier.

[JsonPropertyName("id")]
[JsonPropertyOrder(-100)]
public string Id { get; set; }

Property Value

string

InstanceId

Gets or sets the FoundationaLLM instance identifier.

[JsonPropertyName("instance_id")]
[JsonPropertyOrder(-98)]
public string InstanceId { get; set; }

Property Value

string

Metadata

Gets or sets the metadata associated with the context record.

[JsonPropertyName("metadata")]
[JsonPropertyOrder(105)]
public Dictionary<string, string> Metadata { get; set; }

Property Value

Dictionary<string, string>

Origin

Gets or sets the origin of the context record.

[JsonPropertyName("origin")]
[JsonPropertyOrder(-96)]
public string Origin { get; set; }

Property Value

string

Type

Gets or sets the type of the context record.

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

Property Value

string

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

string

UpdatedAt

Gets or sets the time of the record update.

[JsonPropertyName("updated_at")]
[JsonPropertyOrder(102)]
public DateTimeOffset? UpdatedAt { get; set; }

Property Value

DateTimeOffset?

UpdatedBy

Gets or sets the user that updated the record.

[JsonPropertyName("updated_by")]
[JsonPropertyOrder(103)]
public string? UpdatedBy { get; set; }

Property Value

string