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§fn default() -> QualityConfig
fn default() -> QualityConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for QualityConfig
impl<'de> Deserialize<'de> for QualityConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<QualityConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<QualityConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for QualityConfig
impl Serialize for QualityConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request