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
bbe7c9a738Marshall Bowers committed on 3/7/2025, 11:35:32 PM· committed by GitHubparentf6345a6
2 files changedLine totals unavailable