fix: Decode unicode escape sequences in tool JSON
The model returns literal \n (backslash-n) instead of actual newlines.
This breaks JSON parsing because {\n is not valid JSON syntax.
Use codecs.decode with 'unicode_escape' to convert escape sequences
to actual characters before parsing.
Showing
Please
register
or
sign in
to comment