pub enum QualityError {
BodyLoggingDisabled,
OverBudget {
cost: f64,
budget: f64,
},
Judge(String),
NoScorable,
}Expand description
Errors surfaced by score_quality.
Variants§
BodyLoggingDisabled
Caller invoked scoring without the body-logging opt-in. Tier 3 requires raw prompts + responses on each sampled row.
OverBudget
Pre-flight estimate cost_per_judge_call_usd × total_samples
exceeded the caller’s budget. Scoring did not dispatch.
Judge(String)
The JudgeProvider failed mid-run. Holds the provider’s message.
NoScorable
Every sampled row was missing either the prompt body or the historical response body — nothing was sent to the judge.
Trait Implementations§
Source§impl Debug for QualityError
impl Debug for QualityError
Source§impl Display for QualityError
impl Display for QualityError
Source§impl Error for QualityError
impl Error for QualityError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<QualityError> for ReplayWithQualityError
impl From<QualityError> for ReplayWithQualityError
Source§fn from(source: QualityError) -> Self
fn from(source: QualityError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for QualityError
impl RefUnwindSafe for QualityError
impl Send for QualityError
impl Sync for QualityError
impl Unpin for QualityError
impl UnsafeUnpin for QualityError
impl UnwindSafe for QualityError
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