# InlineAIPromptEventBuilder

## Methods

### PromptRequest(System.String)

Defines the handler of the PromptRequest client-side event. Triggered before a request has been initiated to the specified service.

For more information see [PromptRequest](https://docs.telerik.com/kendo-ui/api/ui/inlineaiprompt/events/promptrequest) event.

#### Parameters

##### handler - `System.String`

The name of the JavaScript function that will handle the PromptRequest event.

#### RETURNS

Returns the current instance of [InlineAIPromptEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/inlineaiprompteventbuilder) .

### PromptRequest(System.Func)

Defines the handler of the PromptRequest client-side event. Triggered before a request has been initiated to the specified service.

For more information see [PromptRequest](https://docs.telerik.com/kendo-ui/api/ui/inlineaiprompt/events/promptrequest) event.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

Returns the current instance of [InlineAIPromptEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/inlineaiprompteventbuilder) .

### PromptResponse(System.String)

Defines the handler of the PromptResponse client-side event. Triggered once a response has been sent back from the specified service.

For more information see [PromptResponse](https://docs.telerik.com/kendo-ui/api/ui/inlineaiprompt/events/promptresponse) event.

#### Parameters

##### handler - `System.String`

The name of the JavaScript function that will handle the PromptResponse event.

#### RETURNS

Returns the current instance of [InlineAIPromptEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/inlineaiprompteventbuilder) .

### PromptResponse(System.Func)

Defines the handler of the PromptResponse client-side event. Triggered once a response has been sent back from the specified service.

For more information see [PromptResponse](https://docs.telerik.com/kendo-ui/api/ui/inlineaiprompt/events/promptresponse) event.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

Returns the current instance of [InlineAIPromptEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/inlineaiprompteventbuilder) .

### PromptRequestCancel(System.String)

Defines the handler of the PromptRequestCancel client-side event. Triggered when a prompt request is cancelled, typically by clicking the stop generation button during streaming operations.

For more information see [PromptRequestCancel](https://docs.telerik.com/kendo-ui/api/ui/inlineaiprompt/events/promptrequestcancel) event.

#### Parameters

##### handler - `System.String`

The name of the JavaScript function that will handle the PromptRequestCancel event.

#### RETURNS

Returns the current instance of [InlineAIPromptEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/inlineaiprompteventbuilder) .

### PromptRequestCancel(System.Func)

Defines the handler of the PromptRequestCancel client-side event. Triggered when a prompt request is cancelled, typically by clicking the stop generation button during streaming operations.

For more information see [PromptRequestCancel](https://docs.telerik.com/kendo-ui/api/ui/inlineaiprompt/events/promptrequestcancel) event.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

Returns the current instance of [InlineAIPromptEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/inlineaiprompteventbuilder) .

### CommandExecute(System.String)

Defines the handler of the CommandExecute client-side event. Triggered once a command is selected.

For more information see [CommandExecute](https://docs.telerik.com/kendo-ui/api/ui/inlineaiprompt/events/commandexecute) event.

#### Parameters

##### handler - `System.String`

The name of the JavaScript function that will handle the CommandExecute event.

#### RETURNS

Returns the current instance of [InlineAIPromptEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/inlineaiprompteventbuilder) .

### CommandExecute(System.Func)

Defines the handler of the CommandExecute client-side event. Triggered once a command is selected.

For more information see [CommandExecute](https://docs.telerik.com/kendo-ui/api/ui/inlineaiprompt/events/commandexecute) event.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

Returns the current instance of [InlineAIPromptEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/inlineaiprompteventbuilder) .

### OutputAction(System.String)

Defines the handler of the OutputAction client-side event. This event will be fired with the button options that will be received, after the command has finished. Currently, these would be the Copy, Retry, and Discard options.

For more information see [OutputAction](https://docs.telerik.com/kendo-ui/api/ui/inlineaiprompt/events/outputaction) event.

#### Parameters

##### handler - `System.String`

The name of the JavaScript function that will handle the OutputAction event.

#### RETURNS

Returns the current instance of [InlineAIPromptEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/inlineaiprompteventbuilder) .

### OutputAction(System.Func)

Defines the handler of the OutputAction client-side event. This event will be fired with the button options that will be received, after the command has finished. Currently, these would be the Copy, Retry, and Discard options.

For more information see [OutputAction](https://docs.telerik.com/kendo-ui/api/ui/inlineaiprompt/events/outputaction) event.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

Returns the current instance of [InlineAIPromptEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/inlineaiprompteventbuilder) .

### Show(System.String)

Defines the handler of the Show client-side event. Triggered once the component has been opened programmatically.

For more information see [Show](https://docs.telerik.com/kendo-ui/api/ui/inlineaiprompt/events/show) event.

#### Parameters

##### handler - `System.String`

The name of the JavaScript function that will handle the Show event.

#### RETURNS

Returns the current instance of [InlineAIPromptEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/inlineaiprompteventbuilder) .

### Show(System.Func)

Defines the handler of the Show client-side event. Triggered once the component has been opened programmatically.

For more information see [Show](https://docs.telerik.com/kendo-ui/api/ui/inlineaiprompt/events/show) event.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

Returns the current instance of [InlineAIPromptEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/inlineaiprompteventbuilder) .

### Hide(System.String)

Defines the handler of the Hide client-side event. Triggered once the component has been closed programmatically.

For more information see [Hide](https://docs.telerik.com/kendo-ui/api/ui/inlineaiprompt/events/hide) event.

#### Parameters

##### handler - `System.String`

The name of the JavaScript function that will handle the Hide event.

#### RETURNS

Returns the current instance of [InlineAIPromptEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/inlineaiprompteventbuilder) .

### Hide(System.Func)

Defines the handler of the Hide client-side event. Triggered once the component has been closed programmatically.

For more information see [Hide](https://docs.telerik.com/kendo-ui/api/ui/inlineaiprompt/events/hide) event.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

Returns the current instance of [InlineAIPromptEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/inlineaiprompteventbuilder) .

### KendoKeydown(System.String)

Defines the handler of the KendoKeydown client-side event. Triggered when the user presses a keyboard key while the InlineAIPrompt is focused.The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see [KendoKeydown](https://docs.telerik.com/kendo-ui/api/ui/inlineaiprompt/events/kendokeydown) event.

#### Parameters

##### handler - `System.String`

The name of the JavaScript function that will handle the KendoKeydown event.

#### RETURNS

Returns the current instance of [InlineAIPromptEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/inlineaiprompteventbuilder) .

### KendoKeydown(System.Func)

Defines the handler of the KendoKeydown client-side event. Triggered when the user presses a keyboard key while the InlineAIPrompt is focused.The event handler function context (available via the this keyword) will be set to the widget instance.

For more information see [KendoKeydown](https://docs.telerik.com/kendo-ui/api/ui/inlineaiprompt/events/kendokeydown) event.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

Returns the current instance of [InlineAIPromptEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/inlineaiprompteventbuilder) .
