# assistant2: Exclude tool uses and results when summarizing threads \(\#25689\) · gitcafe/zed

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

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

Visibility: public

Requested revision: b8fb41689273a2895a4178b0d43fffebbed90154

Requested commit: b8fb41689273a2895a4178b0d43fffebbed90154

Commit: b8fb41689273a2895a4178b0d43fffebbed90154

Tree: af796f11c57d6587fcc996646d655621693993e0

Author: Marshall Bowers

Committer: GitHub

## Message

```
assistant2: Exclude tool uses and results when summarizing threads (#25689)

This PR fixes the generation of summaries for threads when tools are
being used.

Previously we were including the tool uses in the summarization request,
but this would result in invalid messages being sent to the model and
summaries not being generated.

We now exclude any tool uses or results from the model when summarizing
a thread.

Release Notes:

- N/A
```

## Parents

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

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