Partager via


MemoryBuilder.WithMemoryStore Method

Definition

Overloads

WithMemoryStore(IMemoryStore)

Add memory store.

WithMemoryStore<TStore>(Func<ILoggerFactory,HttpClient,TStore>)

Add memory store factory.

WithMemoryStore<TStore>(Func<ILoggerFactory,TStore>)

Add memory store factory.

WithMemoryStore(IMemoryStore)

Add memory store.

public Microsoft.SemanticKernel.Memory.MemoryBuilder WithMemoryStore (Microsoft.SemanticKernel.Memory.IMemoryStore store);
member this.WithMemoryStore : Microsoft.SemanticKernel.Memory.IMemoryStore -> Microsoft.SemanticKernel.Memory.MemoryBuilder
Public Function WithMemoryStore (store As IMemoryStore) As MemoryBuilder

Parameters

store
IMemoryStore

Store to add.

Returns

Updated Memory builder including the memory store.

Applies to

WithMemoryStore<TStore>(Func<ILoggerFactory,HttpClient,TStore>)

Add memory store factory.

public Microsoft.SemanticKernel.Memory.MemoryBuilder WithMemoryStore<TStore> (Func<Microsoft.Extensions.Logging.ILoggerFactory,System.Net.Http.HttpClient?,TStore> factory) where TStore : Microsoft.SemanticKernel.Memory.IMemoryStore;
member this.WithMemoryStore : Func<Microsoft.Extensions.Logging.ILoggerFactory, System.Net.Http.HttpClient, 'Store (requires 'Store :> Microsoft.SemanticKernel.Memory.IMemoryStore)> -> Microsoft.SemanticKernel.Memory.MemoryBuilder (requires 'Store :> Microsoft.SemanticKernel.Memory.IMemoryStore)
Public Function WithMemoryStore(Of TStore As IMemoryStore) (factory As Func(Of ILoggerFactory, HttpClient, TStore)) As MemoryBuilder

Type Parameters

TStore

Parameters

factory
Func<ILoggerFactory,HttpClient,TStore>

The store factory.

Returns

Updated Memory builder including the memory store.

Applies to

WithMemoryStore<TStore>(Func<ILoggerFactory,TStore>)

Add memory store factory.

public Microsoft.SemanticKernel.Memory.MemoryBuilder WithMemoryStore<TStore> (Func<Microsoft.Extensions.Logging.ILoggerFactory,TStore> factory) where TStore : Microsoft.SemanticKernel.Memory.IMemoryStore;
member this.WithMemoryStore : Func<Microsoft.Extensions.Logging.ILoggerFactory, 'Store (requires 'Store :> Microsoft.SemanticKernel.Memory.IMemoryStore)> -> Microsoft.SemanticKernel.Memory.MemoryBuilder (requires 'Store :> Microsoft.SemanticKernel.Memory.IMemoryStore)
Public Function WithMemoryStore(Of TStore As IMemoryStore) (factory As Func(Of ILoggerFactory, TStore)) As MemoryBuilder

Type Parameters

TStore

Parameters

factory
Func<ILoggerFactory,TStore>

The store factory.

Returns

Updated Memory builder including the memory store.

Applies to