Skip to content

Commit 5488ce5

Browse files
dev-jonghoonparkilayaperumalg
authored andcommitted
fix typo in ToolCallback (#3352)
Signed-off-by: jonghoonpark <[email protected]>
1 parent aba837a commit 5488ce5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-ai-model/src/main/java/org/springframework/ai/tool/ToolCallback.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ default ToolMetadata getToolMetadata() {
5151
* Execute tool with the given input and context, and return the result to send back
5252
* to the AI model.
5353
*/
54-
default String call(String toolInput, @Nullable ToolContext tooContext) {
55-
if (tooContext != null && !tooContext.getContext().isEmpty()) {
54+
default String call(String toolInput, @Nullable ToolContext toolContext) {
55+
if (toolContext != null && !toolContext.getContext().isEmpty()) {
5656
throw new UnsupportedOperationException("Tool context is not supported!");
5757
}
5858
return call(toolInput);

0 commit comments

Comments
 (0)