pub fn classify_agent_error(err: &Error) -> AgentErrorClass
Classify an error from its Display / Debug chain text.