Skip to content

Commit 1f2d12f

Browse files
committed
fix: Update tck agent to indicate support for gRPC
1 parent 7b296cf commit 1f2d12f

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

tck/pom.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@
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>
@@ -55,4 +60,4 @@
5560
</plugin>
5661
</plugins>
5762
</build>
58-
</project>
63+
</project>

tck/src/main/java/io/a2a/tck/server/AgentCardProducer.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package io.a2a.tck.server;
22

3+
import java.util.ArrayList;
34
import java.util.Collections;
45
import java.util.List;
56

@@ -9,7 +10,9 @@
910
import io.a2a.server.PublicAgentCard;
1011
import io.a2a.spec.AgentCapabilities;
1112
import io.a2a.spec.AgentCard;
13+
import io.a2a.spec.AgentInterface;
1214
import io.a2a.spec.AgentSkill;
15+
import io.a2a.spec.TransportProtocol;
1316

1417
@ApplicationScoped
1518
public 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:9000")))
4147
.build();
4248
}
4349
}
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
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

0 commit comments

Comments
 (0)