Jaa


ConfigureOptionsEmbeddingGenerator<TInput,TEmbedding> Constructor

Definition

Initializes a new instance of the ConfigureOptionsEmbeddingGenerator<TInput,TEmbedding> class with the specified configureOptions callback.

public:
 ConfigureOptionsEmbeddingGenerator(Microsoft::Extensions::AI::IEmbeddingGenerator<TInput, TEmbedding> ^ innerGenerator, Func<Microsoft::Extensions::AI::EmbeddingGenerationOptions ^, Microsoft::Extensions::AI::EmbeddingGenerationOptions ^> ^ configureOptions);
public ConfigureOptionsEmbeddingGenerator (Microsoft.Extensions.AI.IEmbeddingGenerator<TInput,TEmbedding> innerGenerator, Func<Microsoft.Extensions.AI.EmbeddingGenerationOptions?,Microsoft.Extensions.AI.EmbeddingGenerationOptions?> configureOptions);
new Microsoft.Extensions.AI.ConfigureOptionsEmbeddingGenerator<'Input, 'Embedding (requires 'Embedding :> Microsoft.Extensions.AI.Embedding)> : Microsoft.Extensions.AI.IEmbeddingGenerator<'Input, 'Embedding (requires 'Embedding :> Microsoft.Extensions.AI.Embedding)> * Func<Microsoft.Extensions.AI.EmbeddingGenerationOptions, Microsoft.Extensions.AI.EmbeddingGenerationOptions> -> Microsoft.Extensions.AI.ConfigureOptionsEmbeddingGenerator<'Input, 'Embedding (requires 'Embedding :> Microsoft.Extensions.AI.Embedding)>
Public Sub New (innerGenerator As IEmbeddingGenerator(Of TInput, TEmbedding), configureOptions As Func(Of EmbeddingGenerationOptions, EmbeddingGenerationOptions))

Parameters

innerGenerator
IEmbeddingGenerator<TInput,TEmbedding>

The inner generator.

configureOptions
Func<EmbeddingGenerationOptions,EmbeddingGenerationOptions>

The delegate to invoke to configure the EmbeddingGenerationOptions instance. It is passed the caller-supplied EmbeddingGenerationOptions instance and should return the configured EmbeddingGenerationOptions instance to use.

Applies to