# assistant2: Skip tool uses without a matching tool result \(\#27082\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 5f398071b2837857c95126d93474c36705602df5

Requested commit: 5f398071b2837857c95126d93474c36705602df5

Commit: 5f398071b2837857c95126d93474c36705602df5

Tree: eea3f6f54335afb45ce2c75e360baeb85e5e4619

Author: Agus Zubiaga

Committer: GitHub

## Message

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

## Parents

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

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