MemoryBuilder Class
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.
A builder for Memory plugin.
public sealed class MemoryBuilder
type MemoryBuilder = class
Public NotInheritable Class MemoryBuilder
- Inheritance
-
MemoryBuilder
Constructors
MemoryBuilder() |
Methods
Build() |
Build a new instance of ISemanticTextMemory using the settings passed so far. |
WithHttpClient(HttpClient) |
Add an HttpClient. |
WithLoggerFactory(ILoggerFactory) |
Add a logger factory. |
WithMemoryStore(IMemoryStore) |
Add memory store. |
WithMemoryStore<TStore>(Func<ILoggerFactory,HttpClient,TStore>) |
Add memory store factory. |
WithMemoryStore<TStore>(Func<ILoggerFactory,TStore>) |
Add memory store factory. |
WithTextEmbeddingGeneration(ITextEmbeddingGenerationService) |
Add text embedding generation. |
WithTextEmbeddingGeneration<TEmbeddingGeneration>(Func<ILoggerFactory,HttpClient,TEmbeddingGeneration>) |
Add text embedding generation. |