Skip to content

Commit d0f498f

Browse files
authored
Merge pull request #48 from rhusar/cleanup
Cleanup only.
2 parents 28c7f9c + 6d6e410 commit d0f498f

15 files changed

Lines changed: 19 additions & 23 deletions

File tree

examples/simple/server/src/main/java/org/wildfly/extras/a2a/examples/simple/SimpleExampleAgentCardProducer.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ public AgentCard createAgentCard() {
2727
interfaces.add(
2828
new AgentInterface(
2929
TransportProtocol.JSONRPC.asString(), jsonRpcUrl));
30-
if(isRest()) {
31-
interfaces.add(
32-
new AgentInterface(
33-
TransportProtocol.HTTP_JSON.asString(), jsonRpcUrl));
30+
if (isRest()) {
31+
interfaces.add(
32+
new AgentInterface(
33+
TransportProtocol.HTTP_JSON.asString(), jsonRpcUrl));
3434
}
3535
if (isGrpcEnabled()) {
3636
interfaces.add(
@@ -68,7 +68,7 @@ private boolean isGrpcEnabled() {
6868

6969
private boolean isRest() {
7070
try {
71-
Class.forName("org.wildfly.extras.a2a.server.apps.rest.WildflyRestTransportMetadata");
71+
Class.forName("org.wildfly.extras.a2a.server.apps.rest.WildFlyRestTransportMetadata");
7272
return true;
7373
} catch (Throwable t) {
7474
return false;

examples/simple/server/src/main/java/org/wildfly/extras/a2a/examples/simple/SimpleExampleAgentExecutorProducer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public void execute(RequestContext context, AgentEmitter emitter) throws A2AErro
3838
String name = textParts.get(textParts.size() - 1).text();
3939

4040
// Simulate doing work with the LLM, and adding that as an artifact.
41-
// In this case we just add "Hello <name>" to the list of aritfacts
41+
// In this case we just add "Hello <name>" to the list of artifacts
4242
String response = "Hello " + name;
4343
emitter.addArtifact(Collections.singletonList(new TextPart(response)), null, "response", null);
4444

impl/grpc/src/main/java/org/wildfly/extras/a2a/server/apps/grpc/WildFlyGrpcHandler.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,9 @@
33
import java.util.concurrent.Executor;
44
import java.util.concurrent.Flow;
55

6-
import jakarta.inject.Inject;
7-
86
import io.a2a.jsonrpc.common.wrappers.ListTasksResult;
97
import io.a2a.server.ServerCallContext;
108
import io.a2a.server.requesthandlers.RequestHandler;
11-
import io.a2a.server.util.async.Internal;
129
import io.a2a.spec.AgentCard;
1310
import io.a2a.spec.DeleteTaskPushNotificationConfigParams;
1411
import io.a2a.spec.EventKind;

impl/grpc/src/main/java/org/wildfly/extras/a2a/server/apps/grpc/WildflyGrpcTransportMetadata.java renamed to impl/grpc/src/main/java/org/wildfly/extras/a2a/server/apps/grpc/WildFlyGrpcTransportMetadata.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import io.a2a.server.TransportMetadata;
44
import io.a2a.spec.TransportProtocol;
55

6-
public class WildflyGrpcTransportMetadata implements TransportMetadata {
6+
public class WildFlyGrpcTransportMetadata implements TransportMetadata {
77
@Override
88
public String getTransportProtocol() {
99
return TransportProtocol.GRPC.asString();
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
org.wildfly.extras.a2a.server.apps.grpc.WildflyGrpcTransportMetadata
1+
org.wildfly.extras.a2a.server.apps.grpc.WildFlyGrpcTransportMetadata

impl/jsonrpc/src/main/java/org/wildfly/extras/a2a/server/apps/jsonrpc/A2AServerResource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
import org.slf4j.LoggerFactory;
8080

8181
@Path("/")
82-
public class A2AServerResource {
82+
public class A2AServerResource {
8383

8484
private static final Logger LOGGER = LoggerFactory.getLogger(A2AServerResource.class);
8585

impl/jsonrpc/src/main/java/org/wildfly/extras/a2a/server/apps/jsonrpc/WildflyJSONRPCTransportMetadata.java renamed to impl/jsonrpc/src/main/java/org/wildfly/extras/a2a/server/apps/jsonrpc/WildFlyJSONRPCTransportMetadata.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import io.a2a.server.TransportMetadata;
44
import io.a2a.spec.TransportProtocol;
55

6-
public class WildflyJSONRPCTransportMetadata implements TransportMetadata {
6+
public class WildFlyJSONRPCTransportMetadata implements TransportMetadata {
77
@Override
88
public String getTransportProtocol() {
99
return TransportProtocol.JSONRPC.asString();
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
org.wildfly.extras.a2a.server.apps.jsonrpc.WildflyJSONRPCTransportMetadata
1+
org.wildfly.extras.a2a.server.apps.jsonrpc.WildFlyJSONRPCTransportMetadata

impl/rest/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
<packaging>jar</packaging>
1717

18-
<name>Java A2A SDK for Jakarta - HTTP+JSON/REST</name>
18+
<name>WildFly Extras - Java A2A SDK for Jakarta - HTTP+JSON/REST</name>
1919
<description>Jakarta SDK for the Agent2Agent Protocol (A2A) - HTTP+JSON/REST</description>
2020

2121
<dependencies>

impl/rest/src/main/java/org/wildfly/extras/a2a/server/apps/rest/WildflyRestTransportMetadata.java renamed to impl/rest/src/main/java/org/wildfly/extras/a2a/server/apps/rest/WildFlyRestTransportMetadata.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import io.a2a.server.TransportMetadata;
44
import io.a2a.spec.TransportProtocol;
55

6-
public class WildflyRestTransportMetadata implements TransportMetadata {
6+
public class WildFlyRestTransportMetadata implements TransportMetadata {
77
@Override
88
public String getTransportProtocol() {
99
return TransportProtocol.HTTP_JSON.asString();

0 commit comments

Comments
 (0)