AIAssistantToolbarDirective
Represents an AI Assistant tool of the Grid.
Use this directive on any kendo-toolbar-button
inside a ToolbarComponent in the Grid.
<kendo-grid>
<kendo-toolbar>
<kendo-toolbar-button kendoGridAIAssistantTool></kendo-toolbar-button>
</kendo-toolbar>
</kendo-grid>
Selector
[kendoGridAIAssistantTool]
Inputs
Name | Type | Default | Description |
---|---|---|---|
aiPromptSettings |
|
Configures the initial settings for the AI Prompt component that the AI Assistant Window component uses when opened. | |
aiWindowSettings |
|
Configures the initial settings for the AI Assistant Window when opened. | |
autoClose |
|
|
Determines whether to close the AI Assistant Window automatically after a successful request. |
keepOutputHistory |
|
|
Determines whether to keep the AI Prompt's outputs after closing the AI Assistant Window. |
requestOptions? |
|
|
Configures the request options that the AI Assistant tool sends with the AI request. |
requestUrl? |
|
The URL to which the AI Assistant tool sends the AI request.
|
Events
Name | Type | Description |
---|---|---|
cancelRequest |
|
Emits an event when the user clicks the cancel button. |
close |
|
Emits an event when the AI Assistant tool closes. |
open |
|
Emits an event when the AI Assistant tool opens. |
promptRequest |
|
Emits an event before the AI Assistant tool sends the AI request.
|
responseError |
|
Emits an event when the AI Assistant tool completes the AI request with an error. The event contains the error response from the AI service and is preventable to allow stopping the default error handling. |
responseSuccess |
|
Emits an event when the AI Assistant tool completes the AI request successfully. The event contains the response from the AI service and is preventable to allow stopping the default response handling. |
Methods
toggleWindow |
---|
Toggles the AI Assistant window. |