AS AgentScopeAPI 手册 / API Reference

ResponseApiProtocolConfigUtils

public class ResponseApiProtocolConfigUtils
源码Source io/agentscope/runtime/protocol/responseapi/ResponseApiProtocolConfigUtils.java:26–41

响应 API 协议配置 Utils,承载智能体的部署、调度与服务化运行。位于 io.agentscope.runtime.protocol.responseapi 包。核心成员包括 getConfigIfAbsent。

Utils for ResponseApiProtocolConfig.

方法摘要Method Summary

方法Method说明Description
public static ResponseApiProtocolConfig getConfigIfAbsent(ObjectProvider<ProtocolConfig> protocolConfigs)
static
获取 `getConfigIfAbsent`。
Get ResponseAPI protocol configuration from the provided configurations, returning a default one if absent

方法详情Method Detail

getConfigIfAbsent

public static ResponseApiProtocolConfig getConfigIfAbsent(ObjectProvider<ProtocolConfig> protocolConfigs)
static

获取 getConfigIfAbsent。

Get ResponseAPI protocol configuration from the provided configurations, returning a default one if absent

参数Parameters
名称Name类型Type说明Description
protocolConfigsObjectProvider<ProtocolConfig>协议 Configs(类型 `ObjectProvider`)。the provider of protocol configurations to search from
返回Returns ResponseApiProtocolConfig
返回ResponseApiProtocolConfig。the first found ResponseAPI protocol configuration, or a newly built default one if none found
源码Source io/agentscope/runtime/protocol/responseapi/ResponseApiProtocolConfigUtils.java:34–40
基于官方固定版本源码静态生成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.