Interface Tool

  • All Implemented Interfaces:
    com.javaaidev.easyllmtools.agenttoolspec.ToolDefinition

    
    public interface Tool<Request, Response>
     implements ToolDefinition
                        

    A tool used by LLM

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Type getRequestType() Type of the request
      abstract Response call(Request request) Call this tool
      • Methods inherited from class com.javaaidev.easyllmtools.agenttoolspec.ToolDefinition

        getDescription, getExamples, getId, getName, getParametersSchema, getReturnTypeSchema
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • call

         abstract Response call(Request request)

        Call this tool

        Parameters:
        request - Request
        Returns:

        Response