pub async fn run_loop<A, F>(
agent: &A,
session: &mut Session<A::Msg>,
config: &LoopConfig,
on_event: F,
) -> Result<usize, A::Error>Expand description
Run the SGR agent loop (non-streaming).
trim → decide → check loop → execute → push results → repeat
Returns the number of steps executed.