pub struct RlmConfig {
pub mode: String,
pub threshold: f64,
pub max_iterations: usize,
pub max_subcalls: usize,
pub runtime: String,
pub root_model: Option<String>,
pub subcall_model: Option<String>,
pub history_trigger_messages: usize,
}Expand description
RLM configuration.
§Examples
use codetether_rlm::RlmConfig;
let cfg = RlmConfig::default();
assert_eq!(cfg.mode, "auto");
assert_eq!(cfg.max_iterations, 15);Fields§
§mode: StringMode: “auto”, “off”, or “always”
threshold: f64Threshold ratio of context window to trigger RLM (0.0-1.0)
max_iterations: usizeMaximum iterations for RLM processing.
max_subcalls: usizeMaximum recursive sub-calls
runtime: StringPreferred runtime: “rust”, “bun”, or “python”
root_model: Option<String>Model reference for root processing (provider/model or bare model).
subcall_model: Option<String>Model reference for subcalls (provider/model or bare model).
history_trigger_messages: usizeMessage count trigger for RLM compaction. 0 disables.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RlmConfig
impl<'de> Deserialize<'de> for RlmConfig
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 RlmConfig
impl RefUnwindSafe for RlmConfig
impl Send for RlmConfig
impl Sync for RlmConfig
impl Unpin for RlmConfig
impl UnsafeUnpin for RlmConfig
impl UnwindSafe for RlmConfig
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