Addresses a Claude API requirement where assistant messages with tool use must have a thinking block when thinking is enabled.
This commit injects an empty thinking block into assistant messages that include tool use but lack a thinking block. This ensures compatibility with the Claude API when the thinking feature is enabled.