smartBox.aiAssistantSettings.history.sizeNumber(default: 5)
Specifies the maximum number of history queries that will be rendered in AI Assistant mode.
Example - set AI assistant history size
<div id="grid"></div>
<script>
$("#grid").kendoGrid({
columns: [
{ field: "ProductName" },
{ field: "UnitPrice" }
],
dataSource: {
data: [
{ ProductName: "Tea", UnitPrice: 10 },
{ ProductName: "Coffee", UnitPrice: 15 }
]
},
search: {
fields: [{ name: "ProductName", operator: "contains" }]
},
toolbar: ["smartBox"],
smartBox: {
activeMode: "AIAssistant",
aiAssistantSettings: {
enabled: true,
history: {
size: 10
},
service: "https://demos.telerik.com/service/v2/ai/grid/smart-state"
}
}
});
</script>