# agent: Improve Gemini tool schema compatibility \(\#30216\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 6565c091e4135508a67c386059c013857e49d7e6

Requested commit: 6565c091e4135508a67c386059c013857e49d7e6

Commit: 6565c091e4135508a67c386059c013857e49d7e6

Tree: b431161fcdd1bfd9d46373d7f9630d5d85357b85

Author: Bennet Bo Fenner

Committer: GitHub

## Message

```
agent: Improve Gemini tool schema compatibility (#30216)

Closes #30056

Apparently the API supports the "default" field now, so we can remove
that transformation.
However, optional is not supported

See https://ai.google.dev/api/caching#Schema

Release Notes:

- agent: Improve tool schema compatibility for Gemini models
```

## Parents

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

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