Skip to main content

Critic

Trait Critic 

Source
pub trait Critic: Send + Sync {
    // Required methods
    fn evaluate(&self, trace: &Trace) -> f64;
    fn propose_delta(&self, trace: &Trace) -> PolicyDelta;
    fn name(&self) -> &'static str;
}
Expand description

Trait for critics that evaluate reasoning traces

Required Methods§

Source

fn evaluate(&self, trace: &Trace) -> f64

Evaluate a trace and return a loss value (lower is better)

Source

fn propose_delta(&self, trace: &Trace) -> PolicyDelta

Propose policy changes based on trace

Source

fn name(&self) -> &'static str

Get critic name

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§