ResponseApiHandlerConfiguration
public class ResponseApiHandlerConfiguration
源码Source
io/agentscope/runtime/protocol/responseapi/ResponseApiHandlerConfiguration.java:23–51响应 API 处理器配置,保存相关配置项。位于 io.agentscope.runtime.protocol.responseapi 包。核心成员包括 getInstance、responseApiHandler、ResponseApiHandlerConfiguration。
A class in io.agentscope.runtime.protocol.responseapi that deploys, schedules and serves agents. Declared in io.agentscope.runtime.protocol.responseapi.
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public ResponseApiHandlerConfiguration(Runner runner, ResponseApiProtocolConfig responseApiProtocolConfig) | 初始化 `ResponseApiHandlerConfiguration` 实例。 Creates a new instance. |
方法摘要Method Summary
构造器详情Constructor Detail
ResponseApiHandlerConfiguration
public ResponseApiHandlerConfiguration(Runner runner, ResponseApiProtocolConfig responseApiProtocolConfig)
初始化 ResponseApiHandlerConfiguration 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
runner | Runner | 运行器(类型 `Runner`)。The runner. |
responseApiProtocolConfig | ResponseApiProtocolConfig | 响应 API 协议配置(类型 `ResponseApiProtocolConfig`)。The response api protocol config. |
源码Source
io/agentscope/runtime/protocol/responseapi/ResponseApiHandlerConfiguration.java:29–31方法详情Method Detail
getInstance
public static ResponseApiHandlerConfiguration getInstance(Runner runner, ObjectProvider<ProtocolConfig> protocolConfigs)
static
获取实例。
Returns the instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
runner | Runner | 运行器(类型 `Runner`)。The runner. |
protocolConfigs | ObjectProvider<ProtocolConfig> | 协议 Configs(类型 `ObjectProvider`)。The protocol configs. |
ResponseApiHandlerConfiguration返回ResponseApiHandlerConfiguration。Returns response api handler configuration.
源码Source
io/agentscope/runtime/protocol/responseapi/ResponseApiHandlerConfiguration.java:33–46responseApiHandler
public ResponseApiHandler responseApiHandler()
返回响应 API 处理器。
Returns the response api handler.
ResponseApiHandler返回ResponseApiHandler。Returns response api handler.
源码Source
io/agentscope/runtime/protocol/responseapi/ResponseApiHandlerConfiguration.java:48–50