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
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
This is the integration of the [A2A Java SDK](https://github.com/a2aproject/a2a-java) for use in Jakarta servers. It is currently tested on **WildFly**, but it should be usable in other compliant Jakarta servers such as Tomcat, Jetty, and OpenLiberty. For Quarkus, use the reference implementation in the [A2A Java SDK](https://github.com/a2aproject/a2a-java) project.
4
4
5
-
This implementation is aligned with **A2A Protocol Specification 1.0.0**.
5
+
This implementation is aligned with **A2A Protocol Specification 1.0** and uses **A2A Java SDK 1.0.0.Alpha2** (pre-release).
6
6
7
7
For more information about the A2A protocol, see [here](https://github.com/a2aproject/A2A).
Copy file name to clipboardExpand all lines: examples/simple/README.md
+9-5Lines changed: 9 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,15 +15,19 @@ Currently, the `grpc` dependencies also include the `jsonrpc` ones, mainly becau
15
15
16
16
Note that we need to exclude some transitive dependencies of jars which are provided by WildFly. Other Jakarta runtimes may provide different dependencies and need different exclusions.
17
17
18
-
To create your own agent, you need to implement `AgentCard` and `AgentExecutor` beans.
18
+
To create your own agent, you need to implement `AgentCard` and `AgentExecutor` beans.
19
19
20
-
* The `AgentCard` shows the capabilities of the agent.
21
-
* The `AgentExecutor` handles the interaction with the LLM.
20
+
* The `AgentCard` shows the capabilities of the agent, including supported transports and protocol version. This is the public version of the AgentCard, as this example does not provide an extended AgentCard. To provide an extended AgentCard, you produce it the same way, but with the @ExtendedAgentCard qualifier.
21
+
* The `AgentExecutor` handles the interaction with the LLM and task execution.
22
22
23
23
You can see our simple implementations at:
24
24
25
-
*[`SimpleExampleAgentCardProducer.java`](./server/src/main/java/org/wildfly/extras/a2a/examples/simple/SimpleExampleAgentCardProducer.java) - note that this has some logic to determine the transports that exist on the classpath, which is then added to the additionalInterfaces of the AgentCard
*[`SimpleExampleAgentCardProducer.java`](./server/src/main/java/org/wildfly/extras/a2a/examples/simple/SimpleExampleAgentCardProducer.java) - configures the agent card with transport URLs and protocol version. Note that this has logic to determine which transports exist on the classpath, which are then added to the supportedInterfaces of the AgentCard.
26
+
*[`SimpleExampleAgentExecutorProducer.java`](./server/src/main/java/org/wildfly/extras/a2a/examples/simple/SimpleExampleAgentExecutorProducer.java) - implements task execution using `AgentEmitter` to manage task lifecycle and artifacts
27
+
28
+
The `AgentExecutor` interface provides two methods:
29
+
*`execute(RequestContext context, AgentEmitter emitter)` - handles incoming requests, using the `AgentEmitter` to signal work progress, add artifacts, and complete tasks
Copy file name to clipboardExpand all lines: examples/simple/server/src/main/java/org/wildfly/extras/a2a/examples/simple/SimpleExampleAgentExecutorProducer.java
0 commit comments