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);