Skip to content

Commit

Permalink
Fix current agent id for routing rule.
Browse files Browse the repository at this point in the history
  • Loading branch information
Oceania2018 committed May 28, 2024
1 parent c3c28e2 commit d6ac3c0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Infrastructure/BotSharp.Core/Routing/RoutingContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ await hook.OnAgentDequeued(agentId, currentAgentId, reason: reason)

var message = new RoleDialogModel(AgentRole.User, $"Try to route to agent {agent.Name}")
{
CurrentAgentId = currentAgentId,
FunctionName = "route_to_agent",
FunctionArgs = JsonSerializer.Serialize(new FunctionCallFromLlm
{
Expand Down

0 comments on commit d6ac3c0

Please sign in to comment.