pub struct QualityConfig {
pub body_logging_enabled: bool,
pub total_samples: u32,
pub budget_usd: f64,
pub cost_per_judge_call_usd: f64,
pub seed: u64,
}Expand description
Configuration for one Tier 3 quality scoring run.
Fields§
§body_logging_enabled: boolRequired gate: caller must surface body-logging opt-in to the org.
false causes score_quality to error with
QualityError::BodyLoggingDisabled.
total_samples: u32Total samples to draw across all strata (cap).
budget_usd: f64Hard cost ceiling for judge calls in this run (USD).
cost_per_judge_call_usd: f64Estimated USD per judge call (typically $0.001–$0.01 for a Sonnet
judge). Multiplied by total_samples for the up-front budget check.
seed: u64Random seed for stratified sampling. Determinism contract.
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 (const: unstable) · 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<'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