# assistant2: Factor out \`Thread::all_tools_finished\` method \(\#26314\) · gitcafe/zed

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

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

Visibility: public

Requested revision: bbe7c9a738d4103d7180fabdc623d7522d39e25b

Requested commit: bbe7c9a738d4103d7180fabdc623d7522d39e25b

Commit: bbe7c9a738d4103d7180fabdc623d7522d39e25b

Tree: 0b72e9d93ced2913d9d4aaadb43ad91b9fe45482

Author: Marshall Bowers

Committer: GitHub

## Message

```
assistant2: Factor out `Thread::all_tools_finished` method (#26314)

This PR factors out a new `Thread::all_tools_finished` method to
encapsulate some of the boilerplate in the `ThreadEvent::ToolFinished`
event handler.

This should make this event handler easier to replicate for the eval
use-case.

Release Notes:

- N/A
```

## Parents

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

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