Skip to main content

TextVerifier

Type Alias TextVerifier 

Source
pub type TextVerifier<'a> = dyn FnMut(&str, &str) -> Option<String> + 'a;
Expand description

Grounded verification call: given a verify prompt and system prompt, returns the raw model response, or None when the verifier is unavailable (routed off, transport failure, or generation error). Callers treat None as “skip verification, proceed undegraded”. The deterministic block numbering, response parsing, and stripping live in [super::text], so the closure is just the model call — mirroring TextGenerator but without a prompt tier.