Interface AgentCardHandler

  • All Implemented Interfaces:
    com.embabel.agent.a2a.server.A2ARequestHandler , com.embabel.common.core.types.HasInfoString

    
    public interface AgentCardHandler
     implements A2ARequestHandler, HasInfoString
                        

    Exposes an A2A AgentCard and handles JSON-RPC requests routed to its path

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract AgentCard agentCard(String scheme, String host, Integer port) Returns the agent card for the A2A server.
      abstract String getPath() Relative path below root
      • Methods inherited from class com.embabel.agent.a2a.server.A2ARequestHandler

        handleJsonRpc, handleJsonRpcStream
      • Methods inherited from class com.embabel.common.core.types.HasInfoString

        infoString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • agentCard

         abstract AgentCard agentCard(String scheme, String host, Integer port)

        Returns the agent card for the A2A server. We need to provide the scheme, host, and port so that the agent card can compute the correct URL for its POST endpoint.