New to Telerik UI for WinForms? Start 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

true when retrying a request from an existing output item; otherwise, false.

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