Skip to content

Commit 43cb503

Browse files
author
Milder Hernandez Cagua
committed
Fix variable name
1 parent 15c185e commit 43cb503

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

aiservices/openai/src/main/java/com/microsoft/semantickernel/aiservices/openai/chatcompletion/OpenAIChatCompletion.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -634,21 +634,21 @@ private Mono<FunctionResult<String>> invokeFunctionTool(
634634
ContextVariableTypes contextVariableTypes) {
635635

636636
try {
637-
FunctionCallContent FunctionCallContent = extractFunctionCallContent(toolCall);
638-
String pluginName = FunctionCallContent.getPluginName();
637+
FunctionCallContent functionCallContent = extractFunctionCallContent(toolCall);
638+
String pluginName = functionCallContent.getPluginName();
639639
if (pluginName == null || pluginName.isEmpty()) {
640640
return Mono.error(
641641
new SKException("Plugin name is required for function tool call"));
642642
}
643643

644644
KernelFunction<?> function = kernel.getFunction(
645645
pluginName,
646-
FunctionCallContent.getFunctionName());
646+
functionCallContent.getFunctionName());
647647

648648
PreToolCallEvent hookResult = executeHook(invocationContext, kernel,
649649
new PreToolCallEvent(
650-
FunctionCallContent.getFunctionName(),
651-
FunctionCallContent.getArguments(),
650+
functionCallContent.getFunctionName(),
651+
functionCallContent.getArguments(),
652652
function,
653653
contextVariableTypes));
654654

0 commit comments

Comments
 (0)