AS AgentScopeAPI 手册 / API Reference

LocalDeployerManagerBuilder

public static class LocalDeployerManagerBuilder
源码Source io/agentscope/runtime/LocalDeployManager.java:146–187

本地 Deployer 管理器构建器,用于构建并配置目标实例。位于 io.agentscope.runtime 包。核心成员包括 endpointName、host、port、protocols、protocolConfigs、corsConfigurer。

A class in io.agentscope.runtime that deploys, schedules and serves agents. Declared in io.agentscope.runtime.

方法摘要Method Summary

方法Method说明Description
public LocalDeployerManagerBuilder endpointName(String endpointName)
设置端点名称。
Performs the endpoint name operation.
public LocalDeployerManagerBuilder host(String host)
设置该配置项。
Performs the host operation.
public LocalDeployerManagerBuilder port(int port)
设置该配置项。
Performs the port operation.
public LocalDeployerManagerBuilder protocols(List<Protocol> protocols)
设置该配置项。
Performs the protocols operation.
public LocalDeployerManagerBuilder protocolConfigs(List<ProtocolConfig> protocolConfigs)
设置该配置项。
Performs the protocol configs operation.
public LocalDeployerManagerBuilder corsConfigurer(Consumer<CorsRegistry> corsConfigurer)
设置该配置项。
Performs the cors configurer operation.
public LocalDeployManager build()
构建并返回最终实例。
Creates and returns an instance.

方法详情Method Detail

endpointName

public LocalDeployerManagerBuilder endpointName(String endpointName)

设置端点名称。

Performs the endpoint name operation.

参数Parameters
名称Name类型Type说明Description
endpointNameString端点名称(类型 `String`)。The endpoint name.
返回Returns LocalDeployerManagerBuilder
返回LocalDeployerManagerBuilder。Returns local deployer manager builder.
源码Source io/agentscope/runtime/LocalDeployManager.java:154–157

host

public LocalDeployerManagerBuilder host(String host)

设置该配置项。

Performs the host operation.

参数Parameters
名称Name类型Type说明Description
hostStringhost(类型 `String`)。The host.
返回Returns LocalDeployerManagerBuilder
返回LocalDeployerManagerBuilder。Returns local deployer manager builder.
源码Source io/agentscope/runtime/LocalDeployManager.java:159–162

port

public LocalDeployerManagerBuilder port(int port)

设置该配置项。

Performs the port operation.

参数Parameters
名称Name类型Type说明Description
portintport(类型 `int`)。The port.
返回Returns LocalDeployerManagerBuilder
返回LocalDeployerManagerBuilder。Returns local deployer manager builder.
源码Source io/agentscope/runtime/LocalDeployManager.java:164–167

protocols

public LocalDeployerManagerBuilder protocols(List<Protocol> protocols)

设置该配置项。

Performs the protocols operation.

参数Parameters
名称Name类型Type说明Description
protocolsList<Protocol>protocols(类型 `List`)。The protocols.
返回Returns LocalDeployerManagerBuilder
返回LocalDeployerManagerBuilder。Returns local deployer manager builder.
源码Source io/agentscope/runtime/LocalDeployManager.java:169–172

protocolConfigs

public LocalDeployerManagerBuilder protocolConfigs(List<ProtocolConfig> protocolConfigs)

设置该配置项。

Performs the protocol configs operation.

参数Parameters
名称Name类型Type说明Description
protocolConfigsList<ProtocolConfig>协议 Configs(类型 `List`)。The protocol configs.
返回Returns LocalDeployerManagerBuilder
返回LocalDeployerManagerBuilder。Returns local deployer manager builder.
源码Source io/agentscope/runtime/LocalDeployManager.java:174–177

corsConfigurer

public LocalDeployerManagerBuilder corsConfigurer(Consumer<CorsRegistry> corsConfigurer)

设置该配置项。

Performs the cors configurer operation.

参数Parameters
名称Name类型Type说明Description
corsConfigurerConsumer<CorsRegistry>cors Configurer(类型 `Consumer`)。The cors configurer.
返回Returns LocalDeployerManagerBuilder
返回LocalDeployerManagerBuilder。Returns local deployer manager builder.
源码Source io/agentscope/runtime/LocalDeployManager.java:179–182

build

public LocalDeployManager build()

构建并返回最终实例。

Creates and returns an instance.

返回Returns LocalDeployManager
返回LocalDeployManager。Returns local deploy manager.
源码Source io/agentscope/runtime/LocalDeployManager.java:184–186
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.