Push init code into rocketmq-a2a (#1) * update Change-Id: I2b5f6364699c1c9e07b6ad381b801c49ce641559 * optimize the code Change-Id: If2495360c76970ac88387e59e3ac15a6237e2f3e --------- Co-authored-by: drizzle.zk <drizzle.zk@alibaba-inc.com>
This project aims to help developers quickly integrate Apache RocketMQ with A2A.
The choice of communication middleware is very important when building a distributed Agent architecture with high availability and scalability.
Add a dependency using maven:
<!--add dependency in pom.xml--> <dependency> <groupId>org.apache.rocketmq</groupId> <artifactId>rocketmq-a2a</artifactId> <version>${RELEASE.VERSION}</version> </dependency>
Create an A2A Client Using RocketMQTransport and RocketMQTransportConfig
// build client with RocketMQTransport and RocketMQTransportConfig RocketMQTransportConfig rocketMQTransportConfig = new RocketMQTransportConfig(); rocketMQTransportConfig.setAccessKey(accessKey); rocketMQTransportConfig.setSecretKey(secretKey); rocketMQTransportConfig.setWorkAgentResponseGroupID(WorkAgentResponseGroupID); rocketMQTransportConfig.setWorkAgentResponseTopic(WorkAgentResponseTopic); rocketMQTransportConfig.setRocketMQInstanceID(RocketMQInstanceId); Client client=Client.builder(finalAgentCard) .addConsumers(consumers) .streamingErrorHandler(streamingErrorHandler) .withTransport(RocketMQTransport.class,rocketMQTransportConfig) .build();
Add RocketMQA2AServerRoutes to enable server-side request forwarding over the RocketMQ protocol, specifically for server implementations based on Quarkus
<!--add this in application.properties--> quarkus.index-dependency.rocketmq-a2a.group-id=org.apache.rocketmq quarkus.index-dependency.rocketmq-a2a.artifact-id=rocketmq-a2a
Apache RocketMQ + A2A + Google ADK(Agent Development Kit) sample
Please see the rocketmq-multiagent-base-adk.
Apache RocketMQ + A2A + AgentScope Sample Will Add soon ~
We are always very happy to have contributions, whether for trivial cleanups or big new features. Please see the RocketMQ main website to read the details.
Apache License, Version 2.0 Copyright (C) Apache Software Foundation