Interface ToolCallback

All Superinterfaces:
FunctionCallback
All Known Implementing Classes:
FunctionToolCallback, MethodToolCallback

public interface ToolCallback extends FunctionCallback
Represents a tool whose execution can be triggered by an AI model.
Since:
1.0.0
Author:
Thomas Vitale
  • Method Details

    • getToolDefinition

      ToolDefinition getToolDefinition()
      Definition used by the AI model to determine when and how to call the tool.
    • getToolMetadata

      default ToolMetadata getToolMetadata()
      Metadata providing additional information on how to handle the tool.
    • getName

      @Deprecated default String getName()
      Deprecated.
      Specified by:
      getName in interface FunctionCallback
      Returns:
      Returns the Function name. Unique within the model.
    • getDescription

      @Deprecated default String getDescription()
      Deprecated.
      Specified by:
      getDescription in interface FunctionCallback
      Returns:
      Returns the function description. This description is used by the model do decide if the function should be called or not.
    • getInputTypeSchema

      @Deprecated default String getInputTypeSchema()
      Deprecated.
      Specified by:
      getInputTypeSchema in interface FunctionCallback
      Returns:
      Returns the JSON schema of the function input type.