Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

A2A4J Client Hello World Sample

This is a sample A2A (Agent2Agent) protocol client implementation demonstrating how to use the A2A4J framework to interact with an A2A server.

Features

  • ✅ 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

Quick Start

Before running the client, please make sure the server-hello-world module is started and running on http://localhost:8089.

Prerequisites

  • Java 17 or higher
  • Maven 3.6 or higher

Build Project

# 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 Client

# Run with Maven
mvn spring-boot:run

# Or run compiled JAR
mvn clean package
java -jar target/client-hello-world-*.jar

Example Usage

The 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.