ValidatorFn

Type Alias ValidatorFn 

Source
pub type ValidatorFn = dyn Fn(&str) -> Result<(), String> + Send + Sync + 'static;
Expand description

A function type for validating LLM provider outputs. Takes a response string and returns Ok(()) if valid, or Err with an error message if invalid.