Update FunctionCallback.java

Update parameter name tooContext to toolContext in method FunctionCallback.call() 😅

Signed-off-by: bmamatkadyr <beksultancs@gmail.com>
This commit is contained in:
Beksultan
2025-02-21 18:15:29 +06:00
committed by Ilayaperumal Gopinathan
parent ce8e8b9d7c
commit 07c2b9df1b

View File

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