pub enum InputMode {
SchemaValid,
}Expand description
Input strategy for a for_each_tool invariant. Resolves at run
time against the live tool list (the runner has access to each
tool’s input schema and annotations).
The default behaviour (when input is omitted) is unchanged from
v0.3.0–v0.3.2: the runner uses fixed: if set, otherwise
generate:, otherwise an empty {} payload.
Variants§
SchemaValid
Generate a payload matching the live tool’s input schema with
crate::mutate::schema_gen::GenMode::Conform. Use when an
invariant tests the valid-input contract of a tool: the
pre-v0.3.3 default of fixed: {} would trigger schema-validation
errors on tools with required parameters and mask real bugs.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for InputMode
impl<'de> Deserialize<'de> for InputMode
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 Copy for InputMode
impl Eq for InputMode
impl StructuralPartialEq for InputMode
Auto Trait Implementations§
impl Freeze for InputMode
impl RefUnwindSafe for InputMode
impl Send for InputMode
impl Sync for InputMode
impl Unpin for InputMode
impl UnsafeUnpin for InputMode
impl UnwindSafe for InputMode
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,
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.