AS AgentScopeAPI 手册 / API Reference

ProtocolConfig

public interface ProtocolConfig
源码Source io/agentscope/runtime/protocol/ProtocolConfig.java:24–31

用于每个类型Protocol的协议配置。位于 io.agentscope.runtime.protocol 包。核心成员包括 type、name。

Protocol configuration for each type Protocol.

方法摘要Method Summary

方法Method说明Description
public Protocol type()
返回类型。
Returns the type.
default public String name()
default
返回名称。
Returns the name.

方法详情Method Detail

type

public Protocol type()

返回类型。

Returns the type.

返回Returns Protocol
返回协议。Returns protocol.
源码Source io/agentscope/runtime/protocol/ProtocolConfig.java:26

name

default public String name()
default

返回名称。

Returns the name.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/runtime/protocol/ProtocolConfig.java:28–30
基于官方固定版本源码静态生成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.