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 event.

Parameters

handler - System.String

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

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 event.

Parameters

handler - System.String

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

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 event.

Parameters

handler - System.String

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

CommandExecute(System.String)

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

For more information see CommandExecute event.

Parameters

handler - System.String

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

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 event.

Parameters

handler - System.String

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

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 event.

Parameters

handler - System.String

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

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 event.

Parameters

handler - System.String

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