TextMemoryPlugin Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.