Skip to content

Commit 65c2c0f

Browse files
author
Haiping Chen
committed
message.Role = clonedMessage.Role
1 parent 9d219dc commit 65c2c0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Infrastructure/BotSharp.Core/Routing/RoutingService.InvokeFunction.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public async Task<bool> InvokeFunction(string name, RoleDialogModel message)
4949
}
5050

5151
// Set result to original message
52-
message.Role = AgentRole.Function;
52+
message.Role = clonedMessage.Role;
5353
message.PostbackFunctionName = clonedMessage.PostbackFunctionName;
5454
message.CurrentAgentId = clonedMessage.CurrentAgentId;
5555
message.Content = clonedMessage.Content;

0 commit comments

Comments
 (0)