We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aba837a commit 5488ce5Copy full SHA for 5488ce5
spring-ai-model/src/main/java/org/springframework/ai/tool/ToolCallback.java
@@ -51,8 +51,8 @@ default ToolMetadata getToolMetadata() {
51
* Execute tool with the given input and context, and return the result to send back
52
* to the AI model.
53
*/
54
- default String call(String toolInput, @Nullable ToolContext tooContext) {
55
- if (tooContext != null && !tooContext.getContext().isEmpty()) {
+ default String call(String toolInput, @Nullable ToolContext toolContext) {
+ if (toolContext != null && !toolContext.getContext().isEmpty()) {
56
throw new UnsupportedOperationException("Tool context is not supported!");
57
}
58
return call(toolInput);
0 commit comments