A2AAgent
Builds a JVM A2A agent from an already-resolved agentCard, wiring up the client so the caller never supplies a client and card separately.
Streaming is chosen per invocation from RunConfig.streamingMode (gated by the card's capability), matching ADK Go/Python -- there is no per-agent streaming flag.
Parameters
this agent's identifier in the ADK agent tree (event author and transfer_to_agent target), independent of the card's advertised name.
the resolved remote agent card.
HTTP client backing the JSON-RPC transport; defaults to a JdkA2AHttpClient.
overrides the agent's description; when null, the remote card's description is used (matching ADK Python/Go).
child agents in the ADK agent tree.
callbacks invoked before the agent runs.
callbacks invoked after the agent runs.
Builds a JVM A2A agent from agentCardUrl, auto-fetching the AgentCard from the remote agent's /.well-known/agent-card.json (like ADK Python/Go). Suspends on the network fetch.
Parameters
this agent's identifier in the ADK agent tree (event author and transfer_to_agent target), independent of the card's advertised name.
the remote agent's base URL or full agent-card URL.
HTTP client backing the JSON-RPC transport; defaults to a JdkA2AHttpClient.
overrides the agent's description; when null, the remote card's description is used (matching ADK Python/Go).
child agents in the ADK agent tree.
callbacks invoked before the agent runs.
callbacks invoked after the agent runs.
Builds a JVM A2A agent from a resolved agentCard, taking its optional settings from config.
Builds a JVM A2A agent from agentCardUrl, taking its optional settings from config. Suspends on the network fetch of the AgentCard.