fix typo in ToolCallback (#3352)

Signed-off-by: jonghoonpark <dev@jonghoonpark.com>
This commit is contained in:
jonghoonpark
2025-05-28 02:46:14 +09:00
committed by Ilayaperumal Gopinathan
parent aba837a6cc
commit 5488ce5ec1

View File

@@ -51,8 +51,8 @@ public interface ToolCallback {
* Execute tool with the given input and context, and return the result to send back
* to the AI model.
*/
default String call(String toolInput, @Nullable ToolContext tooContext) {
if (tooContext != null && !tooContext.getContext().isEmpty()) {
default String call(String toolInput, @Nullable ToolContext toolContext) {
if (toolContext != null && !toolContext.getContext().isEmpty()) {
throw new UnsupportedOperationException("Tool context is not supported!");
}
return call(toolInput);