This is a sample A2A (Agent2Agent) protocol client implementation demonstrating how to use the A2A4J framework to interact with an A2A server.
- ✅ A2A protocol client implementation
- ✅ JSON-RPC 2.0 synchronous and streaming communication
- ✅ Example of sending messages to an A2A server
- ✅ Real-time status updates and progress tracking
- ✅ Detailed logging
Before running the client, please make sure the
server-hello-worldmodule is started and running on http://localhost:8089.
- Java 17 or higher
- Maven 3.6 or higher
# Clone repository (if you haven't already)
git clone https://github.com/a2ap/a2a4j.git
cd a2a4j
# Build entire project
mvn clean install
# Navigate to sample directory
cd a2a4j-samples/client-hello-world# Run with Maven
mvn spring-boot:run
# Or run compiled JAR
mvn clean package
java -jar target/client-hello-world-*.jarThe client will attempt to connect to the A2A server (default: http://localhost:8089) and send a sample message. You can modify the message and server URL in the configuration file.
For more details, see the source code and comments.