Skip to main content

adk_server/a2a/
mod.rs

1pub mod agent_card;
2pub mod client;
3pub mod events;
4pub mod executor;
5pub mod jsonrpc;
6pub mod metadata;
7pub mod parts;
8pub mod processor;
9pub mod remote_agent;
10pub mod types;
11
12pub use agent_card::{build_agent_card, build_agent_skills};
13pub use client::A2aClient;
14pub use events::{event_to_message, message_to_event};
15pub use executor::{Executor, ExecutorConfig};
16pub use jsonrpc::{
17    JsonRpcError, JsonRpcRequest, JsonRpcResponse, MessageSendConfig, MessageSendParams, Task,
18    TasksCancelParams, TasksGetParams,
19};
20pub use metadata::{InvocationMeta, to_invocation_meta};
21pub use parts::{a2a_parts_to_adk, adk_parts_to_a2a};
22pub use remote_agent::{RemoteA2aAgent, RemoteA2aAgentBuilder, RemoteA2aConfig};
23pub use types::*;
24
25#[cfg(feature = "a2a-interceptors")]
26pub mod audit_log;
27#[cfg(feature = "a2a-interceptors")]
28pub mod bearer_auth;
29#[cfg(feature = "a2a-interceptors")]
30pub mod interceptor;
31#[cfg(feature = "a2a-interceptors")]
32pub mod rate_limit;
33#[cfg(feature = "a2a-interceptors")]
34pub use audit_log::AuditLogInterceptor;
35#[cfg(feature = "a2a-interceptors")]
36pub use bearer_auth::{BearerAuthInterceptor, TokenValidator};
37#[cfg(feature = "a2a-interceptors")]
38pub use interceptor::{
39    A2aDelegationContext, A2aError as A2aInterceptorError, A2aInterceptor, InterceptorChain,
40    InterceptorDecision,
41};
42#[cfg(feature = "a2a-interceptors")]
43pub use rate_limit::RateLimitInterceptor;
44
45#[cfg(feature = "a2a-v1")]
46pub mod convenience;
47#[cfg(feature = "a2a-v1")]
48pub use convenience::{A2aServer, A2aServerApp, A2aServerBuilder};
49#[cfg(feature = "a2a-v1")]
50pub mod v1;