New to Telerik UI for WPFStart a free 30-day trial

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 EventArgs.Empty

Constructors

Initializes a new instance of the GridViewPromptRequestCommandEventArgs class.

C#
public GridViewPromptRequestCommandEventArgs(string prompt, Action<string> responseSet = null, Action<bool> hasErrorSet = null)
Parameters:promptstring

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 the prompt text from the user.

C#
public string Prompt { get; }

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; }