# AspireEmbeddingsClientBuilder Constructors

- Package: [Aspire.Azure.AI.Inference](/reference/api/csharp/aspire.azure.ai.inference.md)
- Type: [AspireEmbeddingsClientBuilder](/reference/api/csharp/aspire.azure.ai.inference/aspireembeddingsclientbuilder.md)
- Kind: `Constructors`
- Members: `1`

Provides a builder for configuring and integrating an Aspire Embeddings client into a host application.

## AspireEmbeddingsClientBuilder(IHostApplicationBuilder, string?, string?, bool, bool)

- Name: `Constructor(IHostApplicationBuilder, string?, string?, bool, bool)`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Components/Aspire.Azure.AI.Inference/AspireEmbeddingsClientBuilder.cs#L20-L50)

Provides a builder for configuring and integrating an Aspire Embeddings client into a host application.

```csharp
public class AspireEmbeddingsClientBuilder
{
    public AspireEmbeddingsClientBuilder(
        IHostApplicationBuilder hostBuilder,
        string? serviceKey,
        string? deploymentName,
        bool disableTracing,
        bool enableSensitiveTelemetryData)
    {
        // ...
    }
}
```

## Parameters

- `hostBuilder` (`IHostApplicationBuilder`)
  The `Hosting.IHostApplicationBuilder` with which services are being registered.
- `serviceKey` (`string?`)
  The service key used to register the `Inference.EmbeddingsClient` service, if any.
- `deploymentName` (`string?`)
  The name of the deployment in Azure AI Foundry.
- `disableTracing` (`bool`)
  A flag to indicate whether tracing should be disabled.
- `enableSensitiveTelemetryData` (`bool`)
  A flag indicating whether potentially sensitive information should be included in telemetry.

## Remarks

This class is used to configure the necessary parameters for creating an Aspire Embeddings client, such as the host application builder, service key, and optional model ID. It is intended for internal use within the application setup process.
