pub struct RedTeamGenerator { /* private fields */ }Expand description
Generates adversarial red-team scenarios from the built-in probe library.
Implementations§
Source§impl RedTeamGenerator
impl RedTeamGenerator
pub fn new(config: RedTeamConfig) -> Self
Sourcepub fn generate(&self, agent: &AgentFile) -> Vec<Scenario>
pub fn generate(&self, agent: &AgentFile) -> Vec<Scenario>
Generate red-team scenarios for the given agent.
Scenarios are built from the static probe library and tagged with the
RedTeam source label. The agent’s constraints are embedded in the
pass_criteria so the scorer can validate compliance.
Auto Trait Implementations§
impl Freeze for RedTeamGenerator
impl RefUnwindSafe for RedTeamGenerator
impl Send for RedTeamGenerator
impl Sync for RedTeamGenerator
impl Unpin for RedTeamGenerator
impl UnsafeUnpin for RedTeamGenerator
impl UnwindSafe for RedTeamGenerator
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