agent: Fix tool use in Gemini (#30689)

Thread doesn't run pending tools when `stop_reason` is not `ToolUse`.
Perhaps we should change that so that it always runs pending tools if
there are some, but for now this change just fixes setting `stop_reason`
for Google models.

Release Notes:

- N/A
d42cb111f4Oleksiy Syvokon committed on 5/14/2025, 12:43:17 PM· committed by GitHubparentdce6e96
1 file changedLine totals unavailable