bb_dsl/contracts/mod.rs
1//! User-facing Contract traits — canonical home is
2//! `bb-runtime::contracts`. This module re-exports the traits for
3//! authoring ergonomics so `bb_dsl::contracts::Index` etc. keep
4//! resolving.
5
6pub use bb_runtime::contracts::*;
7
8/// Re-export of the `bb::Aggregator` Contract trait for federated aggregators.
9pub mod aggregator {
10 pub use bb_runtime::contracts::aggregator::*;
11}
12/// Re-export of the `bb::Backend` Contract trait for tensor compute backends.
13pub mod backend {
14 pub use bb_runtime::contracts::backend::*;
15}
16/// Re-export of the shared default-walker bridges between `Backend`'s per-op methods and whole-graph `execute`.
17pub mod backend_default_walk {
18 pub use bb_runtime::contracts::backend_default_walk::*;
19}
20/// Re-export of the `bb::Codec` Contract trait for bidirectional storage-type codecs.
21pub mod codec {
22 pub use bb_runtime::contracts::codec::*;
23}
24/// Re-export of the `bb::DataSource` Contract trait for data loaders.
25pub mod data_source {
26 pub use bb_runtime::contracts::data_source::*;
27}
28/// Re-export of the `bb::Index` Contract trait for vector indexes.
29pub mod index {
30 pub use bb_runtime::contracts::index::*;
31}
32/// Re-export of the `bb::Model` Contract trait for ML models.
33pub mod model {
34 pub use bb_runtime::contracts::model::*;
35}
36/// Re-export of the `bb::PeerSelector` Contract trait for peer-selection protocols.
37pub mod peer_selector {
38 pub use bb_runtime::contracts::peer_selector::*;
39}