Class JSONRPCTransportProvider
java.lang.Object
org.a2aproject.sdk.client.transport.jsonrpc.JSONRPCTransportProvider
- All Implemented Interfaces:
ClientTransportProvider<JSONRPCTransport, JSONRPCTransportConfig>
public class JSONRPCTransportProvider
extends Object
implements ClientTransportProvider<JSONRPCTransport, JSONRPCTransportConfig>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(@Nullable JSONRPCTransportConfig clientTransportConfig, AgentCard agentCard, AgentInterface agentInterface) Create a client transport.Get the name of the client transport.
-
Constructor Details
-
JSONRPCTransportProvider
public JSONRPCTransportProvider()
-
-
Method Details
-
create
public JSONRPCTransport create(@Nullable JSONRPCTransportConfig clientTransportConfig, AgentCard agentCard, AgentInterface agentInterface) throws A2AClientException Description copied from interface:ClientTransportProviderCreate a client transport.- Specified by:
createin interfaceClientTransportProvider<JSONRPCTransport, JSONRPCTransportConfig>- Parameters:
clientTransportConfig- the client transport config to useagentInterface- the remote agent's interface- Returns:
- the client transport
- Throws:
A2AClientException- if an error occurs trying to create the client
-
getTransportProtocol
Description copied from interface:ClientTransportProviderGet the name of the client transport.- Specified by:
getTransportProtocolin interfaceClientTransportProvider<JSONRPCTransport, JSONRPCTransportConfig>
-
getTransportProtocolClass
- Specified by:
getTransportProtocolClassin interfaceClientTransportProvider<JSONRPCTransport, JSONRPCTransportConfig>
-