assistant2: Consider tool use as part of the "streaming" state (#26723)

This PR updates the `Thread::is_streaming` method so that it includes
tool use in the "streaming" state.

This will prevent the streaming indicator from disappearing when we're
doing tool use.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2025-03-13 16:11:44 -04:00 committed by GitHub
parent b5a7fb13c3
commit a0be6c8cb2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -200,7 +200,7 @@ impl Thread {
}
pub fn is_streaming(&self) -> bool {
!self.pending_completions.is_empty()
!self.pending_completions.is_empty() || !self.all_tools_finished()
}
pub fn tools(&self) -> &Arc<ToolWorkingSet> {