Table of Contents

Class ResourceStore<T>

Namespace
FoundationaLLM.Vectorization.Models.Resources
Assembly
FoundationaLLM.Vectorization.dll

Models the content of a resource store managed by the FoundationaLLM.Vectorization resource provider.

public class ResourceStore<T> where T : ResourceBase

Type Parameters

T
Inheritance
ResourceStore<T>
Inherited Members
Extension Methods

Properties

DefaultResourceName

The name of the default resource (if any).

public string? DefaultResourceName { get; set; }

Property Value

string

Resources

The list of all resources that are registered in the resource store.

public required List<T> Resources { get; set; }

Property Value

List<T>

Methods

FromDictionary(Dictionary<string, T>)

Creates a new resource store from a dictionary.

public static ResourceStore<T> FromDictionary(Dictionary<string, T> dictionary)

Parameters

dictionary Dictionary<string, T>

The dictionary containing the resources.

Returns

ResourceStore<T>

The newly created resource store.

ToDictionary()

Creates a dictionary of resources from the resource store.

public Dictionary<string, T> ToDictionary()

Returns

Dictionary<string, T>

The newly created dictionary.