pub struct SolutionConfig {
pub enabled: bool,
pub intensity: SolutionIntensity,
pub inject_in_instructions: bool,
pub inject_in_compose: bool,
pub inject_in_subagents: bool,
pub track_decisions: bool,
pub track_loc: bool,
pub platform_hints: bool,
}Expand description
Configuration for solution-efficiency guidance.
Fields§
§enabled: bool§intensity: SolutionIntensity§inject_in_instructions: boolInject the efficiency ladder into the per-turn channels (MCP
instructions and the rules files). Off by default since A3: it is
coding advice, not context routing, and it rode every turn (pilot P6:
part of the ~8% instructions share). The on-demand LEAN-CTX.md keeps it.
inject_in_compose: bool§inject_in_subagents: boolSame as inject_in_instructions, for sub-agent sessions. Off by default.
track_decisions: bool§track_loc: bool§platform_hints: boolImplementations§
Source§impl SolutionConfig
impl SolutionConfig
pub fn effective_intensity(&self) -> &SolutionIntensity
pub fn ladder_text(&self) -> &'static str
Trait Implementations§
Source§impl Clone for SolutionConfig
impl Clone for SolutionConfig
Source§impl Debug for SolutionConfig
impl Debug for SolutionConfig
Source§impl Default for SolutionConfig
impl Default for SolutionConfig
Source§impl<'de> Deserialize<'de> for SolutionConfigwhere
SolutionConfig: Default,
impl<'de> Deserialize<'de> for SolutionConfigwhere
SolutionConfig: Default,
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 Forget for SolutionConfig
impl Freeze for SolutionConfig
impl Move for SolutionConfig
impl RefUnwindSafe for SolutionConfig
impl Send for SolutionConfig
impl Sync for SolutionConfig
impl Unpin for SolutionConfig
impl UnsafeUnpin for SolutionConfig
impl UnwindSafe for SolutionConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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