pub struct ToolValidationConfig {
pub run: RunConfig,
pub cases_per_tool: usize,
pub validators: Vec<ToolValidationFn>,
}Expand description
Configuration for bulk tool validation.
Fields§
§run: RunConfigRun-level configuration and predicates.
cases_per_tool: usizeNumber of cases to exercise per tool.
validators: Vec<ToolValidationFn>Validators invoked after each tool call.
Implementations§
Source§impl ToolValidationConfig
impl ToolValidationConfig
Sourcepub fn with_cases_per_tool(self, cases_per_tool: usize) -> Self
pub fn with_cases_per_tool(self, cases_per_tool: usize) -> Self
Sets the per-tool case count.
Sourcepub fn with_run_config(self, run: RunConfig) -> Self
pub fn with_run_config(self, run: RunConfig) -> Self
Sets the run configuration used for validation.
Sourcepub fn with_validator(self, validator: ToolValidationFn) -> Self
pub fn with_validator(self, validator: ToolValidationFn) -> Self
Adds a response validator ahead of the defaults.
Trait Implementations§
Source§impl Clone for ToolValidationConfig
impl Clone for ToolValidationConfig
Source§fn clone(&self) -> ToolValidationConfig
fn clone(&self) -> ToolValidationConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ToolValidationConfig
impl !RefUnwindSafe for ToolValidationConfig
impl Send for ToolValidationConfig
impl Sync for ToolValidationConfig
impl Unpin for ToolValidationConfig
impl !UnwindSafe for ToolValidationConfig
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