Class PromptRenderedEvent
- java.lang.Object
-
- com.microsoft.semantickernel.hooks.PromptRenderedEvent
-
- All Implemented Interfaces:
KernelHookEvent
public class PromptRenderedEvent extends Object implements KernelHookEvent
Represents a KernelHookEvent that is raised after a prompt is rendered.
-
-
Constructor Summary
Constructors Constructor Description PromptRenderedEvent(KernelFunction function, KernelFunctionArguments arguments, String prompt)Creates a new instance of thePromptRenderedEventclass.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KernelFunctionArgumentsgetArguments()Gets the arguments that were passed to the function.KernelFunctiongetFunction()Gets the function that was invoked.StringgetPrompt()Gets the prompt that was rendered.
-
-
-
Constructor Detail
-
PromptRenderedEvent
public PromptRenderedEvent(KernelFunction function, @Nullable KernelFunctionArguments arguments, String prompt)
Creates a new instance of thePromptRenderedEventclass.- Parameters:
function- the functionarguments- the argumentsprompt- the prompt
-
-
Method Detail
-
getFunction
public KernelFunction getFunction()
Gets the function that was invoked.- Returns:
- the function
-
getArguments
public KernelFunctionArguments getArguments()
Gets the arguments that were passed to the function.- Returns:
- the arguments
-
getPrompt
public String getPrompt()
Gets the prompt that was rendered.- Returns:
- the prompt
-
-