You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// <summary>Returns an <see cref="IChatClient"/> that represents the entire pipeline. Calls to this instance will pass through each of the pipeline stages in turn.</summary>
33
+
/// <summary>Builds an <see cref="IChatClient"/> that represents the entire pipeline. Calls to this instance will pass through each of the pipeline stages in turn.</summary>
34
34
/// <param name="services">
35
35
/// The <see cref="IServiceProvider"/> that should provide services to the <see cref="IChatClient"/> instances.
36
36
/// If null, an empty <see cref="IServiceProvider"/> will be used.
/// <summary>Gets the <see cref="IServiceProvider"/> associated with the builder instance.</summary>
27
-
publicIServiceProviderServices{get;}
29
+
/// <summary>Initializes a new instance of the <see cref="EmbeddingGeneratorBuilder{TInput, TEmbedding}"/> class.</summary>
30
+
/// <param name="innerGeneratorFactory">A callback that produces the inner <see cref="EmbeddingGeneratorBuilder{TInput, TEmbedding}"/> that represents the underlying backend.</param>
/// Builds an instance of <see cref="IEmbeddingGenerator{TInput, TEmbedding}"/> using the specified inner generator.
37
+
/// Builds an <see cref="IEmbeddingGenerator{TInput, TEmbedding}"/> that represents the entire pipeline. Calls to this instance will pass through each of the pipeline stages in turn.
31
38
/// </summary>
32
-
/// <param name="innerGenerator">The inner generator to use.</param>
33
-
/// <returns>An instance of <see cref="IEmbeddingGenerator{TInput, TEmbedding}"/>.</returns>
34
-
/// <remarks>
35
-
/// If there are any factories registered with this builder, <paramref name="innerGenerator"/> is used as a seed to
36
-
/// the last factory, and the result of each factory delegate is passed to the previously registered factory.
37
-
/// The final result is then returned from this call.
/// <summary>Provides extension methods for registering <see cref="IEmbeddingGenerator{TInput, TEmbedding}"/> with a <see cref="IServiceCollection"/>.</summary>
/// <summary>Registers a singleton embedding generator in the <see cref="IServiceCollection"/>.</summary>
27
+
/// <typeparam name="TInput">The type from which embeddings will be generated.</typeparam>
28
+
/// <typeparam name="TEmbedding">The type of embeddings to generate.</typeparam>
29
+
/// <param name="serviceCollection">The <see cref="IServiceCollection"/> to which the generator should be added.</param>
30
+
/// <param name="innerGeneratorFactory">A callback that produces the inner <see cref="IEmbeddingGenerator{TInput, TEmbedding}"/> that represents the underlying backend.</param>
31
+
/// <returns>An <see cref="EmbeddingGeneratorBuilder{TInput, TEmbedding}"/> that can be used to build a pipeline around the inner generator.</returns>
32
+
/// <remarks>The generator is registered as a singleton service.</remarks>
/// <param name="innerGeneratorFactory">A callback that produces the inner <see cref="IEmbeddingGenerator{TInput, TEmbedding}"/> that represents the underlying backend.</param>
67
+
/// <returns>An <see cref="EmbeddingGeneratorBuilder{TInput, TEmbedding}"/> that can be used to build a pipeline around the inner generator.</returns>
68
+
/// <remarks>The generator is registered as a singleton service.</remarks>
0 commit comments