From 6c5be6da631595e83338873ff602d1edd6badad5 Mon Sep 17 00:00:00 2001 From: Jicheng Lu Date: Sun, 26 May 2024 22:20:27 -0500 Subject: [PATCH] clean code --- .../Conversations/Services/ConversationService.Summary.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Infrastructure/BotSharp.Core/Conversations/Services/ConversationService.Summary.cs b/src/Infrastructure/BotSharp.Core/Conversations/Services/ConversationService.Summary.cs index 252d1e7f..d76678cc 100644 --- a/src/Infrastructure/BotSharp.Core/Conversations/Services/ConversationService.Summary.cs +++ b/src/Infrastructure/BotSharp.Core/Conversations/Services/ConversationService.Summary.cs @@ -15,14 +15,13 @@ public partial class ConversationService if (dialogs.IsNullOrEmpty()) return string.Empty; var router = await agentService.LoadAgent(AIAssistant); - var content = await routing.GetConversationContent(dialogs); - var prompt = GetPrompt(router, content); + var prompt = GetPrompt(router); var summary = await Summarize(router, prompt, dialogs); return summary; } - private string GetPrompt(Agent agent, string content) + private string GetPrompt(Agent agent) { var template = agent.Templates.First(x => x.Name == "conversation.summary").Content; var render = _services.GetRequiredService();