ClassDataGridPromptRequestCommandContext
Class
Provides context for the PromptRequestCommand.
Definition
Namespace:Telerik.Maui.Controls.DataGrid
Assembly:Telerik.Maui.Controls.dll
Syntax:
cs-api-definition
public class DataGridPromptRequestCommandContext
Inheritance: objectDataGridPromptRequestCommandContext
Constructors
DataGridPromptRequestCommandContext(string, Action<string>, Action<bool>)
Initializes a new instance of the DataGridPromptRequestCommandContext class.
Declaration
cs-api-definition
public DataGridPromptRequestCommandContext(string prompt, Action<string> onResponseSet = null, Action<bool> onHasErrorSet = null)
Parameters
prompt
The prompt text from the user.
onResponseSet
Optional callback invoked when the Response property is set.
onHasErrorSet
Optional callback invoked when the HasError property is set.
Properties
HasError
Gets or sets a value indicating whether an error occurred during processing.
Prompt
Gets the prompt text from the user.
RequestJson
Gets or sets the JSON request sent to the AI model.
ResponseJson
Gets or sets the response text.