mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
1da9107f4a
* wip * resolve non-agent workflows as well! * add tests for devui registrations and resolving * fixes * devui for net8 as well! * simplify TFM * update tfm... * tfm rules.... * wip * roll * verify entities are registered with a devui call * tests * add a proper support for non-keyed workflows * resolve default aiagent registration * sort usings :) * cleanup tests
24 lines
783 B
C#
24 lines
783 B
C#
// Copyright (c) Microsoft. All rights reserved.
|
|
|
|
namespace Microsoft.Extensions.Hosting;
|
|
|
|
/// <summary>
|
|
/// Extension methods for <see cref="IHostApplicationBuilder"/> to configure DevUI.
|
|
/// </summary>
|
|
public static class MicrosoftAgentAIDevUIHostApplicationBuilderExtensions
|
|
{
|
|
/// <summary>
|
|
/// Adds DevUI services to the host application builder.
|
|
/// </summary>
|
|
/// <param name="builder">The <see cref="IHostApplicationBuilder"/> to configure.</param>
|
|
/// <returns>The <see cref="IHostApplicationBuilder"/> for method chaining.</returns>
|
|
public static IHostApplicationBuilder AddDevUI(this IHostApplicationBuilder builder)
|
|
{
|
|
ArgumentNullException.ThrowIfNull(builder);
|
|
|
|
builder.Services.AddDevUI();
|
|
|
|
return builder;
|
|
}
|
|
}
|