ai.service.outputGetterFunction
The function to get the output from the AI service response.
Example - configure AI service output getter
<div id="grid"></div>
<script>
$("#grid").kendoGrid({
columns: [{ field: "name" }],
dataSource: [{ name: "Jane Doe" }],
toolbar: ["aiAssistant"],
ai: {
service: {
url: "https://demos.telerik.com/service/v2/ai/grid/smart-state",
outputGetter: function(response) {
return response.messages.join("---");
}
}
}
});
</script>
In this article