Class WriteFileTool

java.lang.Object
me.neurodock.llm.tools.FunctionTool
me.neurodock.core.files.tools.WriteFileTool
All Implemented Interfaces:
Tool

public class WriteFileTool extends FunctionTool
  • Constructor Details

    • WriteFileTool

      public WriteFileTool()
  • Method Details

    • name

      @NotNull public @NotNull String name()
      Description copied from class: FunctionTool
      The name of the tool. Used by the model to identify what it's calling.
      Specified by:
      name in interface Tool
      Specified by:
      name in class FunctionTool
      Returns:
      the tool's name
    • parameters

      @NotNull public @NotNull ToolParameters parameters()
      Description copied from class: FunctionTool
      The parameters this tool accepts.
      Specified by:
      parameters in class FunctionTool
      Returns:
      the tool's parameter schema
    • function

      @NotNull public @NotNull ToolResponse function(ToolArguments args)
      Description copied from class: FunctionTool
      Invokes the tool.
      Specified by:
      function in class FunctionTool
      Parameters:
      args - the arguments passed by the model
      Returns:
      the tool's response