SmartChartAdapter
Last updated
Last updated
Represents an adapter that can manipulate a calendar of any kind.
However, without an accompanying tool that can interact with a chart control, this adapter on its own does not perform any actions. In order to utilize the effectively, you must supply a tool capable of manipulating a chart control.
For instance, the class is a derived class that utilizes the to interact with the Wisej.Ext.Web.ChartJS
control.
This is the built-in prompt:
This property acts as the prompt sent to the AI model to generate and populate the chart. When the AutoRun property is set to true, setting this property automatically initiates the chart generation process.
This property can be utilized on its own to define the data or in conjunction with other tools to enhance its functionality. Here are some examples:
"Plot 5 apples, 3 bananas, 8 kiwis. Use transparent pastel colors that resemble the fruit"
"Create a bar chart with Microsoft stock price for the past 5 years."
"Show a line chart with product sales by country last year."
You can run sample 1 by itself. For sample 2 you need this.adapter.UseTools(new WebSearchTools())
for sample 3 you need this.adapter.UseTools(new DatabaseSearchTools(...))
connected to a sales database.
In addition to the properties inherited from the , the SmartChartAdapter exposes the following additional properties.