InlineAIPromptEventBuilder

Methods

PromptRequest(System.String)

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.

RETURNS

Returns the current instance of InlineAIPromptEventBuilder .

PromptRequest(System.Func)

Triggered before a request has been initiated to the specified service.

For more information see PromptRequest event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of InlineAIPromptEventBuilder .

PromptResponse(System.String)

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.

RETURNS

Returns the current instance of InlineAIPromptEventBuilder .

PromptResponse(System.Func)

Triggered once a response has been sent back from the specified service.

For more information see PromptResponse event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of InlineAIPromptEventBuilder .

PromptRequestCancel(System.String)

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.

RETURNS

Returns the current instance of InlineAIPromptEventBuilder .

PromptRequestCancel(System.Func)

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.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of InlineAIPromptEventBuilder .

CommandExecute(System.String)

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.

RETURNS

Returns the current instance of InlineAIPromptEventBuilder .

CommandExecute(System.Func)

Triggered once a command is selected.

For more information see CommandExecute event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of InlineAIPromptEventBuilder .

OutputAction(System.String)

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.

RETURNS

Returns the current instance of InlineAIPromptEventBuilder .

OutputAction(System.Func)

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.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of InlineAIPromptEventBuilder .

Show(System.String)

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.

RETURNS

Returns the current instance of InlineAIPromptEventBuilder .

Show(System.Func)

Triggered once the component has been opened programmatically.

For more information see Show event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of InlineAIPromptEventBuilder .

Hide(System.String)

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.

RETURNS

Returns the current instance of InlineAIPromptEventBuilder .

Hide(System.Func)

Triggered once the component has been closed programmatically.

For more information see Hide event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of InlineAIPromptEventBuilder .