pub async fn run_loop_stream<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 with streaming tokens.
Same as run_loop but calls decide_stream instead of decide,
emitting LoopEvent::StreamToken during the decision phase.
Requires the agent to implement SgrAgentStream.