mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
Update chat client agent for contributor and devs
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user