pub struct SchemaGate { /* private fields */ }Expand description
Validates the candidate (parsed as JSON) against a minimal JSON-Schema subset: top-level
type, required, and per-property type. Covers tool-call args and extraction tasks.
Implementations§
Trait Implementations§
Source§impl Clone for SchemaGate
impl Clone for SchemaGate
Source§fn clone(&self) -> SchemaGate
fn clone(&self) -> SchemaGate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SchemaGate
impl Debug for SchemaGate
Source§impl Gate for SchemaGate
impl Gate for SchemaGate
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 Freeze for SchemaGate
impl RefUnwindSafe for SchemaGate
impl Send for SchemaGate
impl Sync for SchemaGate
impl Unpin for SchemaGate
impl UnsafeUnpin for SchemaGate
impl UnwindSafe for SchemaGate
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