SmartChartAdapter
Wisej.AI.Adapters.SmartChartAdapter
Last updated
Wisej.AI.Adapters.SmartChartAdapter
Last updated
Namespace: Wisej.AI.Adapters
Assembly: Wisej.AI (3.5.0.0)
Represents an adapter that enhances a chart control with AI features.
The SmartChartAdapter
class extends the functionality of a chart control by integrating AI capabilities. It allows for dynamic chart generation and interaction based on the provided data source and prompt.
Initializes a new instance of the class.
: Gets or sets the data source for the chart. (Default: null
)
The data source is used by the AI to generate the chart based on the specified prompt.
The description is generated based on the AI response to the provided prompt and data source.
control
The control that was created.
Executes the core AI process asynchronously to generate a chart.
control
The control for which the chart is generated.
The method uses the provided data source and default chart type to interact with the AI session and generate a chart description.
Represents an adapter that enhances a ChartJS control with several AI features.
Represents a provider that supplies tools.
: Gets or sets the default chart type to be used. (Default: "Bar"
)
: Gets the description of the chart generated by the adapter.
: Gets or sets the prompt used to generate the chart. (Default: null
)
Changing the prompt will trigger a re-run of the AI process if is enabled and controls are present.
Called when a control is created and initializes the AI process if is enabled.
Returns: . A task representing the asynchronous operation, with a containing the AI response.