Weak local models print <function=name>{json}</function> as text instead
of a real tool call. Recovers those (first occurrence per tool wins) and
strips the markup from the shown text. Only tools in tools are recovered;
anything else is left as written.
Weak local models print
<function=name>{json}</function>as text instead of a real tool call. Recovers those (first occurrence per tool wins) and strips the markup from the shown text. Only tools intoolsare recovered; anything else is left as written.