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
Copy file name to clipboardExpand all lines: README.md
+61-1Lines changed: 61 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,14 @@ If you plan to use the Express integration (imports from `@a2a-js/sdk/server/exp
29
29
npm install express
30
30
```
31
31
32
+
### For gRPC Usage
33
+
34
+
If you plan to use the GRPC transport (imports from `@a2a-js/sdk/server/grpc` or `@a2a-js/sdk/client/grpc`), you must install the required peer dependencies:
35
+
36
+
```bash
37
+
npm install @grpc/grpc-js @bufbuild/protobuf
38
+
```
39
+
32
40
You can also find some samples [here](https://github.com/a2aproject/a2a-js/tree/main/src/samples).
33
41
34
42
---
@@ -41,7 +49,7 @@ This SDK implements the A2A Protocol Specification [`v0.3.0`](https://a2a-protoc
41
49
| :--- | :---: | :---: |
42
50
|**JSON-RPC**| ✅ | ✅ |
43
51
|**HTTP+JSON/REST**| ✅ | ✅ |
44
-
|**gRPC**| ❌|❌|
52
+
|**GRPC**(Node.js only) | ✅|✅|
45
53
46
54
## Quickstart
47
55
@@ -54,6 +62,7 @@ The core of an A2A server is the `AgentExecutor`, which contains your agent's lo
console.log(`🚀 Server started on localhost:4001`);
145
+
});
126
146
```
127
147
128
148
### Client: Sending a Message
@@ -163,6 +183,46 @@ async function run() {
163
183
awaitrun();
164
184
```
165
185
186
+
### gRPC Client: Sending a Message
187
+
188
+
The [`ClientFactory`](src/client/factory.ts) has to be created explicitly passing the [`GrpcTransportFactory`](src/client/transports/grpc/grpc_transport.ts).
0 commit comments