UseGridAIRequestOptions
Options for the useGridAIRequest hook.
Definition
Package:@progress/kendo-react-grid
Properties
columns?
{ field: string; id?: string; values?: any[] }[]
The columns to include in the request.
gridRef?
null | Pick<GridHandle, "getLeafDataItems" | "getTotal" | "exportAsPdf" | "props">
Reference to grid methods.
The current grid state.
Optional custom HTTP client. When provided, overrides the built-in fetch-based transport.
onExportPdf?
() => void
Callback fired when PDF export is requested.
onMessages?
(messages: string[], promptMessage: string, isRetry: boolean) => void
Callback fired when messages are received from AI.
onPromptRequest?
(request: GridAIRequestData, isRetry: boolean) => void
Callback fired before the request is sent.
onResponseError?
(error: any) => void
Callback fired when the response returns an error.
onResponseSuccess?
(response: GridAIResponse<any>, promptMessage: string, isRetry: boolean) => void
Callback fired when the response is received successfully.
onStateChange?
(newState: GridAIState) => void
Callback fired when the grid state should be updated.
Additional HTTP request options.
requestUrl?
string
The URL to send the AI request to.
role?
string
The role for the AI request. Defaults to 'user'.