pub struct QualityConfig {
pub self_check: bool,
pub proposer_provider: String,
pub checker_provider: String,
pub trigger: TriggerPolicy,
pub min_evidence: f32,
pub async_run: bool,
pub latency_budget_ms: u64,
pub per_call_timeout_ms: u64,
pub max_assertions: usize,
pub max_response_chars: usize,
pub cache_disabled_for_checker: bool,
pub flag_marker: String,
}Expand description
Configuration for the MARCH self-check quality pipeline.
Fields§
§self_check: boolEnable post-response self-check pipeline.
proposer_provider: StringAdvisory: preferred provider for the Proposer role (MVP: no-op).
checker_provider: StringAdvisory: preferred provider for the Checker role (MVP: no-op).
trigger: TriggerPolicyWhen to trigger the pipeline.
min_evidence: f32Minimum evidence strength to avoid flagging an assertion (0.0–1.0).
async_run: boolIf false (default), pipeline blocks response until done.
latency_budget_ms: u64Hard ceiling on total pipeline latency in milliseconds.
per_call_timeout_ms: u64Per-LLM-call timeout in milliseconds.
max_assertions: usizeMaximum assertions to extract from one response.
max_response_chars: usizeSkip pipeline when response exceeds this many characters.
cache_disabled_for_checker: boolSuppress prompt-cache emission on Checker provider.
flag_marker: StringMarker appended to response when issues are flagged.
Trait Implementations§
Source§impl Clone for QualityConfig
impl Clone for QualityConfig
Source§fn clone(&self) -> QualityConfig
fn clone(&self) -> QualityConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 QualityConfig
impl Debug for QualityConfig
Source§impl Default for QualityConfig
impl Default for QualityConfig
Source§impl<'de> Deserialize<'de> for QualityConfig
impl<'de> Deserialize<'de> for QualityConfig
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 QualityConfig
impl RefUnwindSafe for QualityConfig
impl Send for QualityConfig
impl Sync for QualityConfig
impl Unpin for QualityConfig
impl UnsafeUnpin for QualityConfig
impl UnwindSafe for QualityConfig
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