SDKv2.5.17
Stop losing code blocks in structured outputs during JSON parsing
Agno Team
April 14, 20261 min read
We fixed an issue where JSON cleaning was stripping or corrupting code blocks embedded in string values before the parse was even attempted. The parser now tries a raw JSON parse first and only falls back to cleaning if that fails, preserving code blocks and other structured content in the output as intended.