pub struct BrainConfig {Show 13 fields
pub enabled: bool,
pub endpoint: String,
pub model: String,
pub auto_mode: bool,
pub timeout_ms: u64,
pub max_context_tokens: u32,
pub few_shot_count: usize,
pub max_sessions: usize,
pub orchestrate: bool,
pub orchestrate_interval_secs: u64,
pub escalation_model: Option<String>,
pub escalation_threshold: f64,
pub test_runners: Vec<String>,
}Expand description
Configuration for the optional local LLM brain.
When None, brain is completely disabled with zero overhead.
Fields§
§enabled: bool§endpoint: String§model: String§auto_mode: bool§timeout_ms: u64§max_context_tokens: u32§few_shot_count: usize§max_sessions: usize§orchestrate: bool§orchestrate_interval_secs: u64§escalation_model: Option<String>Optional stronger model to escalate to when the primary (model)
returns a low-confidence decision. None ⇒ routing off; every decision
uses model (today’s behavior). See brain::client::infer_routed (#370).
escalation_threshold: f64Confidence below which a primary-model decision is re-run on
escalation_model. Only consulted when an escalation model is set.
test_runners: Vec<String>Command prefixes that identify test-runner invocations. When one of
these fails (non-zero exit), the reaper fans the failure out to recent
brain-approved edits as a TestFailed outcome (#238). Empty disables
test-failure attribution.
Trait Implementations§
Source§impl Clone for BrainConfig
impl Clone for BrainConfig
Source§impl Debug for BrainConfig
impl Debug for BrainConfig
Auto Trait Implementations§
impl Freeze for BrainConfig
impl RefUnwindSafe for BrainConfig
impl Send for BrainConfig
impl Sync for BrainConfig
impl Unpin for BrainConfig
impl UnsafeUnpin for BrainConfig
impl UnwindSafe for BrainConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more