Skip to main content

somatize_runtime/
lib.rs

1//! Execution engine for Soma computational graphs.
2//!
3//! Provides the runtime components that execute compiled plans:
4//! - [`GraphSession`] — the primary orchestrator: Graph + filters → compile → execute
5//! - [`executor`] — walks [`ExecutionPlan`] trees (sequence, parallel, cached, remote)
6//! - [`cache`] — LRU memory cache, local disk cache, tiered cache
7//! - [`sampler`] — hyperparameter samplers (Grid, Random, Bayesian/TPE)
8//! - [`pruner`] — early stopping strategies (Median, Percentile)
9//! - [`stream`] — chunk-based streaming executor
10//! - [`StudyRunner`] — orchestrates optimization studies
11
12pub mod cache;
13pub mod event_bus;
14pub mod executor;
15pub mod filter_library;
16pub mod graph_session;
17pub mod pbt_runner;
18pub mod pruner;
19pub mod sampler;
20pub mod stream;
21pub mod study_runner;
22
23pub use cache::{LocalCache, MemoryCache, TieredCache};
24pub use event_bus::EventBus;
25pub use executor::{Context, GraphInfo, RemoteExecutor, execute, resolve_input};
26pub use filter_library::FilterLibrary;
27pub use graph_session::{GraphSession, graph_fit, graph_predict, graph_run};
28pub use pbt_runner::{FnPbtExecutor, PbtConfig, PbtExecutor, PbtRunner, PopulationMember};
29pub use pruner::{MedianPruner, PercentilePruner, Pruner};
30pub use sampler::{BayesianSampler, GridSampler, RandomSampler, Sampler};
31pub use stream::{FittedFilter, StreamExecutor};
32pub use study_runner::{FnTrialExecutor, StudyRunner, TrialExecutor, TrialOutcome};