Class PromptRenderingEvent
- java.lang.Object
-
- com.microsoft.semantickernel.hooks.PromptRenderingEvent
-
- All Implemented Interfaces:
KernelHookEvent
public class PromptRenderingEvent extends Object implements KernelHookEvent
Represents a KernelHookEvent that is raised after a prompt is rendered.
-
-
Constructor Summary
Constructors Constructor Description PromptRenderingEvent(KernelFunction<?> function, KernelFunctionArguments arguments)Creates a new instance of thePromptRenderingEventclass.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KernelFunctionArgumentsgetArguments()Gets the arguments that were passed to the function.KernelFunction<?>getFunction()Gets the function that was invoked.
-
-
-
Constructor Detail
-
PromptRenderingEvent
public PromptRenderingEvent(KernelFunction<?> function, @Nullable KernelFunctionArguments arguments)
Creates a new instance of thePromptRenderingEventclass.- Parameters:
function- the functionarguments- the arguments
-
-
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
-
-