pub struct GuardianConfig {
pub enabled: bool,
pub model_name: Option<String>,
pub max_reviews: u32,
}Expand description
Configuration for the guardian adversarial-review terminal gate.
Mirrors GoldConfig: a plain, serde-defaulting struct surfaced per run.
When enabled is false (the default) the guardian gate is inactive and the
terminal completion path is unchanged.
Fields§
§enabled: boolMaster switch for the guardian review gate.
model_name: Option<String>Optional dedicated reviewer model. Falls back to the run’s main model.
max_reviews: u32Maximum guardian review passes per run (budget; mirrors
GoldConfig::max_auto_continuations).
Trait Implementations§
Source§impl Clone for GuardianConfig
impl Clone for GuardianConfig
Source§fn clone(&self) -> GuardianConfig
fn clone(&self) -> GuardianConfig
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 GuardianConfig
impl Debug for GuardianConfig
Source§impl Default for GuardianConfig
impl Default for GuardianConfig
Source§impl<'de> Deserialize<'de> for GuardianConfigwhere
GuardianConfig: Default,
impl<'de> Deserialize<'de> for GuardianConfigwhere
GuardianConfig: Default,
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
impl Eq for GuardianConfig
Source§impl PartialEq for GuardianConfig
impl PartialEq for GuardianConfig
Source§fn eq(&self, other: &GuardianConfig) -> bool
fn eq(&self, other: &GuardianConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for GuardianConfig
impl Serialize for GuardianConfig
impl StructuralPartialEq for GuardianConfig
Auto Trait Implementations§
impl Freeze for GuardianConfig
impl RefUnwindSafe for GuardianConfig
impl Send for GuardianConfig
impl Sync for GuardianConfig
impl Unpin for GuardianConfig
impl UnsafeUnpin for GuardianConfig
impl UnwindSafe for GuardianConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.