Skip to main content

keep_long

Function keep_long 

pub async fn keep_long(
    ctx: &ToolCtx,
    text: &str,
) -> (String, Option<Box<KeptOutput>>)
Expand description

Keep a long text for the call of ctx and say what the model is shown: the first page and an id to read the rest with ReadOutput, or, when it cannot be kept, the first page and why the rest is lost. The second value is what the loop keeps in the run’s state (ToolOutput::kept); it is Some only when no KeptStore is in the agent’s state.