Fix current agent id for routing rule.

This commit is contained in:
Haiping Chen 2024-05-27 21:06:05 -05:00
parent c3c28e282b
commit d6ac3c09ea

View file

@ -118,6 +118,7 @@ public class RoutingContext : IRoutingContext
var message = new RoleDialogModel(AgentRole.User, $"Try to route to agent {agent.Name}")
{
CurrentAgentId = currentAgentId,
FunctionName = "route_to_agent",
FunctionArgs = JsonSerializer.Serialize(new FunctionCallFromLlm
{