Usage Guide
1. Initiate Call (Client)
// 1. Construct MCP Request JSON
String mcpRequest = "{" +
"\"jsonrpc\": \"2.0\"," +
"\"method\": \"tools/call\"," +
"\"params\": { \"name\": \"weather\", \"_agentId\": \"weather-agent\" }," +
"\"id\": \"req-001\"" +
"}";
// 2. Send via EventMesh SDK
eventMeshProducer.publish(new A2AProtocolTransportObject(mcpRequest));
Search before asking
Documentation Related
https://github.com/apache/eventmesh/blob/master/docs/a2a-protocol/README_EN.md#1-initiate-call-client
Are you willing to submit PR?
Code of Conduct