PromptRenderedEvent Class

  • java.lang.Object
    • com.microsoft.semantickernel.hooks.PromptRenderedEvent

Implements

public class PromptRenderedEvent
implements KernelHookEvent

Represents a KernelHookEvent that is raised after a prompt is rendered.

Constructor Summary

Constructor Description
PromptRenderedEvent(KernelFunction function, KernelFunctionArguments arguments, String prompt)

Creates a new instance of the PromptRenderedEvent class.

Method Summary

Modifier and Type Method and Description
KernelFunctionArguments getArguments()

Gets the arguments that were passed to the function.

KernelFunction getFunction()

Gets the function that was invoked.

java.lang.String getPrompt()

Gets the prompt that was rendered.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

PromptRenderedEvent

public PromptRenderedEvent(KernelFunction function, KernelFunctionArguments arguments, String prompt)

Creates a new instance of the PromptRenderedEvent class.

Parameters:

function - the function
arguments - the arguments
prompt - the prompt

Method Details

getArguments

public KernelFunctionArguments getArguments()

Gets the arguments that were passed to the function.

Returns:

the arguments

getFunction

public KernelFunction getFunction()

Gets the function that was invoked.

Returns:

the function

getPrompt

public String getPrompt()

Gets the prompt that was rendered.

Returns:

the prompt

Applies to