ClassGridViewPromptRequestCommandEventArgs
Represents the context passed to the prompt request command, carrying the user prompt, the AI request/response payloads, and state about any processing errors.
Definition
Namespace:Telerik.Windows.Controls.GridView.AIFeatures
Assembly:Telerik.Windows.Controls.GridView.dll
Syntax:
public class GridViewPromptRequestCommandEventArgs : EventArgs
Inheritance: objectEventArgsGridViewPromptRequestCommandEventArgs
Inherited Members
Constructors
GridViewPromptRequestCommandEventArgs(string, Action<string>, Action<bool>)
Initializes a new instance of the GridViewPromptRequestCommandEventArgs class.
Declaration
public GridViewPromptRequestCommandEventArgs(string prompt, Action<string> responseSet = null, Action<bool> hasErrorSet = null)
Parameters
prompt
The prompt text from the user.
responseSet
Optional callback invoked when the Response property is set.
hasErrorSet
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.