TextMemoryPlugin Constructor

Definition

Initializes a new instance of the TextMemoryPlugin class.

public TextMemoryPlugin(Microsoft.SemanticKernel.Memory.ISemanticTextMemory memory, Microsoft.Extensions.Logging.ILoggerFactory? loggerFactory = default, System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = default);
new Microsoft.SemanticKernel.Plugins.Memory.TextMemoryPlugin : Microsoft.SemanticKernel.Memory.ISemanticTextMemory * Microsoft.Extensions.Logging.ILoggerFactory * System.Text.Json.JsonSerializerOptions -> Microsoft.SemanticKernel.Plugins.Memory.TextMemoryPlugin
Public Sub New (memory As ISemanticTextMemory, Optional loggerFactory As ILoggerFactory = Nothing, Optional jsonSerializerOptions As JsonSerializerOptions = Nothing)

Parameters

memory
ISemanticTextMemory

The ISemanticTextMemory instance to use for retrieving and saving memories to and from storage.

loggerFactory
ILoggerFactory

The ILoggerFactory to use for logging. If null, no logging will be performed.

jsonSerializerOptions
JsonSerializerOptions

An optional JsonSerializerOptions to use when turning multiple memories into json text. If null, Default is used.

Applies to