asSubAgent
fun A2aAgent.asSubAgent(card: AgentCard, name: String = subAgentName(card.name())): SubAgent(source)
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.
Parameters
name
how the orchestrator refers to it; defaults to the card name.