Skip to main content

stop

Function stop 

Source
pub fn stop(
    session: &str,
    input: &Value,
    plan: &dyn Fn() -> String,
    prompts: &str,
    selected: &[&Challenge],
) -> Option<Value>
Expand description

The Stop hook’s single call, after the conscience decided. plan reads the drone’s last message (harness::plan), only once the queen is on; prompts the engineer’s prompts this session, selected the lessons the conscience asked. Some(block once) when the queen was asked; its reason then carries the conscience’s questions too.