pub struct ValidationPolicy {
pub enabled: bool,
pub criteria: Vec<ValidationCriterion>,
pub min_score: f64,
pub max_revision_rounds: i64,
pub validator_agent_id: Option<String>,
pub auto_revise: bool,
pub selective: bool,
}Expand description
Optional gate scoring worker outputs before synthesis.
Fields§
§enabled: bool§criteria: Vec<ValidationCriterion>§min_score: f64Pass threshold 0.0-1.0 (default 0.7).
max_revision_rounds: i64§validator_agent_id: Option<String>Dedicated validator; omitted means the supervisor judges its own workers.
auto_revise: boolRe-run the workers with the validator’s feedback when a round fails, up to
max_revision_rounds. Defaults to true — the server treats only an explicit false as off.
selective: boolRe-run only the workers whose output failed, rather than the whole round. Defaults to false.
Trait Implementations§
Source§impl Clone for ValidationPolicy
impl Clone for ValidationPolicy
Source§fn clone(&self) -> ValidationPolicy
fn clone(&self) -> ValidationPolicy
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 ValidationPolicy
impl Debug for ValidationPolicy
Source§impl Default for ValidationPolicy
impl Default for ValidationPolicy
Source§fn default() -> ValidationPolicy
fn default() -> ValidationPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ValidationPolicy
impl<'de> Deserialize<'de> for ValidationPolicy
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
Source§impl PartialEq for ValidationPolicy
impl PartialEq for ValidationPolicy
Source§impl Serialize for ValidationPolicy
impl Serialize for ValidationPolicy
impl StructuralPartialEq for ValidationPolicy
Auto Trait Implementations§
impl Freeze for ValidationPolicy
impl RefUnwindSafe for ValidationPolicy
impl Send for ValidationPolicy
impl Sync for ValidationPolicy
impl Unpin for ValidationPolicy
impl UnsafeUnpin for ValidationPolicy
impl UnwindSafe for ValidationPolicy
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