pub trait ResultScorer {
// Required methods
fn score(&self, result: &Value) -> ResultMetadata;
fn tool_name(&self) -> &str;
}Expand description
Trait for scoring tool results
Required Methods§
Sourcefn score(&self, result: &Value) -> ResultMetadata
fn score(&self, result: &Value) -> ResultMetadata
Score a tool result and return metadata
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".