host
Compose protocol adapters (A2A, optional AG-UI) around a shared [crate::Agent].
When to use [AgentHost] vs [crate::a2a::A2aApp] alone: use [crate::a2a::A2aApp] when you only
expose A2A. Use [AgentHostBuilder] when you want one HTTP router that merges A2A routes
with optional AG-UI routes (native + event-stream).
Structs
Section titled “Structs”AgentHostBuilder
Section titled “AgentHostBuilder”Builder for [AgentHost] — enable A2A and/or AG-UI adapters before [Self::build].
Methods
fn new(agent: Agent) -> SelfStart from a fully built [crate::Agent].
fn build(self) -> SdkResult<AgentHost>Finish configuration. Fails if no adapter was enabled (A2A and/or AG-UI).
AgentHost
Section titled “AgentHost”Single host value combining the shared [crate::Agent] with enabled protocol adapters.