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§impl Debug for ConstraintSet
impl Debug for ConstraintSet
Source§impl Default for ConstraintSet
impl Default for ConstraintSet
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
Source§impl JsonSchema for ConstraintSet
impl JsonSchema for ConstraintSet
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreAuto 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