AS AgentScopeAPI 手册 / API Reference

JsonRpcTransportWrapperBuilder

public class JsonRpcTransportWrapperBuilder implements TransportWrapperBuilder<JsonRpcTransportWrapper>
源码Source io/agentscope/core/a2a/server/transport/jsonrpc/JsonRpcTransportWrapperBuilder.java:29–48

JSON Rpc 传输层包装器构建器,用于构建并配置目标实例。位于 io.agentscope.core.a2a.server.transport.jsonrpc 包,实现 TransportWrapperBuilder<JsonRpcTransportWrapper>。核心成员包括 getTransportType、build。

Builder implementation for JsonRpcTransportWrapper.

方法摘要Method Summary

方法Method说明Description
public String getTransportType()
获取传输层类型。
Returns the transport type.
public JsonRpcTransportWrapper build(AgentCard agentCard, RequestHandler requestHandler, Executor executor, AgentCard extendedAgentCard)
构建并返回最终实例。
Creates and returns an instance.

方法详情Method Detail

getTransportType

public String getTransportType()

获取传输层类型。

Returns the transport type.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/core/a2a/server/transport/jsonrpc/JsonRpcTransportWrapperBuilder.java:32–35

build

public JsonRpcTransportWrapper build(AgentCard agentCard, RequestHandler requestHandler, Executor executor, AgentCard extendedAgentCard)

构建并返回最终实例。

Creates and returns an instance.

参数Parameters
名称Name类型Type说明Description
agentCardAgentCard智能体卡片(类型 `AgentCard`)。The agent card.
requestHandlerRequestHandler请求处理器(类型 `RequestHandler`)。The request handler.
executorExecutor执行器(类型 `Executor`)。The executor.
extendedAgentCardAgentCardextended 智能体卡片(类型 `AgentCard`)。The extended agent card.
返回Returns JsonRpcTransportWrapper
返回JsonRpcTransportWrapper。Returns json rpc transport wrapper.
源码Source io/agentscope/core/a2a/server/transport/jsonrpc/JsonRpcTransportWrapperBuilder.java:37–47
基于官方固定版本源码静态生成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.