# assistant2: Handle empty tool results by providing placeholder text \(\#27130\) · gitcafe/zed

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

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

Visibility: public

Requested revision: dfdca540ec02bec1df52eeab9c282be9b14d187d

Requested commit: dfdca540ec02bec1df52eeab9c282be9b14d187d

Commit: dfdca540ec02bec1df52eeab9c282be9b14d187d

Tree: 1192dd9072587c98109a59bac016620ebac435ca

Author: Agus Zubiaga

Committer: GitHub

## Message

```
assistant2: Handle empty tool results by providing placeholder text (#27130)

This is surprising, but the Anthropic API returns a 400 if a tool output
is an empty string because it thinks we're attaching a `tool use`
without a corresponding `tool result`, but we are not, it's just empty
(which seems totally reasonable) 🙃

Release Notes:

- N/A
```

## Parents

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

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