You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Split the examples into two directories, one for client and one for server, and update dependencies accordingly (#124)
This PR splits the examples into two different modules, one for client
and one for server and updates the instructions accordingly. It also
cleans up some dependencies and removes unnecessary ones.
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -344,7 +344,7 @@ A complete example of an A2A client communicating with a Python A2A server is av
344
344
- Sending regular and streaming messages
345
345
- Receiving and processing responses
346
346
347
-
The example includes detailed instructions on how to run both the Python server and the Java client using JBang. Check out the [example's README](src/main/java/io/a2a/examples/helloworld/README.md) for more information.
347
+
The example includes detailed instructions on how to run both the Python server and the Java client using JBang. Check out the [example's README](examples/client/src/main/java/io/a2a/examples/helloworld/README.md) for more information.
Copy file name to clipboardExpand all lines: examples/client/src/main/java/io/a2a/examples/helloworld/README.md
+2-16Lines changed: 2 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,15 +54,15 @@ cd /path/to/a2a-java
54
54
mvn clean install
55
55
```
56
56
57
-
### Option 1: Using the JBang script (Recommended)
57
+
### Using the JBang script
58
58
59
59
A JBang script is provided in the example directory to make running the client easy:
60
60
61
61
1. Make sure you have JBang installed. If not, follow the [JBang installation guide](https://www.jbang.dev/documentation/guide/latest/installation.html).
62
62
63
63
2. Navigate to the example directory:
64
64
```bash
65
-
cd examples/src/main/java/io/a2a/examples/helloworld/client
65
+
cd examples/client/src/main/java/io/a2a/examples/helloworld
66
66
```
67
67
68
68
3. Run the client using the JBang script:
@@ -72,20 +72,6 @@ A JBang script is provided in the example directory to make running the client e
72
72
73
73
This script automatically handles the dependencies and sources for you.
74
74
75
-
### Option 2: Running with explicit classpath
76
-
77
-
Alternatively, you can run the Java client with JBang by specifying the classpath explicitly:
78
-
79
-
1. First, build the project with Maven:
80
-
```bash
81
-
mvn clean package
82
-
```
83
-
84
-
2. Run the Java client with JBang from the root of the a2a-java project:
0 commit comments