Provides data for the PromptRequest event.
Definition
Namespace:Telerik.Windows.Controls.ConversationalUI
Assembly:Telerik.Windows.Controls.ConversationalUI.dll
Syntax:
public class InlineAIAssistantPromptRequestEventArgs : RoutedEventArgs
Inheritance: objectInlineAIAssistantPromptRequestEventArgs
Constructors
Initializes a new instance of the InlineAIAssistantPromptRequestEventArgs class with the specified prompt, selected text, and full text.
public InlineAIAssistantPromptRequestEventArgs(string prompt, string selectedText, string fullText)
The prompt text that was requested by the user.
selectedTextstringThe currently selected text in the associated text control.
fullTextstringThe full text of the associated text control.
Properties
Gets a token that is signaled when the current response processing is cancelled.
public CancellationToken CancellationToken { get; }
Gets the asynchronous stream of response text that will be sent back to the user.
public IAsyncEnumerable<string> ResponseStream { get; }
Gets the currently selected text in the associated text control.
public string SelectedText { get; }
Methods
Sets the asynchronous stream of response text that will be sent back to the user.
public void SetResponse(IAsyncEnumerable<string> stream)
The asynchronous stream of response text.
Sets the response text that will be sent back to the user as a single string.
public void SetResponse(string immediateText)
The immediate response text.