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:
C#
public class GridViewPromptRequestCommandEventArgs : EventArgs
Inheritance: objectEventArgsGridViewPromptRequestCommandEventArgs
Inherited Members
Constructors
Initializes a new instance of the GridViewPromptRequestCommandEventArgs class.
C#
public GridViewPromptRequestCommandEventArgs(string prompt, Action<string> responseSet = null, Action<bool> hasErrorSet = null)
The prompt text from the user.
responseSetAction<string>Optional callback invoked when the Response property is set.
hasErrorSetAction<bool>Optional callback invoked when the HasError property is set.
Properties
Gets or sets a value indicating whether an error occurred during processing.
C#
public bool HasError { get; set; }
Gets or sets the JSON request sent to the AI model.
C#
public string RequestJson { get; set; }
Gets or sets the response text.
C#
public string ResponseJson { get; set; }