protocol_droid/application/a2a/mod.rs
1//! A2A's application layer — use cases the wire codec routes into.
2//!
3//! Each handler is the *consumer* of a narrow port trait declared here. The
4//! port trait's return type is a domain error, not an infrastructure one, so
5//! the handler can be tested without a socket and the adapter can map
6//! `reqwest` / `tokio` failures into the domain shape at the boundary.
7
8pub(crate) mod handler;
9mod push_notification;
10mod typed_dispatch;
11mod url_filter;
12
13pub mod conformance;
14
15pub use handler::{A2aError, A2aRequestContext, A2aRequestHandler};
16pub use push_notification::{
17 NotificationConfig, NotificationConfigError, PushNotificationDelivery, WebhookUrl,
18};
19pub use typed_dispatch::A2aRequestHandlerExt;
20pub use url_filter::{FilterDenial, UrlFilter};