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 20:11:44 +00:00
committed by GitHub
parent b5a7fb13c3
commit a0be6c8cb2
+1 -1
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> {