pub struct StrictConfig {
pub stop_after_lies: u32,
pub stop_after_fuckups: u32,
pub max_passes: u32,
}Expand description
Strict goal-loop thresholds. N == 0 disables that stop condition, matching
StrictGoalPolicy semantics. max_passes bounds the loop so an honest agent
still terminates.
Fields§
§stop_after_lies: u32§stop_after_fuckups: u32§max_passes: u32Implementations§
Source§impl StrictConfig
impl StrictConfig
pub fn goal_policy( &self, lies_override: Option<u32>, fuckups_override: Option<u32>, ) -> StrictGoalPolicy
Trait Implementations§
Source§impl Clone for StrictConfig
impl Clone for StrictConfig
Source§fn clone(&self) -> StrictConfig
fn clone(&self) -> StrictConfig
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 moreimpl Copy for StrictConfig
Source§impl Debug for StrictConfig
impl Debug for StrictConfig
Source§impl Default for StrictConfig
impl Default for StrictConfig
Source§impl<'de> Deserialize<'de> for StrictConfigwhere
StrictConfig: Default,
impl<'de> Deserialize<'de> for StrictConfigwhere
StrictConfig: 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 StrictConfig
Source§impl PartialEq for StrictConfig
impl PartialEq for StrictConfig
Source§fn eq(&self, other: &StrictConfig) -> bool
fn eq(&self, other: &StrictConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for StrictConfig
impl Serialize for StrictConfig
impl StructuralPartialEq for StrictConfig
Auto Trait Implementations§
impl Freeze for StrictConfig
impl RefUnwindSafe for StrictConfig
impl Send for StrictConfig
impl Sync for StrictConfig
impl Unpin for StrictConfig
impl UnsafeUnpin for StrictConfig
impl UnwindSafe for StrictConfig
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