.Net: New Feature: Add tool call status as a message in GetStreamingChatMessageContentsAsync() StreamingChatMessageContent responses #10554
Labels
.NET
Issue or Pull requests regarding .NET code
When a tool is called there is no way for the user to know that tool usage is in progress. All the tool usage hidden under the hood and there is no way to know that it is happening. Given the below code:
There should be a way in the StreamingChatMessageContent messages to get the status of a tool there are log messages that show it. See below there are INFORMATION logs that say a tool is called but it isnt returned as a result as when i am printing out all the responses seriazlied there is nothing you can decode to see that the tool is invoked, finished, failed, etc.
I propose adding a an additional property on the StreamingChatMessageContent or putting it in the Metadata object that a tool has been called. Send a message when it is invoked, as well as when it succeeds or fails. Include the tool name, parameters, etc. As well as a message with the response from the tool. If multiple tools are called there should either be multiple messages returned or a list of all tools. I think multiple messages would be better as a UI could update each tool when they complete. For example there might be a widget that turns red or green and when tool 1 updates it would turn green and the other one would stay red until it completes.
The text was updated successfully, but these errors were encountered: