Skip to content

Commit

Permalink
Update FunctionCallback.java
Browse files Browse the repository at this point in the history
Update parameter name tooContext to toolContext in method FunctionCallback.call() πŸ˜…

Signed-off-by: bmamatkadyr <[email protected]>
  • Loading branch information
bmamatkadyr authored and ilayaperumalg committed Feb 24, 2025
1 parent ce8e8b9 commit 07c2b9d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 07c2b9d

Please sign in to comment.