.Net: Bug: The AgentChat history should contain all agent's messages #7183
Labels
agents
bug
Something isn't working
.NET
Issue or Pull requests regarding .NET code
PR: in progress
Under development and/or addressing feedback
Describe the bug
In the current implementation, the ChatCompletionAgent returns only the final assistant response, the functions messages are appended to the channel's chat history.
So the ChatHistoryChannel returns to the AgentChat (and broadcast to the other channels) only the final assistant response.
Therefor the user, that creates the AgentChat, doesn't have access to the functions invocation.
Expected behavior
Additional context
Another thing that should be considered -
IAutoFunctionFilterInvocation enables terminating the function calling loop. In such cases the ChatCompletion returns to the caller the last function response (this response is also appended to the channel history).
Therefor the response's role should be checked before:
Platform
OS: Windows
IDE: Visual Studio,
Language: C#
Source: SK NuGet package version 1.15.1
The text was updated successfully, but these errors were encountered: