-
Notifications
You must be signed in to change notification settings - Fork 2
Channel Router
Raul Montoya Cardenas edited this page Jul 29, 2026
·
2 revisions

Generated with Grok Build: Grok 4.5 · xAI Imagine (/imagine)
Module: src/router.rs
Generic multi-channel SNN router: integrates channel stimuli through a bank of NeuromodNeuron (NIF) units over a fixed number of internal timesteps, then emits a sparse RoutingDecision.
let mut router = ChannelRouter::new(); // default 3 channels (AHL-compatible)
let config = RouterConfig {
channel_count: 8,
..RouterConfig::default()
};
let mut router = ChannelRouter::with_config(config);let decision = router.route(&[0.8, 0.2, 0.1]);
// decision.active_channels, decision.firing_rates
// decision.is_active(i), decision.is_empty()
let decision = router.route_modulated(&inputs, &NeuromodState::rewarded());Internal constants (crate source): e.g. integration timesteps, minimum fire rate for activation.
NeuromodState presets: balanced(), stressed(), rewarded().
Adaptation APIs include apply_feedback, set_global_gain, weight_matrix, fatigue, etc.
| Alias | Prefer |
|---|---|
AhlRouter |
ChannelRouter |
AHL_NUM_CHANNELS (3) |
RouterConfig.channel_count |
NeuromodNeuron is router-internal — see Crate Boundary.
Last updated: July 29, 2026
Updated by: Grok Build: Grok 4.5
Package tip reference: 1486191 (main)
Devin DeepWiki: commit 14861916 · synaptic-mesh