- Refactored regex pattern to handle varied whitespace and newlines for better robustness. - Replaced logic to iterate through all tool call blocks using finditer instead of stopping at the first match. - Ensured full extraction of multiple tool calls for complex agentic workflows. - Added error logging for failed parsing attempts.
2.9 KiB
2.9 KiB