Describe the bug
When using ChatCompletionAgent for streaming, FunctionResultContent is not getting added to the chat history.
To Reproduce
Steps to reproduce the behavior:
- Create a ChatCompletionAgent that uses a ChatClientChatCompletionService that uses a IChatClient decorated with the FuncionInvokingChatClient
- Make a streaming request with function tools.
- Inspect the produced chat history.
- The chat history contains the input message, result message, the function call content, but no function result content.
Expected behavior
The chat history also contains the function result content.
Screenshots
Platform
- Language: C#
- AI model: Azure OpenAI ChatCompletion
Additional context
Add any other context about the problem here.