Skip to main content

ResultScorer

Trait ResultScorer 

Source
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§

Source

fn score(&self, result: &Value) -> ResultMetadata

Score a tool result and return metadata

Source

fn tool_name(&self) -> &str

Tool name this scorer handles

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§