pub async fn run_task(config: &TaskConfig) -> Result<EventStream>Expand description
Create a runner for the given agent kind and execute the task, returning a stream of unified events.
This is the simple API — for cancellation support, use run_task_with_cancel.