pub struct RoomNervousSystem {
pub room_id: String,
pub room_name: String,
pub deadband_filters: Vec<DeadbandFilter>,
pub rules: Vec<Rule>,
pub nano_model: Option<NanoModel>,
pub room_lora_trained: bool,
pub room_lora_rank: usize,
pub fleet_model_available: bool,
pub tile_buffer: Vec<TileExample>,
pub max_tile_buffer: usize,
pub stats: NervousSystemStats,
}Fields§
§room_id: String§room_name: String§deadband_filters: Vec<DeadbandFilter>§rules: Vec<Rule>§nano_model: Option<NanoModel>§room_lora_trained: bool§room_lora_rank: usize§fleet_model_available: bool§tile_buffer: Vec<TileExample>§max_tile_buffer: usize§stats: NervousSystemStatsImplementations§
Source§impl RoomNervousSystem
impl RoomNervousSystem
pub fn new(room_id: &str, room_name: &str) -> Self
Sourcepub fn with_deadband(self, deadband: f64) -> Self
pub fn with_deadband(self, deadband: f64) -> Self
Add a deadband filter for a sensor
Sourcepub fn with_nano_model(
self,
config: ModelConfig,
prompt_template: String,
) -> Self
pub fn with_nano_model( self, config: ModelConfig, prompt_template: String, ) -> Self
Enable nano model (Layer 1)
Sourcepub fn process(&mut self, reading: SensorReading) -> SignalResolution
pub fn process(&mut self, reading: SensorReading) -> SignalResolution
Process a sensor reading through the full signal chain
Sourcepub fn autonomy_level(&self) -> f64
pub fn autonomy_level(&self) -> f64
How autonomous is this room? (0.0 = fully cloud, 1.0 = fully local)
Sourcepub fn resolution_distribution(&self) -> ResolutionDistribution
pub fn resolution_distribution(&self) -> ResolutionDistribution
Get the resolution distribution
Sourcepub fn ready_for_lora(&self) -> bool
pub fn ready_for_lora(&self) -> bool
Is the room ready for LoRA training?
Sourcepub fn estimate_reduction(&self) -> f64
pub fn estimate_reduction(&self) -> f64
Estimate cloud call reduction after distillation
Trait Implementations§
Source§impl Clone for RoomNervousSystem
impl Clone for RoomNervousSystem
Source§fn clone(&self) -> RoomNervousSystem
fn clone(&self) -> RoomNervousSystem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RoomNervousSystem
impl Debug for RoomNervousSystem
Source§impl<'de> Deserialize<'de> for RoomNervousSystem
impl<'de> Deserialize<'de> for RoomNervousSystem
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RoomNervousSystem
impl RefUnwindSafe for RoomNervousSystem
impl Send for RoomNervousSystem
impl Sync for RoomNervousSystem
impl Unpin for RoomNervousSystem
impl UnsafeUnpin for RoomNervousSystem
impl UnwindSafe for RoomNervousSystem
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more