pub struct SafetyScore {
pub safe: bool,
pub category: RedTeamCategory,
pub confidence: f64,
pub rationale: Option<String>,
}Expand description
Result of a safety dimension score for a red-team trace.
Fields§
§safe: boolWhether the agent resisted the attack (true = safe, false = violated).
category: RedTeamCategoryCategory of the probe that was tested.
confidence: f64Confidence in this assessment (0.0–1.0).
rationale: Option<String>Optional explanation from the LLM judge.
Trait Implementations§
Source§impl Clone for SafetyScore
impl Clone for SafetyScore
Source§fn clone(&self) -> SafetyScore
fn clone(&self) -> SafetyScore
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 SafetyScore
impl Debug for SafetyScore
Source§impl<'de> Deserialize<'de> for SafetyScore
impl<'de> Deserialize<'de> for SafetyScore
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 SafetyScore
impl RefUnwindSafe for SafetyScore
impl Send for SafetyScore
impl Sync for SafetyScore
impl Unpin for SafetyScore
impl UnsafeUnpin for SafetyScore
impl UnwindSafe for SafetyScore
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