Merge pull request #542 from iceljc/master

fix routing to agent handler
This commit is contained in:
C. Oceania 2024-07-15 13:46:10 -05:00 committed by GitHub
commit 2d15f2996b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -61,7 +61,10 @@ public class RouteToAgentRoutingHandler : RoutingHandlerBase, IRoutingHandler
{
var msg = RoleDialogModel.From(message);
var ret = await routing.InvokeFunction(message.FunctionName, msg);
_dialogs.Add(msg);
if (msg.Role == AgentRole.Function)
{
_dialogs.Add(msg);
}
}
var agentId = routing.Context.GetCurrentAgentId();