Skip to content

Commit d6ac3c0

Browse files
committed
Fix current agent id for routing rule.
1 parent c3c28e2 commit d6ac3c0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: src/Infrastructure/BotSharp.Core/Routing/RoutingContext.cs

+1
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ await hook.OnAgentDequeued(agentId, currentAgentId, reason: reason)
118118

119119
var message = new RoleDialogModel(AgentRole.User, $"Try to route to agent {agent.Name}")
120120
{
121+
CurrentAgentId = currentAgentId,
121122
FunctionName = "route_to_agent",
122123
FunctionArgs = JsonSerializer.Serialize(new FunctionCallFromLlm
123124
{

0 commit comments

Comments
 (0)