# agent: Fix tool use in Gemini \(\#30689\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/d42cb111f4ba357f05fc8fb768990472497c9bd2)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: d42cb111f4ba357f05fc8fb768990472497c9bd2

Requested commit: d42cb111f4ba357f05fc8fb768990472497c9bd2

Commit: d42cb111f4ba357f05fc8fb768990472497c9bd2

Tree: 9975caacf282ad0b095952dcb2d6dd8ba6ffd3e1

Author: Oleksiy Syvokon

Committer: GitHub

## Message

```
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
```

## Parents

- [dce6e96c16c75acc4b404def923f02624b343700](https://git.cafe/gitcafe/zed/commit/dce6e96c16c75acc4b404def923f02624b343700?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/d42cb111f4ba357f05fc8fb768990472497c9bd2?format=markdown)
