Improve agent retries and tool progress

This commit is contained in:
2026-08-23 22:22:32 -05:00
parent 7c106eecd5
commit f4dc6231d6
14 changed files with 913 additions and 141 deletions
@@ -0,0 +1,16 @@
use galaxy_agent_core::AgentErrorKind;
use rig_core::completion::CompletionError;
use super::map_completion_error;
#[test]
fn flattened_sse_http_client_error_is_recoverable_transport() {
let error = CompletionError::ProviderError(
"Http client error: error decoding response body".to_string(),
);
let mapped = map_completion_error(error);
assert_eq!(mapped.kind, AgentErrorKind::Transport);
assert!(mapped.recoverable);
}