目录

类 AgentsAppBuilder

命名空间
Microsoft.AutoGen.Core
程序集
Microsoft.AutoGen.Core.dll
public class AgentsAppBuilder
继承
AgentsAppBuilder
继承的成员

构造函数

AgentsAppBuilder(HostApplicationBuilder?)

public AgentsAppBuilder(HostApplicationBuilder? baseBuilder = null)

参数

baseBuilder HostApplicationBuilder

属性

Configuration

public IConfiguration Configuration { get; }

属性值

IConfiguration

Services

public IServiceCollection Services { get; }

属性值

IServiceCollection

方法

AddAgent<TAgent>(AgentType, bool, bool)

public AgentsAppBuilder AddAgent<TAgent>(AgentType agentType, bool skipClassSubscriptions = false, bool skipDirectMessageSubscription = false) where TAgent : IHostableAgent

参数

agentType AgentType
skipClassSubscriptions bool
skipDirectMessageSubscription bool

返回值

AgentsAppBuilder

类型参数

TAgent

AddAgentsFromAssemblies()

public void AddAgentsFromAssemblies()

AddAgentsFromAssemblies(params Assembly[])

public AgentsAppBuilder AddAgentsFromAssemblies(params Assembly[] assemblies)

参数

assemblies Assembly[]

返回值

AgentsAppBuilder

BuildAsync()

public ValueTask<AgentsApp> BuildAsync()

返回值

ValueTask<AgentsApp>

UseInProcessRuntime(bool)

public AgentsAppBuilder UseInProcessRuntime(bool deliverToSelf = false)

参数

deliverToSelf bool

返回值

AgentsAppBuilder