Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}.
Expand All @@ -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."
}
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
Loading