Lyin-OTTF opened a new pull request, #5430:
URL: https://github.com/apache/eventmesh/pull/5430

   Fixes #5226.
   
   The client/server examples in `docs/a2a-protocol/` call `new 
A2AProtocolTransportObject(...)`, but that type is not part of the public SDK: 
in the code it only exists as the private inner class 
`SimpleA2AProtocolTransportObject` inside `EnhancedA2AProtocolAdaptor`, so the 
snippet cannot compile as written.
   
   This PR replaces the examples with the path used by the shipped example 
`eventmesh-examples/src/main/java/org/apache/eventmesh/a2a/demo/mcp/McpCaller.java`
 and by section 5.1.3 of `docs/feature/a2a.md`:
   
   - client: wrap the JSON-RPC payload in a CloudEvent whose type is 
`org.apache.eventmesh.a2a.tools.call.req` and which carries the `protocol=A2A` 
extension, then `producer.publish(event)`;
   - server: publish the JSON-RPC response the same way with type 
`org.apache.eventmesh.a2a.common.response`, and document the ingress mapping 
the adaptor performs (`mcptype=response`, `collaborationid=<request id>`, per 
`EnhancedA2AProtocolAdaptor`).
   
   Also fixes the broken Java string concatenation in the Chinese server 
example and adds a note that `A2AProtocolTransportObject` is an internal 
adaptor type.


-- 
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]

Reply via email to