diff --git a/src/agent/oneshot.rs b/src/agent/oneshot.rs index 442512d..fb34060 100644 --- a/src/agent/oneshot.rs +++ b/src/agent/oneshot.rs @@ -314,7 +314,7 @@ impl AutoAgent { } } } - unreachable!() + Err(format!("{}: all retry attempts exhausted", name)) } async fn dispatch_tools(&mut self, backend: &mut Backend, msg: &Message) {