# agent: Account for tool use messages without any corresponding text \(\#27917\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 2846c55cde2e86b73a00b3fa7d8cb28512b555c0

Requested commit: 2846c55cde2e86b73a00b3fa7d8cb28512b555c0

Commit: 2846c55cde2e86b73a00b3fa7d8cb28512b555c0

Tree: 7496bf0e2066d5af02d6601cb364ad1176409e95

Author: Marshall Bowers

Committer: GitHub

## Message

```
agent: Account for tool use messages without any corresponding text (#27917)

This PR makes it so if we receive a tool use from the model without any
corresponding text, we'll insert some placeholder text to keep the
conversation in a well-structured format.

This aims to fix an error that Antonio was seeing:


![image](https://github.com/user-attachments/assets/eeba95ef-9b67-41d7-bce3-afe84bcdc7b1)

Release Notes:

- N/A
```

## Parents

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

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