6 references to Use
Microsoft.Extensions.AI (5)
Embeddings\DistributedCachingEmbeddingGeneratorBuilderExtensions.cs (1)
35
return builder.
Use
((innerGenerator, services) =>
Embeddings\EmbeddingGeneratorBuilder.cs (2)
73
return
Use
((innerGenerator, _) => generatorFactory(innerGenerator));
103
return
Use
((innerGenerator, _) => new AnonymousDelegatingEmbeddingGenerator<TInput, TEmbedding>(innerGenerator, generateFunc));
Embeddings\LoggingEmbeddingGeneratorBuilderExtensions.cs (1)
32
return builder.
Use
((innerGenerator, services) =>
Embeddings\OpenTelemetryEmbeddingGeneratorBuilderExtensions.cs (1)
34
Throw.IfNull(builder).
Use
((innerGenerator, services) =>
Microsoft.Extensions.AI.Tests (1)
Embeddings\EmbeddingGeneratorBuilderTests.cs (1)
25
builder.
Use
((innerClient, services) =>