pub struct ConstraintSet {
pub rules: Vec<String>,
pub forbidden_paths: Vec<String>,
pub forbidden_commands: Vec<String>,
pub max_tokens: Option<u64>,
pub max_seconds: Option<u64>,
pub human_checkpoint: Vec<String>,
}Fields§
§rules: Vec<String>Literal rules injected into the node prompt.
forbidden_paths: Vec<String>§forbidden_commands: Vec<String>§max_tokens: Option<u64>§max_seconds: Option<u64>§human_checkpoint: Vec<String>Any action matching these requires a human before proceeding. Bezos Type 1: irreversible decisions do not get made at machine speed.
Implementations§
Source§impl ConstraintSet
impl ConstraintSet
Sourcepub fn frozen_git_rules() -> Vec<String>
pub fn frozen_git_rules() -> Vec<String>
The frozen git rule set that made large parallel runs safe in the corpus. Emitted into every parallel node unless the author opts out.
Sourcepub fn merged(
global: &ConstraintSet,
node: Option<&ConstraintSet>,
) -> ConstraintSet
pub fn merged( global: &ConstraintSet, node: Option<&ConstraintSet>, ) -> ConstraintSet
Merge a global set with a node override; node rules append, node limits win where present.
Trait Implementations§
Source§impl Clone for ConstraintSet
impl Clone for ConstraintSet
Source§fn clone(&self) -> ConstraintSet
fn clone(&self) -> ConstraintSet
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 ConstraintSet
impl Debug for ConstraintSet
Source§impl Default for ConstraintSet
impl Default for ConstraintSet
Source§fn default() -> ConstraintSet
fn default() -> ConstraintSet
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConstraintSet
impl<'de> Deserialize<'de> for ConstraintSet
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 ConstraintSet
impl RefUnwindSafe for ConstraintSet
impl Send for ConstraintSet
impl Sync for ConstraintSet
impl Unpin for ConstraintSet
impl UnsafeUnpin for ConstraintSet
impl UnwindSafe for ConstraintSet
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