Lyin-OTTF opened a new pull request, #5431: URL: https://github.com/apache/eventmesh/pull/5431
Companion to #5430 (targeting master). @qqeasonchen asked in #5430 for the develop branch to be fixed as well. On develop the A2A docs live in `docs/feature/a2a.md` (the `docs/a2a-protocol/` directory only exists on master), and the same broken examples are there:/n/n- the client example publishes `new A2AProtocolTransportObject(mcpRequest)`, which is the private inner class `SimpleA2AProtocolTransportObject` inside `EnhancedA2AProtocolAdaptor` and cannot compile as written; - the server example publishes `new A2AProtocolTransportObject(mcpResponse)` and additionally has a broken string concatenation around `event.getId()`. This PR applies the same replacement as #5430: wrap the JSON-RPC payload in a CloudEvent (type `org.apache.eventmesh.a2a.tools.call.req` / `org.apache.eventmesh.a2a.common.response`) with the required extensions (`protocol`, `mcptype`, `a2amethod`, `targetagent`, `collaborationid`), the subscribed topic as `subject`, and `application/cloudevents+json` as data content type — the path used by the shipped example `eventmesh-examples/src/main/java/org/apache/eventmesh/a2a/demo/mcp/McpCaller.java` — and fixes the concatenation. Fixes #5226 on the develop branch. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
