File tree Expand file tree Collapse file tree 3 files changed +16
-3
lines changed
Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Original file line number Diff line number Diff line change 2121 <artifactId >a2a-java-sdk-reference-jsonrpc</artifactId >
2222 <version >${project.version} </version >
2323 </dependency >
24+ <dependency >
25+ <groupId >io.github.a2asdk</groupId >
26+ <artifactId >a2a-java-sdk-reference-grpc</artifactId >
27+ <version >${project.version} </version >
28+ </dependency >
2429 <dependency >
2530 <groupId >io.quarkus</groupId >
2631 <artifactId >quarkus-rest-jackson</artifactId >
5560 </plugin >
5661 </plugins >
5762 </build >
58- </project >
63+ </project >
Original file line number Diff line number Diff line change 11package io .a2a .tck .server ;
22
3+ import java .util .ArrayList ;
34import java .util .Collections ;
45import java .util .List ;
56
910import io .a2a .server .PublicAgentCard ;
1011import io .a2a .spec .AgentCapabilities ;
1112import io .a2a .spec .AgentCard ;
13+ import io .a2a .spec .AgentInterface ;
1214import io .a2a .spec .AgentSkill ;
15+ import io .a2a .spec .TransportProtocol ;
1316
1417@ ApplicationScoped
1518public class AgentCardProducer {
@@ -37,7 +40,10 @@ public AgentCard agentCard() {
3740 .tags (Collections .singletonList ("hello world" ))
3841 .examples (List .of ("hi" , "hello world" ))
3942 .build ()))
40- .protocolVersion ("0.2.5" )
43+ .protocolVersion ("0.3.0" )
44+ .additionalInterfaces (List .of (
45+ new AgentInterface (TransportProtocol .JSONRPC .asString (), "http://localhost:9999" ),
46+ new AgentInterface (TransportProtocol .GRPC .asString (), "http://localhost:9001" )))
4147 .build ();
4248 }
4349}
Original file line number Diff line number Diff line change 1- %dev.quarkus.http.port =9999
1+ # The GrpcHandler @ApplicationScoped annotation is not compatible with Quarkus
2+ quarkus.arc.exclude-types =io.a2a.grpc.handler.GrpcHandler
3+ %dev.quarkus.http.port =9999
You can’t perform that action at this time.
0 commit comments