AspireChatCompletionsClientBuilder Constructors
ClassConstructors1 member
Provides a builder for configuring and integrating an Aspire Chat Completions client into a host application.
Constructor(IHostApplicationBuilder, string?, string?, bool, bool)Section titled Constructor(IHostApplicationBuilder, string?, string?, bool, bool) Provides a builder for configuring and integrating an Aspire Chat Completions client into a host application.
public class AspireChatCompletionsClientBuilder{ public AspireChatCompletionsClientBuilder( IHostApplicationBuilder hostBuilder, string? serviceKey, string? deploymentName, bool disableTracing, bool enableSensitiveTelemetryData) { // ... }}Parameters
hostBuilderIHostApplicationBuilderThe Hosting.IHostApplicationBuilder with which services are being registered.serviceKeystring?The service key used to register the Inference.ChatCompletionsClient service, if any.deploymentNamestring?The name of the deployment in Azure AI Foundry.disableTracingboolA flag to indicate whether tracing should be disabled.enableSensitiveTelemetryDataboolA 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 Chat Completions client, such as the host application builder, service key, and optional model ID. It is intended for internal use within the application setup process.