Skip to content

Commit e32399f

Browse files
authored
Merge pull request #1161 from iceljc/master
refine chart plot prompt
2 parents 202c271 + c00391c commit e32399f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ You must strictly follow the "Hard Requirements", "Render Requirements", "Code R
3232
***** Code Requirements *****
3333
** You must strictly follow the valid javascript and ECharts.js syntax.
3434
** You must ensure no syntax/runtime error before returning the response.
35+
** You must ensure the method is applied on variable with correct type, such as never applying "toFixed" to a non-number variable. Use explicit conversion if necessary.
36+
** You must ensure the math operations are valid, such as avoid dividing by zero.
3537
** Please ensure the code can be executed and the charts are rendered correctly.
3638

3739

0 commit comments

Comments
 (0)