Skip to main content

collect

Function collect 

Source
pub fn collect(
    store: &mut Store,
    run_id: &str,
    request_id: &str,
    actor: &str,
    at_ms: u64,
    reader: &mut impl BufRead,
    writer: &mut impl Write,
) -> Result<(u64, Value), HumanCliError>
Expand description

Renders the request, reads one answer line, and submits it through the store arbitration. Returns the appended humanResponded seq and the interpreted response (the interactive loop inspects supervision suspend answers to stop re-prompting).