Merge pull request #1160 from Joannall/master

minor change
This commit is contained in:
Haiping 2025-09-10 20:01:43 -05:00 committed by GitHub
commit 202c271a0e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

View file

@ -20,7 +20,8 @@ You must strictly follow the "Hard Requirements", "Render Requirements", "Code R
* 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}.
* When using "chart.setOption" to define the fullscreen button, DO NOT use "graphic". Include the fullscreenBtn object in toolbox.feature with name 'myFullscreen'.
** You must initialize the chart with explicit non-zero width (at least 800px) and non-zero height (at least 500px).
** When generating code for multiple charts, arrange them in a clear layout and make sure they do not overlap.
** Only using the dataset provided in the context, NEVER generate or assume any additional dataset on your own.
***** Render Requirements *****
** 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:
{
"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": "An insight summary report based on the data, highlighting the key information in markdown format."
"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."
}

View file

@ -7,8 +7,9 @@ namespace BotSharp.Plugin.SqlDriver.UtilFunctions;
public class SqlSelect : IFunctionCallback
{
public string Name => "util-db-sql_select";
private readonly IServiceProvider _services;
public string Name => "util-db-sql_select";
public string Indication => "Extracting data";
public SqlSelect(IServiceProvider services)
{