3 instantiations of LoggingEmbeddingGenerator
Microsoft.Extensions.AI (1)
Embeddings\LoggingEmbeddingGeneratorBuilderExtensions.cs (1)
35var generator = new LoggingEmbeddingGenerator<TInput, TEmbedding>(innerGenerator, loggerFactory.CreateLogger(typeof(LoggingEmbeddingGenerator<TInput, TEmbedding>)));
Microsoft.Extensions.AI.Tests (2)
Embeddings\LoggingEmbeddingGeneratorTests.cs (2)
19Assert.Throws<ArgumentNullException>("innerGenerator", () => new LoggingEmbeddingGenerator<string, Embedding<float>>(null!, NullLogger.Instance)); 20Assert.Throws<ArgumentNullException>("logger", () => new LoggingEmbeddingGenerator<string, Embedding<float>>(new TestEmbeddingGenerator(), null!));
6 references to LoggingEmbeddingGenerator
Microsoft.Extensions.AI (6)
Embeddings\LoggingEmbeddingGenerator.cs (1)
31/// <summary>Initializes a new instance of the <see cref="LoggingEmbeddingGenerator{TInput, TEmbedding}"/> class.</summary>
Embeddings\LoggingEmbeddingGeneratorBuilderExtensions.cs (5)
11/// <summary>Provides extensions for configuring <see cref="LoggingEmbeddingGenerator{TInput, TEmbedding}"/> instances.</summary> 22/// <param name="configure">An optional callback that can be used to configure the <see cref="LoggingEmbeddingGenerator{TInput, TEmbedding}"/> instance.</param> 27Action<LoggingEmbeddingGenerator<TInput, TEmbedding>>? configure = null) 35var generator = new LoggingEmbeddingGenerator<TInput, TEmbedding>(innerGenerator, loggerFactory.CreateLogger(typeof(LoggingEmbeddingGenerator<TInput, TEmbedding>)));