Share via


LoggingEmbeddingGenerator<TInput,TEmbedding> Constructor

Definition

Initializes a new instance of the LoggingEmbeddingGenerator<TInput,TEmbedding> class.

public:
 LoggingEmbeddingGenerator(Microsoft::Extensions::AI::IEmbeddingGenerator<TInput, TEmbedding> ^ innerGenerator, Microsoft::Extensions::Logging::ILogger ^ logger);
public LoggingEmbeddingGenerator (Microsoft.Extensions.AI.IEmbeddingGenerator<TInput,TEmbedding> innerGenerator, Microsoft.Extensions.Logging.ILogger logger);
new Microsoft.Extensions.AI.LoggingEmbeddingGenerator<'Input, 'Embedding (requires 'Embedding :> Microsoft.Extensions.AI.Embedding)> : Microsoft.Extensions.AI.IEmbeddingGenerator<'Input, 'Embedding (requires 'Embedding :> Microsoft.Extensions.AI.Embedding)> * Microsoft.Extensions.Logging.ILogger -> Microsoft.Extensions.AI.LoggingEmbeddingGenerator<'Input, 'Embedding (requires 'Embedding :> Microsoft.Extensions.AI.Embedding)>
Public Sub New (innerGenerator As IEmbeddingGenerator(Of TInput, TEmbedding), logger As ILogger)

Parameters

logger
ILogger

An ILogger instance that will be used for all logging.

Applies to