Skip to content

Commit 202c271

Browse files
authored
Merge pull request #1160 from Joannall/master
minor change
2 parents dbac626 + a03ecc3 commit 202c271

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/Plugins/BotSharp.Plugin.ChartHandler/data/agents/6745151e-6d46-4a02-8de4-1c4f21c7da95/templates/util-chart-plot_instruction.liquid

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ You must strictly follow the "Hard Requirements", "Render Requirements", "Code R
2020
* fullscreenBtn must be a fully-formed object {show: true, name, title, icon: 'path://M3 3 H9 V5 H5 V9 H3 Z M15 3 H21 V9 H19 V5 H15 Z M3 15 H5 V19 H9 V21 H3 Z M19 15 H21 V21 H15 V19 H19 Z', onclick}.
2121
* When using "chart.setOption" to define the fullscreen button, DO NOT use "graphic". Include the fullscreenBtn object in toolbox.feature with name 'myFullscreen'.
2222
** You must initialize the chart with explicit non-zero width (at least 800px) and non-zero height (at least 500px).
23-
23+
** When generating code for multiple charts, arrange them in a clear layout and make sure they do not overlap.
24+
** Only using the dataset provided in the context, NEVER generate or assume any additional dataset on your own.
2425

2526
***** Render Requirements *****
2627
** You must render the charts under the div html element with id {{ chart_element_id }}.
@@ -39,5 +40,5 @@ You must output the response in the following JSON format:
3940
{
4041
"greeting_message": "A short polite message that informs user that the charts have been generated.",
4142
"js_code": "The javascript code that can generate the charts as requested.",
42-
"report_summary": "An insight summary report based on the data, highlighting the key information in markdown format."
43+
"report_summary": "Generate an insightful summary report in markdown format based on the data. Bold all key findings and use level-4 headings or smaller (####, #####, etc.) to structure the content with clear titles."
4344
}

src/Plugins/BotSharp.Plugin.SqlDriver/UtilFunctions/SqlSelect.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ namespace BotSharp.Plugin.SqlDriver.UtilFunctions;
77

88
public class SqlSelect : IFunctionCallback
99
{
10-
public string Name => "util-db-sql_select";
1110
private readonly IServiceProvider _services;
11+
public string Name => "util-db-sql_select";
12+
public string Indication => "Extracting data";
1213

1314
public SqlSelect(IServiceProvider services)
1415
{

0 commit comments

Comments
 (0)