mirror of
https://github.com/microsoft/autogen.git
synced 2025-09-08 15:56:13 +00:00
fix: Remember to register the IAgentRuntime in the DI AppBuilder
This commit is contained in:
parent
22d8f449fb
commit
34d34142b3
@ -17,6 +17,8 @@ public class AgentsAppBuilder
|
||||
public AgentsAppBuilder(HostApplicationBuilder? baseBuilder = null)
|
||||
{
|
||||
this.builder = baseBuilder ?? new HostApplicationBuilder();
|
||||
|
||||
this.builder.Services.AddSingleton<IAgentRuntime, InProcessRuntime>();
|
||||
}
|
||||
|
||||
public void AddAgentsFromAssemblies()
|
||||
|
Loading…
x
Reference in New Issue
Block a user