pub fn run_loop_stream(
config: AgentConfig,
tools: HashMap<String, Arc<dyn Tool>>,
run_ctx: RunContext,
cancellation_token: Option<RunCancellationToken>,
state_committer: Option<Arc<dyn StateCommitter>>,
) -> Pin<Box<dyn Stream<Item = AgentEvent> + Send>>Expand description
Run the agent loop with streaming output.
Returns a stream of AgentEvent for real-time updates. Tools are passed
directly and used as the default tool set unless config.step_tool_provider
is set (for dynamic per-step tool resolution).