-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
86fdf52
commit d1cf816
Showing
2 changed files
with
1 addition
and
22 deletions.
There are no files selected for viewing
22 changes: 1 addition & 21 deletions
22
arconia-ai/arconia-ai-core/src/main/java/io/arconia/ai/core/tools/ToolCallback.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters