Files
agent-framework/dotnet/src/Microsoft.Agents.AI.Hosting/HostedAgentBuilder.cs
T
Korolev DmitryandGitHub 72c391bc08 .NET: Refactor A2A and AIAgent hosting extensions (#1625)
* a2a reformat

* and refactor extensions on serviceCollection

* units

* fix build

* add remark for agentcard overloads
2025-10-23 17:43:48 +00:00

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;
}
}