Skip to content

Commit 7a656f6

Browse files
committed
Update FunctionCallback.java
Update parameter name tooContext to toolContext in method FunctionCallback.call() 😅 Signed-off-by: bmamatkadyr <[email protected]>
1 parent ce8e8b9 commit 7a656f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-ai-core/src/main/java/org/springframework/ai/model/function/FunctionCallback.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ public interface FunctionCallback {
7979
* model.
8080
* @return String containing the function call response.
8181
*/
82-
default String call(String functionInput, ToolContext tooContext) {
83-
if (tooContext != null && !tooContext.getContext().isEmpty()) {
82+
default String call(String functionInput, ToolContext toolContext) {
83+
if (toolContext != null && !toolContext.getContext().isEmpty()) {
8484
throw new UnsupportedOperationException("Function context is not supported!");
8585
}
8686
return call(functionInput);

0 commit comments

Comments
 (0)