Skip to content

Commit 336ad17

Browse files
committed
Make examples use proper A2AClient
Rename the tck package to avoid name clashes in my IDE
1 parent 01c776d commit 336ad17

File tree

5 files changed

+19
-25
lines changed

5 files changed

+19
-25
lines changed

tck/src/main/java/io/a2a/examples/helloworld/server/A2AHttpClientProducer.java renamed to examples/src/main/java/io/a2a/examples/helloworld/server/A2AHttpClientProducer.java

File renamed without changes.

examples/src/main/java/io/a2a/examples/helloworld/server/TmpA2AHttpClientProducer.java

Lines changed: 0 additions & 23 deletions
This file was deleted.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package io.a2a.tck.server;
2+
3+
import io.a2a.http.A2AHttpClient;
4+
import io.a2a.http.JdkA2AHttpClient;
5+
6+
import jakarta.enterprise.context.ApplicationScoped;
7+
import jakarta.enterprise.inject.Produces;
8+
9+
@ApplicationScoped
10+
public class A2AHttpClientProducer {
11+
12+
@Produces
13+
public A2AHttpClient httpClient() {
14+
return new JdkA2AHttpClient();
15+
}
16+
17+
}

tck/src/main/java/io/a2a/examples/helloworld/server/AgentCardProducer.java renamed to tck/src/main/java/io/a2a/tck/server/AgentCardProducer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.a2a.examples.helloworld.server;
1+
package io.a2a.tck.server;
22

33
import java.util.Collections;
44
import java.util.List;

tck/src/main/java/io/a2a/examples/helloworld/server/AgentExecutorProducer.java renamed to tck/src/main/java/io/a2a/tck/server/AgentExecutorProducer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.a2a.examples.helloworld.server;
1+
package io.a2a.tck.server;
22

33
import jakarta.annotation.PreDestroy;
44
import jakarta.enterprise.context.ApplicationScoped;

0 commit comments

Comments
 (0)