Skip to content

Commit becf2a4

Browse files
committed
chore: apply review changes and add omitted event
1 parent f911dd7 commit becf2a4

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

components/aiprompt/events.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ This article explains the events available in the Telerik AIPrompt for Blazor:
1414

1515
* [`OnOutputActionClick`](#onoutputactionclick)
1616
* [`OnPromptRequest`](#onpromptrequest)
17+
* [`OnPromptRequestStop`](#onpromptrequeststo)
1718
* [`OnCommandExecute`](#oncommandexecute)
1819
* [`PromptTextChanged`](#prompttextchanged)
1920

@@ -73,6 +74,12 @@ The event handler receives an argument of type [`AIPromptPromptRequestEventArgs`
7374

7475
> Do not use the `OnPromptRequest` event when [integrating the AIPrompt component with `Microsoft.Extensions.AI`](slug:common-features-microsoft-extensions-ai-integration). The `OnPromptRequest` event disables such integration.
7576
77+
## OnPromptRequestStop
78+
79+
The `OnPromptRequestStop` event fires when the user stops a prompt request by clicking the stop floating action button in the output view. This event allows you to handle the cancellation of an ongoing prompt request.
80+
81+
The event handler receives an `EventCallback` with no arguments.
82+
7683
## OnCommandExecute
7784

7885
The `OnCommandExecute` event fires when the user clicks on a command within the Commands view.

components/aiprompt/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ To use component methods, define a reference to the AIPrompt instance with the `
125125

126126
## SpeechToTextButton Integration
127127

128-
To integrate a built-in SpeechToTextButton in the AIPrompt component set `EnableSpeechToText="true"`. Optionally you can use the `<AIPromptSettings>` tag as a child of `<TelerikAIPrompt>`. Inside `<AIPromptSettings>`, you can define the `<AIPromptSpeechToTextButtonSettings>` tag to configure the appearance and behavior of the built-in SpeechToTextButton. For a complete list of available parameters, refer to the [AIPromptSpeechToTextButtonSettings API Reference](slug:Telerik.Blazor.Components.AIPromptSpeechToTextButtonSettings).
128+
To integrate a built-in SpeechToTextButton in the AIPrompt component, set `EnableSpeechToText="true"`. Optionally, you can use the `<AIPromptSettings>` tag as a child of `<TelerikAIPrompt>`. Inside `<AIPromptSettings>`, you can define the `<AIPromptSpeechToTextButtonSettings>` tag to configure the appearance and behavior of the built-in SpeechToTextButton. For a complete list of available parameters, refer to the [AIPromptSpeechToTextButtonSettings API Reference](slug:Telerik.Blazor.Components.AIPromptSpeechToTextButtonSettings).
129129

130130
For advanced configuration options and more details about the SpeechToTextButton component, see the [SpeechToTextButton documentation](slug:speechtotextbutton-overview).
131131

0 commit comments

Comments
 (0)