// Copyright (c) Microsoft. All rights reserved. using Microsoft.Agents.AI.DevUI; namespace Microsoft.Extensions.Hosting; /// /// Extension methods for to configure DevUI. /// public static class MicrosoftAgentAIDevUIHostApplicationBuilderExtensions { /// /// Adds DevUI services to the host application builder. /// /// The to configure. /// The for method chaining. public static IHostApplicationBuilder AddDevUI(this IHostApplicationBuilder builder) => AddDevUI(builder, configure: null); /// /// Adds DevUI services to the host application builder. /// /// The to configure. /// Optional callback used to configure . /// The for method chaining. public static IHostApplicationBuilder AddDevUI(this IHostApplicationBuilder builder, Action? configure) { ArgumentNullException.ThrowIfNull(builder); builder.Services.AddDevUI(configure); return builder; } }