Not trigger if replyMessage.FunctionName is empty.
This commit is contained in:
parent
de2f4ee5b1
commit
280330bd33
|
|
@ -48,6 +48,9 @@ public class RoleDialogModel : ITrackableMessage
|
|||
[JsonIgnore(Condition = JsonIgnoreCondition.Always)]
|
||||
public string ImageUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Remember to set Message.Content as well
|
||||
/// </summary>
|
||||
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
||||
public RichContent<IRichMessage>? RichContent { get; set; }
|
||||
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ public partial class ConversationService
|
|||
hook.SetAgent(agent)
|
||||
.SetConversation(conversation);
|
||||
|
||||
if (replyMessage == null)
|
||||
if (replyMessage == null || string.IsNullOrEmpty(replyMessage.FunctionName))
|
||||
{
|
||||
await hook.OnMessageReceived(message);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue