[useAssistant] Add status for when a "tool_calls" run step is in progress. #2146
Pascaltib
started this conversation in
Ideas & Feedback
Replies: 2 comments
-
This is exactly what I have been trying to figure out. Currently, it seems that there is no possible way to show the users what is really happening behind the scenes instead of just having a loading spinnner. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Has anyone figured out a way to do this? I have tried by doing the following, but its not working as expected. The status update messages disappear.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When using useAssistant there are currently only two statuses available
'in_progress' | 'awaiting_message'
.However, it would be nice to display a specific method when running a tool call which would normally take a bit longer. This is something the OpenAI assistant playground does where they show UI saying something along the words of "running retrieval". This UI is very helpful to show the user what work you are doing behind the scenes to answer their prompt.
The way to detect this would be to detect when a
thread.run.step.created
event is triggered and the data hastype: 'tool_calls'
.It would also be amazing to have the specific tool being used in the frontend as a status. This is only available in the
thread.run.step.delta
and I am not sure if this is after the tool is done being used.Example using "file_search" tool:
Beta Was this translation helpful? Give feedback.
All reactions