Klasse AgentsAppBuilder
- Namespace
- Microsoft.AutoGen.Core
- Assembly
- Microsoft.AutoGen.Core.dll
public class AgentsAppBuilder
- Vererbung
-
AgentsAppBuilder
- Geerbte Member
-
Konstruktoren
AgentsAppBuilder(HostApplicationBuilder?)
public AgentsAppBuilder(HostApplicationBuilder? baseBuilder = null)
Parameter
baseBuilder HostApplicationBuilder
Eigenschaften
Configuration
public IConfiguration Configuration { get; }
Eigenschaftswert
- IConfiguration
Services
public IServiceCollection Services { get; }
Eigenschaftswert
- IServiceCollection
Methoden
AddAgent<TAgent>(AgentType, bool, bool)
public AgentsAppBuilder AddAgent<TAgent>(AgentType agentType, bool skipClassSubscriptions = false, bool skipDirectMessageSubscription = false) where TAgent : IHostableAgent
Parameter
agentType AgentType
skipClassSubscriptions bool
skipDirectMessageSubscription bool
Rückgabe
- AgentsAppBuilder
Typparameter
TAgent
AddAgentsFromAssemblies()
public void AddAgentsFromAssemblies()
AddAgentsFromAssemblies(params Assembly[])
public AgentsAppBuilder AddAgentsFromAssemblies(params Assembly[] assemblies)
Parameter
assemblies Assembly[]
Rückgabe
- AgentsAppBuilder
BuildAsync()
public ValueTask<AgentsApp> BuildAsync()
Rückgabe
- ValueTask<AgentsApp>
UseInProcessRuntime(bool)
public AgentsAppBuilder UseInProcessRuntime(bool deliverToSelf = false)
Parameter
deliverToSelf bool
Rückgabe
- AgentsAppBuilder