pub fn detect_normalization_failure(
content: &str,
) -> Option<NormalizationPattern>Expand description
Inspect content and return the first NormalizationPattern detected, or
None if the content looks well-formed.
Detection priority:
EmptyAction— content is blank, orAction:with nothing after it.MalformedToolCall—Action:/tool_callpresent but JSON is broken.NarratedToolUse— model described intent without anAction:block.