Class
GridViewPromptRequestCommandEventArgs

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:

cs-api-definition
public class GridViewPromptRequestCommandEventArgs : EventArgs

Inheritance: objectEventArgsGridViewPromptRequestCommandEventArgs

Inherited Members EventArgs.Empty

Constructors

GridViewPromptRequestCommandEventArgs(string, Action<string>, Action<bool>)

Initializes a new instance of the GridViewPromptRequestCommandEventArgs class.

Declaration

cs-api-definition
public GridViewPromptRequestCommandEventArgs(string prompt, Action<string> responseSet = null, Action<bool> hasErrorSet = null)

Parameters

prompt

string

The prompt text from the user.

responseSet

Action<string>

Optional callback invoked when the Response property is set.

hasErrorSet

Action<bool>

Optional callback invoked when the HasError property is set.

Properties

HasError

Gets or sets a value indicating whether an error occurred during processing.

Declaration

cs-api-definition
public bool HasError { get; set; }

Property Value

bool

Prompt

Gets the prompt text from the user.

Declaration

cs-api-definition
public string Prompt { get; }

Property Value

string

RequestJson

Gets or sets the JSON request sent to the AI model.

Declaration

cs-api-definition
public string RequestJson { get; set; }

Property Value

string

ResponseJson

Gets or sets the response text.

Declaration

cs-api-definition
public string ResponseJson { get; set; }

Property Value

string