Interface Tool.Visitor

  • All Implemented Interfaces:

    
    public interface Tool.Visitor<T extends Object>
    
                        

    An interface that defines how to map each variant of Tool to a value of type T.

    • 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 T visitFileSearch(FileSearchTool fileSearch) A tool that searches for relevant content from uploaded files.
      abstract T visitFunction(FunctionTool function) Defines a function in your own code the model can choose to call.
      abstract T visitComputerUsePreview(ComputerTool computerUsePreview) A tool that controls a virtual computer.
      abstract T visitWebSearch(WebSearchTool webSearch) This tool searches the web for relevant results to use in a response.
      T unknown(JsonValue json) Maps an unknown variant of Tool to a value of type T.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait