Skip to main content

AgentTextMetricRegistration

Trait AgentTextMetricRegistration 

Source
pub trait AgentTextMetricRegistration<RLC: RLComponentsTypes>: Sized {
    // Required method
    fn register(self, builder: RLTraining<RLC>) -> RLTraining<RLC>;
}
Available on crate feature rl only.
Expand description

Trait to fake variadic generics for train step text metrics.

Required Methods§

Source

fn register(self, builder: RLTraining<RLC>) -> RLTraining<RLC>

Register the metrics.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<M1, M2, M3, M4, M5, M6, RLC: RLComponentsTypes + 'static> AgentTextMetricRegistration<RLC> for (M1, M2, M3, M4, M5, M6)
where <RLC::ActionContext as ItemLazy>::ItemSync: Adaptor<M1::Input> + Adaptor<M2::Input> + Adaptor<M3::Input> + Adaptor<M4::Input> + Adaptor<M5::Input> + Adaptor<M6::Input>, M1: Metric + 'static, M2: Metric + 'static, M3: Metric + 'static, M4: Metric + 'static, M5: Metric + 'static, M6: Metric + 'static,

Source§

fn register(self, builder: RLTraining<RLC>) -> RLTraining<RLC>

Source§

impl<M1, M2, M3, M4, M5, RLC: RLComponentsTypes + 'static> AgentTextMetricRegistration<RLC> for (M1, M2, M3, M4, M5)
where <RLC::ActionContext as ItemLazy>::ItemSync: Adaptor<M1::Input> + Adaptor<M2::Input> + Adaptor<M3::Input> + Adaptor<M4::Input> + Adaptor<M5::Input>, M1: Metric + 'static, M2: Metric + 'static, M3: Metric + 'static, M4: Metric + 'static, M5: Metric + 'static,

Source§

fn register(self, builder: RLTraining<RLC>) -> RLTraining<RLC>

Source§

impl<M1, M2, M3, M4, RLC: RLComponentsTypes + 'static> AgentTextMetricRegistration<RLC> for (M1, M2, M3, M4)
where <RLC::ActionContext as ItemLazy>::ItemSync: Adaptor<M1::Input> + Adaptor<M2::Input> + Adaptor<M3::Input> + Adaptor<M4::Input>, M1: Metric + 'static, M2: Metric + 'static, M3: Metric + 'static, M4: Metric + 'static,

Source§

fn register(self, builder: RLTraining<RLC>) -> RLTraining<RLC>

Source§

impl<M1, M2, M3, RLC: RLComponentsTypes + 'static> AgentTextMetricRegistration<RLC> for (M1, M2, M3)
where <RLC::ActionContext as ItemLazy>::ItemSync: Adaptor<M1::Input> + Adaptor<M2::Input> + Adaptor<M3::Input>, M1: Metric + 'static, M2: Metric + 'static, M3: Metric + 'static,

Source§

fn register(self, builder: RLTraining<RLC>) -> RLTraining<RLC>

Source§

impl<M1, M2, RLC: RLComponentsTypes + 'static> AgentTextMetricRegistration<RLC> for (M1, M2)
where <RLC::ActionContext as ItemLazy>::ItemSync: Adaptor<M1::Input> + Adaptor<M2::Input>, M1: Metric + 'static, M2: Metric + 'static,

Source§

fn register(self, builder: RLTraining<RLC>) -> RLTraining<RLC>

Source§

impl<M1, RLC: RLComponentsTypes + 'static> AgentTextMetricRegistration<RLC> for (M1,)
where <RLC::ActionContext as ItemLazy>::ItemSync: Adaptor<M1::Input>, M1: Metric + 'static,

Source§

fn register(self, builder: RLTraining<RLC>) -> RLTraining<RLC>

Implementors§