Skip to content

Commit

Permalink
fix(ai): Fix regressions
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasVitale committed Jan 6, 2025
1 parent 86fdf52 commit d1cf816
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 22 deletions.
Original file line number Diff line number Diff line change
@@ -1,28 +1,8 @@
package io.arconia.ai.core.tools;

import org.springframework.ai.chat.model.ToolContext;
import org.springframework.ai.model.function.FunctionCallback;

import io.arconia.ai.core.tools.metadata.ToolMetadata;

/**
* Specialization of {@link FunctionCallback} to identify tools in Spring AI.
*/
public interface ToolCallback extends FunctionCallback {

/**
* Get the metadata for the tool.
*/
ToolMetadata getToolMetadata();

/**
* Call the tool with the given input.
*/
String call(String toolInput);

/**
* Call the tool with the given input and context.
*/
String call(String toolInput, ToolContext tooContext);

}
public interface ToolCallback extends FunctionCallback {}
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ public MethodToolCallback(ToolMetadata toolMetadata, Method toolMethod, @Nullabl
this.toolObject = toolObject;
}

@Override
public ToolMetadata getToolMetadata() {
return toolMetadata;
}
Expand Down

0 comments on commit d1cf816

Please sign in to comment.