pub struct QomMetrics {
pub schema_fidelity: f64,
pub instruction_compliance: Option<f64>,
pub groundedness: Option<f64>,
pub determinism_jitter: Option<f64>,
pub ontology_adherence: Option<f64>,
pub tool_outcome_correctness: Option<f64>,
}Expand description
Computed QoM metrics for a payload
Fields§
§schema_fidelity: f64Schema Fidelity score (0.0-1.0)
instruction_compliance: Option<f64>Instruction Compliance score (0.0-1.0)
groundedness: Option<f64>Groundedness score (0.0-1.0)
determinism_jitter: Option<f64>Determinism Jitter score (0.0-1.0)
ontology_adherence: Option<f64>Ontology Adherence score (0.0-1.0)
tool_outcome_correctness: Option<f64>Tool Outcome Correctness (pass/fail as 1.0/0.0)
Implementations§
Source§impl QomMetrics
impl QomMetrics
Sourcepub fn schema_valid() -> Self
pub fn schema_valid() -> Self
Create metrics with perfect schema fidelity
Sourcepub fn schema_invalid() -> Self
pub fn schema_invalid() -> Self
Create metrics indicating schema failure
Sourcepub fn with_instruction_compliance(self, score: f64) -> Self
pub fn with_instruction_compliance(self, score: f64) -> Self
Set instruction compliance score
Sourcepub fn with_tool_outcome_correctness(self, score: f64) -> Self
pub fn with_tool_outcome_correctness(self, score: f64) -> Self
Set tool outcome correctness score
Sourcepub fn with_groundedness(self, score: f64) -> Self
pub fn with_groundedness(self, score: f64) -> Self
Set groundedness score
Sourcepub fn with_ontology_adherence(self, score: f64) -> Self
pub fn with_ontology_adherence(self, score: f64) -> Self
Set ontology adherence score
Sourcepub fn with_determinism_jitter(self, score: f64) -> Self
pub fn with_determinism_jitter(self, score: f64) -> Self
Set determinism jitter score
Trait Implementations§
Source§impl Clone for QomMetrics
impl Clone for QomMetrics
Source§fn clone(&self) -> QomMetrics
fn clone(&self) -> QomMetrics
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 QomMetrics
impl Debug for QomMetrics
Source§impl Default for QomMetrics
impl Default for QomMetrics
Source§fn default() -> QomMetrics
fn default() -> QomMetrics
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for QomMetrics
impl<'de> Deserialize<'de> for QomMetrics
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 QomMetrics
impl RefUnwindSafe for QomMetrics
impl Send for QomMetrics
impl Sync for QomMetrics
impl Unpin for QomMetrics
impl UnwindSafe for QomMetrics
Blanket Implementations§
Source§impl<T> AnyExt for T
impl<T> AnyExt for T
Source§fn downcast_ref<T>(this: &Self) -> Option<&T>where
T: Any,
fn downcast_ref<T>(this: &Self) -> Option<&T>where
T: Any,
Attempts to downcast this to
T behind referenceSource§fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where
T: Any,
fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where
T: Any,
Attempts to downcast this to
T behind mutable referenceSource§fn downcast_rc<T>(this: Rc<Self>) -> Result<Rc<T>, Rc<Self>>where
T: Any,
fn downcast_rc<T>(this: Rc<Self>) -> Result<Rc<T>, Rc<Self>>where
T: Any,
Attempts to downcast this to
T behind Rc pointerSource§fn downcast_arc<T>(this: Arc<Self>) -> Result<Arc<T>, Arc<Self>>where
T: Any,
fn downcast_arc<T>(this: Arc<Self>) -> Result<Arc<T>, Arc<Self>>where
T: Any,
Attempts to downcast this to
T behind Arc pointerSource§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