JvmA2AAgentDemo
object JvmA2AAgentDemo
Example agent demonstrating how to use RemoteA2AAgent to communicate with a remote A2A-compliant agent.
This demo showcases:
Initializing an io.a2a.client.Client with a specific transport (REST).
Using ServiceLoader (implicit via A2ACardResolver) for platform-specific HTTP client resolution (JDK vs Android).
Wrapping the remote agent as a standard ADK com.google.adk.kt.agents.Agent.