A2aRocketMQController
@Controller @RequestMapping("/a2a-rocketmq") public class A2aRocketMQController extends A2aController
源码Source
io/agentscope/runtime/protocol/a2a/controller/A2aRocketMQController.java:61–187A 2 a RocketMQ 控制器,支持智能体之间的发现、委派与协作。位于 io.agentscope.runtime.protocol.a2a.controller 包,继承自 A2aController。核心成员包括 init、A2aRocketMQController。
A class in io.agentscope.runtime.protocol.a2a.controller that supports discovery, delegation and collaboration between agents. Declared in io.agentscope.runtime.protocol.a2a.controller. Extends A2aController.
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public A2aRocketMQController(Runner runner, AgentCard agentCard, ObjectProvider<ProtocolConfig> protocolConfigs) | 初始化 `A2aRocketMQController` 实例。 Creates a new instance. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public void init() | 初始化 `A2aRocketMQController` 实例。 Creates a new instance. |
构造器详情Constructor Detail
A2aRocketMQController
public A2aRocketMQController(Runner runner, AgentCard agentCard, ObjectProvider<ProtocolConfig> protocolConfigs)
初始化 A2aRocketMQController 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
runner | Runner | 运行器(类型 `Runner`)。The runner. |
agentCard | AgentCard | 智能体卡片(类型 `AgentCard`)。The agent card. |
protocolConfigs | ObjectProvider<ProtocolConfig> | 协议 Configs(类型 `ObjectProvider`)。The protocol configs. |
源码Source
io/agentscope/runtime/protocol/a2a/controller/A2aRocketMQController.java:76–78方法详情Method Detail
init
public void init()
初始化 A2aRocketMQController 实例。
Creates a new instance.
源码Source
io/agentscope/runtime/protocol/a2a/controller/A2aRocketMQController.java:80–93