A2aAgent
One remote A2A agent, reached through the official A2A Java SDK (JSON-RPC binding, A2A 1.0) and its Android HTTP client.
Parameters
the agent's base URL (its card is read from /.well-known/agent-card.json) or the card's URL.
sent with every request, e.g. Authorization.
Constructors
Functions
This remote agent as a SubAgent for dev.ai.elements.core.agent.SubAgents: the orchestrator delegates to it with delegate_task, and its reply streams into the UI like any sub-agent's.
The card if it arrives within timeoutMs, else null — for listing agents at the start of a turn without waiting on one that is unreachable. The fetch keeps going in the background, so a slow agent's card is ready next time; an agent that failed is not asked again for retryAfterMs. Unlike wrapping card in a timeout, this returns on time even while the HTTP client is stuck in a blocking connect.