pub async fn trace(
agent: &HttpAgent,
thread: &str,
said: &str,
tools: Vec<Tool>,
approve: bool,
out: &mut impl Write,
) -> Result<usize>Expand description
Streams one run and prints every event, then answers any pause and streams the resumed run too.
approve decides what a pause is answered with, and tools is what the
agent is offered — an agent that needs one it was not sent fails the run.
Returns how many events were printed across every run it drove.