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

Represents event arguments for the PromptRequest event.

Definition

Namespace:Telerik.WinControls.UI.AIPrompt

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class PromptRequestEventArgs : HandledEventArgs

Inheritance: objectEventArgsHandledEventArgsPromptRequestEventArgs

Inherited Members HandledEventArgs.HandledEventArgs.Empty

Constructors

Initializes a new instance of the PromptRequestEventArgs class.

C#
public PromptRequestEventArgs(string inputText, bool isRetry = false)
Parameters:inputTextstring

The input text.

isRetrybool

Properties

Gets the text with which the prompt was initiated. Can be the text in the input textbox or the InputText of an already generated item in case of retry.

C#
public string InputText { get; }

Gets a boolean value indicating whether the event was initiated to retry for an already generated response.

C#
public bool IsRetry { get; }