pub trait SyncModelExecutor: Send + Sync {
// Required methods
fn execute(
&self,
inputs: &[Input],
model_params: Option<&ModelParameters>,
context: &ExecutionContext,
config: &ExecutionConfig,
) -> Result<ExecutionResult, ReplayError>;
fn supports_model(&self, model_name: &str) -> bool;
fn executor_name(&self) -> &str;
// Provided method
fn compare_outputs(
&self,
original: &[Output],
replayed: &[Output],
tolerance: f64,
) -> ComparisonResult { ... }
}Expand description
Sync version of ModelExecutor for non-async contexts