Skip to main content

find_last_user_prompt

Function find_last_user_prompt 

Source
pub(crate) fn find_last_user_prompt(
    reader: impl Read + Seek,
) -> Result<Option<String>>
Expand description

Find the final real user prompt by scanning an NDJSON session reader backwards.

ยงErrors

Returns an error when the reader cannot seek, read, or report its length.