Expand description
§Normalization
Detects malformed tool protocol and narrated next steps in ReAct loop output, and builds retry prompts to guide the model back to correct behavior.
Enums§
- Normalization
Pattern - Describes the kind of protocol failure detected in model output.
Constants§
- MAX_
NORMALIZATION_ RETRIES - Maximum number of normalization retries before giving up.
Functions§
- build_
normalization_ retry_ prompt - Build a system-level retry instruction for the given
pattern. - detect_
normalization_ failure - Inspect
contentand return the firstNormalizationPatterndetected, orNoneif the content looks well-formed.