pub trait TTTVerifier: Send + Sync {
// Required method
fn verify<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
context: &'life1 TTTContext,
engine: &'life2 TorchEngine,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}Expand description
Trait for TTT verifiers (future extension)
This trait allows plugging in different verification strategies:
- Cross-model verification (use another model to verify)
- Cycle consistency (for multimodal)
- Execution verification (for code)
Required Methods§
Sourcefn verify<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
context: &'life1 TTTContext,
engine: &'life2 TorchEngine,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn verify<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
context: &'life1 TTTContext,
engine: &'life2 TorchEngine,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Verify that TTT adaptation is beneficial
Returns true if adaptation should be accepted