Expand description
§adk-server
HTTP server and A2A protocol for ADK agents.
§Overview
This crate provides HTTP infrastructure:
create_app- Create REST API servercreate_app_with_a2a- Add A2A protocol supportRemoteA2aAgent- Connect to remote A2A agentsServerConfig- Server configuration
§Quick Start
use adk_server::{create_app, ServerConfig};
use std::sync::Arc;
// let config = ServerConfig { ... };
// let app = create_app(config);
// let listener = tokio::net::TcpListener::bind("0.0.0.0:8080").await?;
// axum::serve(listener, app).await?;§A2A Protocol
Expose agents via Agent-to-Agent protocol:
GET /.well-known/agent.json- Agent cardPOST /a2a- JSON-RPC endpointPOST /a2a/stream- SSE streaming
Re-exports§
pub use a2a::build_agent_card;pub use a2a::build_agent_skills;pub use a2a::A2aClient;pub use a2a::Executor;pub use a2a::ExecutorConfig;pub use a2a::RemoteA2aAgent;pub use a2a::RemoteA2aAgentBuilder;pub use a2a::RemoteA2aConfig;pub use config::SecurityConfig;pub use config::ServerConfig;pub use rest::create_app;pub use rest::create_app_with_a2a;pub use rest::A2aController;pub use rest::RuntimeController;pub use rest::SessionController;