mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
* a2a reformat * and refactor extensions on serviceCollection * units * fix build * add remark for agentcard overloads
24 lines
634 B
C#
24 lines
634 B
C#
// Copyright (c) Microsoft. All rights reserved.
|
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using Microsoft.Extensions.Hosting;
|
|
|
|
namespace Microsoft.Agents.AI.Hosting;
|
|
|
|
internal sealed class HostedAgentBuilder : IHostedAgentBuilder
|
|
{
|
|
public string Name { get; }
|
|
public IServiceCollection ServiceCollection { get; }
|
|
|
|
public HostedAgentBuilder(string name, IHostApplicationBuilder builder)
|
|
: this(name, builder.Services)
|
|
{
|
|
}
|
|
|
|
public HostedAgentBuilder(string name, IServiceCollection serviceCollection)
|
|
{
|
|
this.Name = name;
|
|
this.ServiceCollection = serviceCollection;
|
|
}
|
|
}
|