1#![allow(missing_docs)]
47
48pub mod auto_tuner;
49pub mod darwin_guard;
50pub mod engine;
51pub mod ewc;
52pub mod loops;
53pub mod lora;
54pub mod reasoning_bank;
55pub mod time_compat;
56pub mod trajectory;
57pub mod types;
58
59#[cfg(feature = "serde-support")]
60pub mod export;
61
62#[cfg(feature = "serde-support")]
63pub mod training;
64
65#[cfg(feature = "wasm")]
66pub mod wasm;
67
68#[cfg(feature = "napi")]
69pub mod napi_simple;
70
71pub use engine::SonaEngine;
73pub use ewc::{EwcConfig, EwcPlusPlus, TaskFisher};
74pub use loops::{BackgroundLoop, InstantLoop, LoopCoordinator};
75pub use lora::{BaseLoRA, LoRAEngine, LoRALayer, MicroLoRA};
76pub use reasoning_bank::{PatternConfig, ReasoningBank};
77pub use trajectory::{TrajectoryBuffer, TrajectoryBuilder, TrajectoryIdGen};
78pub use types::{
79 LearnedPattern, LearningSignal, PatternType, QueryTrajectory, SignalMetadata, SonaConfig,
80 TrajectoryStep,
81};
82
83#[cfg(feature = "serde-support")]
84pub use export::{
85 DatasetExporter, ExportConfig, ExportError, ExportResult, ExportType, HuggingFaceExporter,
86 HuggingFaceHub, PretrainConfig, PretrainPipeline, SafeTensorsExporter,
87};
88
89#[cfg(feature = "serde-support")]
90pub use training::{
91 AgentExport, AgentFactory, AgentHandle, AgentStats, AgentType, AggregationResult, BatchConfig,
92 CoordinatorStats, DataSizeHint, EphemeralAgent, EpochStats, FederatedCoordinator,
93 FederatedTopology, ManagedAgent, PipelineStage, TaskDomain, TemplatePreset, TrainingMethod,
94 TrainingMetrics, TrainingPipeline, TrainingResult, TrainingTemplate, VerticalConfig,
95};
96
97#[cfg(feature = "wasm")]
98pub use wasm::WasmSonaEngine;