pub struct JudgeGate { /* private fields */ }Expand description
A gate that asks a judge model to grade the candidate against a rubric.
Implementations§
Trait Implementations§
Source§impl Gate for JudgeGate
impl Gate for JudgeGate
Source§fn evaluate<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_req: &'life1 ModelRequest,
resp: &'life2 ModelResponse,
) -> Pin<Box<dyn Future<Output = GateResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn evaluate<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_req: &'life1 ModelRequest,
resp: &'life2 ModelResponse,
) -> Pin<Box<dyn Future<Output = GateResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Evaluate the candidate response, producing a verdict + evidence.
Auto Trait Implementations§
impl !RefUnwindSafe for JudgeGate
impl !UnwindSafe for JudgeGate
impl Freeze for JudgeGate
impl Send for JudgeGate
impl Sync for JudgeGate
impl Unpin for JudgeGate
impl UnsafeUnpin for JudgeGate
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more