Update chat client agent for contributor and devs

This commit is contained in:
Roger Barreto
2026-04-13 15:11:26 +01:00
parent 4895ad74e1
commit 9e842e1821
16 changed files with 284 additions and 51 deletions
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft. All rights reserved.
// Copyright (c) Microsoft. All rights reserved.
using System.Threading;
using System.Threading.Tasks;
@@ -87,11 +87,11 @@ public static class FoundryHostingExtensions
services.TryAddKeyedSingleton(agent.Name, agent);
services.TryAddKeyedSingleton(agent.Name, agentSessionStore);
}
else
{
services.TryAddSingleton(agent);
services.TryAddSingleton(agentSessionStore);
}
// Also register as the default (non-keyed) agent so requests
// without an agent name can resolve it (e.g., local dev tooling).
services.TryAddSingleton(agent);
services.TryAddSingleton(agentSessionStore);
services.TryAddSingleton<ResponseHandler, AgentFrameworkResponseHandler>();
return services;