Interface A2AClientInstance

All Superinterfaces:
AgentInstance, InternalAgent

public interface A2AClientInstance extends InternalAgent
  • Method Details

    • inputKeys

      String[] inputKeys()
    • agentCard

      org.a2aproject.sdk.spec.AgentCard agentCard()
      Returns the agent card of the remote agent, fetching it from the A2A server if it has not been fetched yet. The card is normally fetched on the first invocation of the agent, so this call blocks until the fetch completes, at most for the resolution timeout of the agent, 30 seconds by default, and can be used to warm up the agent, or to fail fast, before its first invocation. Inside a declarative agentic system the A2A agent is wrapped: reach it through subagent.as(A2AClientInstance.class) on the corresponding subagent of the AgentInstance of the system.
      Throws:
      A2AAgentCardException - if the card cannot be fetched, or is not fetched within the resolution timeout
    • tenant

      default String tenant()
      Returns the tenant configured for this A2A client instance, or the one of the agent card when the card has already been fetched, or null otherwise. It never fetches the card. When non-null, this tenant is sent automatically with every message.