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())

Optional settings for the A2AAgent factories, grouped into one object so Java callers can assemble them with Builder instead of a long positional call. Every property defaults to the same value the A2AAgent parameters use.

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.

fun A2AAgent(name: String, agentCard: AgentCard, config: A2AAgentConfig): BaseRemoteA2AAgent

Builds a JVM A2A agent from a resolved agentCard, taking its optional settings from config.

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.