Partager via


NullMemory Class

Definition

Implementation of ISemanticTextMemory that stores nothing.

public sealed class NullMemory : Microsoft.SemanticKernel.Memory.ISemanticTextMemory
type NullMemory = class
    interface ISemanticTextMemory
Public NotInheritable Class NullMemory
Implements ISemanticTextMemory
Inheritance
NullMemory
Implements

Properties

Instance

Singleton instance

Methods

GetAsync(String, String, Boolean, Kernel, CancellationToken)

Fetch a memory by key. For local memories the key is the "id" used when saving the record. For external reference, the key is the "URI" used when saving the record.

GetCollectionsAsync(Kernel, CancellationToken)

Gets a group of all available collection names.

RemoveAsync(String, String, Kernel, CancellationToken)

Remove a memory by key. For local memories the key is the "id" used when saving the record. For external reference, the key is the "URI" used when saving the record.

SaveInformationAsync(String, String, String, String, String, Kernel, CancellationToken)

Save some information into the semantic memory, keeping a copy of the source information.

SaveReferenceAsync(String, String, String, String, String, String, Kernel, CancellationToken)

Save some information into the semantic memory, keeping only a reference to the source information.

SearchAsync(String, String, Int32, Double, Boolean, Kernel, CancellationToken)

Find some information in memory

Applies to