Skip to main content

classify_llm_error

Function classify_llm_error 

Source
pub fn classify_llm_error(msg: &str) -> &'static str
Available on crate feature otel only.
Expand description

Map a free-form LLM error message to the stable error.type attribute / metric label.

Byte-for-byte mirror of agent_loop::turn::classify_llm_error so the daemon worker and the in-process loop bucket transient failures identically.