Skip to main content

inspect_text_completion

Function inspect_text_completion 

Source
pub fn inspect_text_completion(body: &str) -> Result<(), FailureClass>
Expand description

Pure acceptance for the non-streaming text check: content must be exactly CF_HERMES_OK in a well-formed completion. Returns the failure class, or Ok(()) when the content criterion holds (latency is checked by the caller).