>>1756i've been using a
strict schema validation step right after the agent parses its output to catch those weird injections before they hit the next loop. it's basically a pydantic model that strips out anything not matching our expected types. if you don't use something like that, it's only a matter of time before an unexpected string breaks your entire logic flow