Skip to main content

confirm_title

Function confirm_title 

Source
pub fn confirm_title(
    store: &Store,
    block_id: &str,
    candidate: &str,
    turn: Option<u32>,
    still_current: impl Fn() -> bool,
) -> Result<bool, String>
Expand description

The title was re-evaluated from scratch (refresh, no current title shown to the model) and candidate is a rewording of it: keep the title, and say it was judged still right now, so it is not asked about again at every message. Ok(true) when the stamp was written. Nothing happens for a candidate that is not a usable title (the model abstained: the title stays aged and is tried again), for a title that is not there or is not the same goal, or for a superseded request.