assistant2: Skip tool uses without a matching tool result (#27082)

Anthropic API doesn't allow `tool_use` messages without a corresponding
`tool_result`, so we'll skip those when building a request. I'll
separately investigate why we are sending request before the tool result
as that might lead to separate issues, but that might take a while and
this is currently very frustrating.

Release Notes:

- N/A
5f398071b2Agus Zubiaga committed on 3/19/2025, 3:54:57 PM· committed by GitHubparent410a942
1 file changedLine totals unavailable