pub fn response_failure_error(value: &Value) -> Option<Error>Expand description
Parse a full (non-streaming) Responses API response.
Map a Responses body whose status is "failed" to a classified error,
or None for a non-failed response. A failed run reports status: "failed" with a 2xx HTTP status, so the error is pulled from the body:
error.code == "content_filter" becomes Error::ServiceContentFilter
(matching the HTTP-level classification in classify_service_error),
anything else a generic service error.
pub so agent-framework-azure’s Responses client can share the exact
classification.