pub fn detect_errors(output: &str) -> ErrorResult
Detect errors in Agent output
output
Error detection result