Class AgentsAppBuilder
- Namespace
- Microsoft.AutoGen.Core
- Assembly
- Microsoft.AutoGen.Core.dll
public class AgentsAppBuilder
- Inheritance
-
AgentsAppBuilder
- Inherited Members
-
Constructors
AgentsAppBuilder(HostApplicationBuilder?)
public AgentsAppBuilder(HostApplicationBuilder? baseBuilder = null)
Parameters
baseBuilder
HostApplicationBuilder
Properties
Configuration
public IConfiguration Configuration { get; }
Property Value
- IConfiguration
Services
public IServiceCollection Services { get; }
Property Value
- IServiceCollection
Methods
AddAgent<TAgent>(AgentType, bool, bool)
public AgentsAppBuilder AddAgent<TAgent>(AgentType agentType, bool skipClassSubscriptions = false, bool skipDirectMessageSubscription = false) where TAgent : IHostableAgent
Parameters
agentType
AgentType
skipClassSubscriptions
bool
skipDirectMessageSubscription
bool
Returns
- AgentsAppBuilder
Type Parameters
TAgent
AddAgentsFromAssemblies()
public void AddAgentsFromAssemblies()
AddAgentsFromAssemblies(params Assembly[])
public AgentsAppBuilder AddAgentsFromAssemblies(params Assembly[] assemblies)
Parameters
assemblies
Assembly[]
Returns
- AgentsAppBuilder
BuildAsync()
public ValueTask<AgentsApp> BuildAsync()
Returns
- ValueTask<AgentsApp>
UseInProcessRuntime(bool)
public AgentsAppBuilder UseInProcessRuntime(bool deliverToSelf = false)
Parameters
deliverToSelf
bool
Returns
- AgentsAppBuilder