Skip to content

Commit 1bba400

Browse files
committed
chore: remove unused MessageTypeName.Notification
1 parent 18cb892 commit 1bba400

2 files changed

Lines changed: 0 additions & 3 deletions

File tree

src/Infrastructure/BotSharp.Abstraction/Conversations/Enums/MessageTypeName.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ namespace BotSharp.Abstraction.Conversations.Enums;
33
public static class MessageTypeName
44
{
55
public const string Plain = "plain";
6-
public const string Notification = "notification";
76
public const string FunctionCall = "function";
87
public const string Audio = "audio";
98
public const string Error = "error";

src/Infrastructure/BotSharp.Core/Conversations/Services/ConversationService.Summary.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
using BotSharp.Abstraction.Conversations.Enums;
21
using BotSharp.Abstraction.MLTasks;
32
using BotSharp.Abstraction.Models;
43
using BotSharp.Abstraction.Settings;
@@ -24,7 +23,6 @@ public async Task<string> GetConversationSummary(ConversationSummaryModel model)
2423

2524
if (dialogs.IsNullOrEmpty()) continue;
2625

27-
dialogs = dialogs.Where(x => x.MessageType != MessageTypeName.Notification).ToList();
2826
var content = GetConversationContent(dialogs);
2927
if (string.IsNullOrWhiteSpace(content)) continue;
3028

0 commit comments

Comments
 (0)