From 1021c81d72b721082adbff6142a9a82ed13598e2 Mon Sep 17 00:00:00 2001 From: Jicheng Lu <103353@smsassist.com> Date: Thu, 11 Sep 2025 15:08:14 -0500 Subject: [PATCH] remove report summary --- .../Functions/PlotChartFn.cs | 22 ------------------- .../util-chart-plot_instruction.liquid | 3 +-- 2 files changed, 1 insertion(+), 24 deletions(-) diff --git a/src/Plugins/BotSharp.Plugin.ChartHandler/Functions/PlotChartFn.cs b/src/Plugins/BotSharp.Plugin.ChartHandler/Functions/PlotChartFn.cs index f516ef02..1c89478c 100644 --- a/src/Plugins/BotSharp.Plugin.ChartHandler/Functions/PlotChartFn.cs +++ b/src/Plugins/BotSharp.Plugin.ChartHandler/Functions/PlotChartFn.cs @@ -88,28 +88,6 @@ public class PlotChartFn : IFunctionCallback } }; - if (!string.IsNullOrEmpty(ret?.ReportSummary)) - { - message.AdditionalMessageWrapper = new() - { - SendingInterval = 1500, - SaveToDb = true, - Messages = new List - { - new(AgentRole.Assistant, ret.ReportSummary) - { - MessageId = message.MessageId, - MessageLabel = "chart_report_summary", - Indication = "Summarizing", - CurrentAgentId = message.CurrentAgentId, - FunctionName = message.FunctionName, - FunctionArgs = message.FunctionArgs, - CreatedAt = DateTime.UtcNow - } - } - }; - } - message.StopCompletion = true; return true; } diff --git a/src/Plugins/BotSharp.Plugin.ChartHandler/data/agents/6745151e-6d46-4a02-8de4-1c4f21c7da95/templates/util-chart-plot_instruction.liquid b/src/Plugins/BotSharp.Plugin.ChartHandler/data/agents/6745151e-6d46-4a02-8de4-1c4f21c7da95/templates/util-chart-plot_instruction.liquid index af0a04a9..dfb4da4f 100644 --- a/src/Plugins/BotSharp.Plugin.ChartHandler/data/agents/6745151e-6d46-4a02-8de4-1c4f21c7da95/templates/util-chart-plot_instruction.liquid +++ b/src/Plugins/BotSharp.Plugin.ChartHandler/data/agents/6745151e-6d46-4a02-8de4-1c4f21c7da95/templates/util-chart-plot_instruction.liquid @@ -41,6 +41,5 @@ You must strictly follow the "Hard Requirements", "Render Requirements", "Code R You must output the response in the following JSON format: { "greeting_message": "A short polite message that informs user that the charts have been generated.", - "js_code": "The javascript code that can generate the charts as requested.", - "report_summary": "Generate an insightful summary report in markdown format based on the data. You can summarize using one or multiple titles and list the key findings under each title. Bold all key findings and use level-4 headings or smaller (####, #####, etc.). DO NOT make everything in one line." + "js_code": "The javascript code that can generate the charts as requested." } \ No newline at end of file