Skip to main content

backstop

Function backstop 

pub fn backstop<'a>(content: &'a str, tool: &str, paged: bool) -> Cow<'a, str>
Expand description

The loop’s cap on a tool result: at most MAX_TOOL_RESULT_BYTES of content (cut on a character boundary) and a marker that says what was cut. paged is whether tool takes an offset: the marker then says to call it again with a later one.

A pure function of its arguments, so a replayed run gives the same bytes.