From 07c2b9df1b9389e4add3c8e96bd967c458f06838 Mon Sep 17 00:00:00 2001 From: Beksultan <90905002+bmamatkadyr@users.noreply.github.com> Date: Fri, 21 Feb 2025 18:15:29 +0600 Subject: [PATCH] Update FunctionCallback.java MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update parameter name tooContext to toolContext in method FunctionCallback.call() 😅 Signed-off-by: bmamatkadyr --- .../springframework/ai/model/function/FunctionCallback.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-ai-core/src/main/java/org/springframework/ai/model/function/FunctionCallback.java b/spring-ai-core/src/main/java/org/springframework/ai/model/function/FunctionCallback.java index 225752d6d..08f5b0f1f 100644 --- a/spring-ai-core/src/main/java/org/springframework/ai/model/function/FunctionCallback.java +++ b/spring-ai-core/src/main/java/org/springframework/ai/model/function/FunctionCallback.java @@ -79,8 +79,8 @@ public interface FunctionCallback { * model. * @return String containing the function call response. */ - default String call(String functionInput, ToolContext tooContext) { - if (tooContext != null && !tooContext.getContext().isEmpty()) { + default String call(String functionInput, ToolContext toolContext) { + if (toolContext != null && !toolContext.getContext().isEmpty()) { throw new UnsupportedOperationException("Function context is not supported!"); } return call(functionInput);