Package-level declarations
Types
Link copied to clipboard
data class A2AAgentConfig(val httpClient: A2AHttpClient = JdkA2AHttpClient(), val description: String? = null, val subAgents: List<BaseAgent> = emptyList(), val beforeAgentCallbacks: List<BeforeAgentCallback> = emptyList(), val afterAgentCallbacks: List<AfterAgentCallback> = emptyList())
Functions
Link copied to clipboard
suspend fun A2AAgent(name: String, agentCardUrl: String, config: A2AAgentConfig): BaseRemoteA2AAgent
Builds a JVM A2A agent from agentCardUrl, taking its optional settings from config. Suspends on the network fetch of the AgentCard.
suspend fun A2AAgent(name: String, agentCardUrl: String, httpClient: A2AHttpClient = JdkA2AHttpClient(), description: String? = null, subAgents: List<BaseAgent> = emptyList(), beforeAgentCallbacks: List<BeforeAgentCallback> = emptyList(), afterAgentCallbacks: List<AfterAgentCallback> = emptyList()): BaseRemoteA2AAgent
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.
fun A2AAgent(name: String, agentCard: AgentCard, httpClient: A2AHttpClient = JdkA2AHttpClient(), description: String? = null, subAgents: List<BaseAgent> = emptyList(), beforeAgentCallbacks: List<BeforeAgentCallback> = emptyList(), afterAgentCallbacks: List<AfterAgentCallback> = emptyList()): BaseRemoteA2AAgent
Builds a JVM A2A agent from an already-resolved agentCard, wiring up the client so the caller never supplies a client and card separately.