PreToolCallEvent Class

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

Implements

public class PreToolCallEvent
implements KernelHookEvent

Represents a KernelHookEvent that is raised before a tool call is invoked.

Constructor Summary

Constructor Description
PreToolCallEvent(String functionName, KernelFunctionArguments arguments, KernelFunction<?> function, ContextVariableTypes contextVariableTypes)

Creates a new instance of the PreToolCallEvent class.

Method Summary

Modifier and Type Method and Description
KernelFunctionArguments getArguments()

Gets the tool call arguments.

KernelFunction<?> getFunction()

Get the tool call function.

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

PreToolCallEvent

public PreToolCallEvent(String functionName, KernelFunctionArguments arguments, KernelFunction function, ContextVariableTypes contextVariableTypes)

Creates a new instance of the PreToolCallEvent class.

Parameters:

functionName - the name of the function
arguments - the arguments
function - the function
contextVariableTypes - the context variable types

Method Details

getArguments

public KernelFunctionArguments getArguments()

Gets the tool call arguments.

Returns:

The tool call arguments.

getFunction

public KernelFunction getFunction()

Get the tool call function.

Returns:

The tool call function.

Applies to